[Tweener] AS2 hierarchy and dynamic texts
Makc
makc.the.great at gmail.com
Tue Apr 6 05:45:41 PDT 2010
some tweener features require you to import additional classes and init
them, search mailing list archive for examples.
On Tue, Apr 6, 2010 at 2:38 PM, <pierre_colin at yahoo.com> wrote:
> Hello everyone,
> I am getting a bit confused over a what should be small problem:
>
> I have Flash CS3, and I am working on a project in AS2. I know my way
> around AS2 fairly well, but I don't understand the following prolem:
>
> - I have a variable declared at the root of my flash document
> - I want to use that variable in various movieclips that I load onto the
> flash document (whether by directly placing them on a layer, or using
> attachiMovie())
> - as of now, here is my hierarchy structure:
> > root
> >>raceModule (on a layer)
> >>>raceControl (on a layer)
> >>>> raceController (on a layer)
> >>>>> dataTable (attached to the movieclip)
>
> If I create a dynamic text on the root document and put "_root.myvariable"
> in the variable textbox, i can see that variable well. Same thing if I put
> the textfield in racemodule or racecontrol.
> But it stops working when I place it in racecontroller or dataTable... The
> odd thing is that I put a 'trace(_root.myvariable);' in raceController, and
> it shows the varaible just fine.
>
> Can anyone explain to me why it wouldnot work in the dynamic textfield but
> in the trace code? Should I be using something different? I did try _level0
> instead of _root, but it did not work either.
>
> Thanks for your help!
> Jeremy
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20100406/ea29c19f/attachment.htm>
More information about the Tweener
mailing list