Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > FlashLite / Portable Devices Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-17-2006, 11:29 PM   #1
cypher181
Registered User
 
Join Date: Jul 2006
Posts: 9
Default Flash Lite 2.0 variable issues

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);
frame 2:
Code:
trace(mcPointer.var1);
output:
Code:
1
0
cypher181 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 12:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.