Hello,
Hope your Sundays is going well Mine isnāt⦠I;ve been struggling with Senocularās TopLevel class usage. A quick overview is that my Document Class extends TopLevel and makes th static variables (as per Senocularās post) and then I have some remoting classes that fetch things from my database. I can use the TopLevel to access [object Stage] but when I try to access anything on that it just says ā1119: Access of possibly undefined property HB1 through a reference with static type flash.display:Stageā compile-time error - this is when using
trace(TopLevel.stage.HB1);
I also tried
var TL = TopLevel.stage;
trace(TL.HB1);
which gives me āReferenceError: Error #1069: Property HB1 not found on flash.display.Stage and there is no default value.
at Remoter/::healthUpdate()ā Run-time error.
AM i missing some interim property that stores the actual objects? There is an instance of the target on the stage with instance name of āHB1ā and I can access it from the Document Class with just ātrace(HB1);ā
I canāt just pass a reference directly, and I canāt find anyone with issues regarding Senocularās code, so I guess Iām just missing something. the describeType() result for the TopLevel.stage (called from non-document class) doesnāt enlighten me, lots of properties but none seem to relate to much.
Any help gratefully received!
Edit: I have also tried playing with the linkages but didnāt entirely understand what it meant, so left it with nothing ticked, but none of the settings seemed to help.