Is "foo" the Document class in your .fla? If so, you can just call the instance name from that class.
Jason Merrill Instructional Technology Architect Bank of America Global Learning Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (Note: these resources are only available for Bank of America associates) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rodrigo Augusto Guerra Sent: Thursday, September 09, 2010 12:18 PM To: Flash Coders List Subject: [Flashcoders] access a mc in stage from a class hi, i'm trying to migrate from as2... and I need to access a mc named mc1 that is on stage. no class associated with this mc, only 1 class for the entire movie. I have the following class: package { import flash.display.*; import flash.events.*; public class foo { //constructor public function foo():void { trace("hi") mc1.x+=30; <- don't work. } } how can I inform the class that I have a mc (mc1) in the stage in order to access i´'s properties and methods? tried with addChild too but had no luck. thanks, rodrigo. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

