Groups | Blog | Home
all groups > macromedia flash handhelds > january 2005 >

macromedia flash handhelds : Flash Lite: Assigning a movieClip instance to a variable


George Riley
1/14/2005 9:29:40 AM
I'm trying to assign an instance of a movieclip that is on the stage to a variable in Flash Lite 1.1:

set("copy_mc",_level0/message_mc_1);
trace("Original:" add _level0/message_mc_1/:subject); // shows the value of "subject"
trace("Copy:" add copy_mc/:subject); // shows nothing

I've never prorgammed in Flash 4 AS so I'm new to the "old" way of doing things.

What is the proper way to do this?

TIA,
TMM: Mkrisher
3/7/2005 12:38:46 PM
no inheritance in Flash 4, but you could recreate the variable and value
manually:

copy_mc/:subject = _level0/message_mc_1/:subject;

You could do a global copy of all properties with a for loop if you need
to, hope that helps.
AddThis Social Bookmark Button