Search code examples
actionscript-3flashanimate-cc

AS3: How do I reference a Scene in code?


I have objects in the main scene and I wish to reference them on a movie clip.

If it was the other way around, I could do

Movieclip.button_btn(...)

What is the equivalent to do that but with a Scene?


Solution

  • I found the answer myself.

    For anyone trying to find it, it's Object(root). In this case it would be

    Object(root).button_btn(...)