| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2006
Posts: 9
|
variables set in a frame aren't carrying over to the next frame. the movie clip "mc" has a variable named "var1". I am assuming all instances of "mc" will have this variable also. when i create a new instance of "mc" and set the "var1" variable, it traces to output correctly in frame 1, but in frame 2, "var1" becomes 0. is this documented a flash lite 2.0 problem?
frame 1: Code:
var mcPointer:MovieClip = new MovieClip();
var count:Number = new Number(0);
_root.attachMovieClip("mc", "mc" add count, _root.getNextHighestDepth());
mcPointer = _root["mc" add count];
mcPointer.var1 = 1;
trace(mcPointer.var1);
Code:
trace(mcPointer.var1); Code:
1 0 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optimizing Flash Web Sites for Search Engines | rockcoastmedia | General Chat | 20 | 03-29-2009 10:31 PM |
| Some Flash Video Converter Tools Compare | terry117 | Detention | 7 | 05-18-2006 03:08 AM |
| HTML forms to Flash forms in a flash! With NEW hidden variable suprises! | brianriggs | Server-Side Scripting | 2 | 08-21-2005 10:08 PM |
| Have Flash OR PHP "watch" a variable | mmm..pi..3.14.. | Server-Side Scripting | 6 | 09-13-2004 01:01 AM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 12:13 PM |