Difference between revisions of "User:Scrivener07/Menus"

759 bytes removed ,  23:51, 26 November 2018
no edit summary
imported>Qazaaq
(Added a note)
imported>Qazaaq
Line 1: Line 1:
These are my notes and findings about Actionscript 3 & Scaleform in Fallout 4.
These are my notes and findings about Actionscript 3 & Scaleform in Fallout 4.
== F4SE ==
[[:Category:F4SE|F4SE]] will install a code object to the root of any registered menu.
To acquire the F4SE code object in AS3, use <code>(stage.getChildAt(0) as MovieClip).f4se</code> or <code>MovieClip(root).f4se</code>..
There are some cases when the installed F4SE code object on a menu root may be unreachable from your display object class.
With [[:Category:F4SE|F4SE]] v0.6.8 and greater the code object may be received by implementing the <code>onF4SEObjCreated</code> function on your display object class.
This function is called on the menu root document as well as first-level children.
<source lang="actionscript">
package Shared.F4SE
{
public interface ICodeObject
{
function onF4SEObjCreated(codeObject:*):void;
}
}
</source>


==== Code Object ====
==== Code Object ====
Anonymous user