Some possible ways to solve this issue: 1. Use the addFrameScript to add your code in the correct frame; 2. Create and ENTER_FRAME listener to wait the availability of the TextField and then execute the code;
I also created a simple GoToFrame class that sends a MovieClip to some frame and waits its availability to call a callback function. The class is attached. Best, matheusgorino. On Mon, Jul 14, 2008 at 6:13 AM, Geografiek <[EMAIL PROTECTED]> wrote: > Hi, > Shouldn't that be > _label.text = "label";? > HTH > Willem > > Op 12-jul-2008, om 14:00 heeft Pavel Krůšek het volgende geschreven: > >> Hi List, >> >> i have MovieClip with some keyframes, on each keyframe is dynamic >> TextField with different properties (font, color etc.). >> >> In constructor - class NavigationItem.as I'm trying to jump to frame and >> fill TextField with some text: >> >> .... >> .... >> gotoAndStop( _level ); >> _label.text = label; >> _label.autoSize = TextFieldAutoSize.LEFT; >> .... >> .... >> >> TypeError: Error #1009: Cannot access a property or method of a null >> object reference. >> >> It is clear for me - the script runs before frame in the animation has >> been reached, but how it fix? >> >> Thanks >> >> Pavel > > > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > Geografiek is a Dutch, Utrecht-based map and chart design company. > Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or > cell phone: (+31)6-26372378 > or by fax: (+31)302719687 > snail mail: Hooghiemstraplein 89 3514 AX UTRECHT > Visit our website at: http://www.geografiek.nl > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= > > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >
_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

