[Tweener] AS2 hierarchy and dynamic texts
pierre_colin at yahoo.com
pierre_colin at yahoo.com
Tue Apr 6 06:08:51 PDT 2010
Hi Ernesto,
thanks for your suggestion.
I tried to use the 'text' function for the text box, but it did not work...
I created the box on my layer, and gave it a name (nom). I then put the code in another layer of the same movie clip:
this.nom.text = _root.myvariable;
Is this the right way to do it?
Jeremy
--- On Tue, 4/6/10, Ernesto Quezada <ernesto.quezada at gmail.com> wrote:
From: Ernesto Quezada <ernesto.quezada at gmail.com>
Subject: Re: [Tweener] AS2 hierarchy and dynamic texts
To: tweener at lists.caurinauebi.com
Date: Tuesday, April 6, 2010, 2:50 PM
I would say this is related to a bug in AS1 and the Flash Player.
By the way, I mentioned AS1 as from AS2 you should use instance names instead of the variable textbox (which is in fact the solution you're after).
Salut!
On 6 April 2010 13:45, Makc <makc.the.great at gmail.com> wrote:
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
_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
--
http://www.games-garden.com/
-----Inline Attachment Follows-----
_______________________________________________
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/64305bbd/attachment-0001.htm>
More information about the Tweener
mailing list