View Full Version : Access .SWF Movie Clip in Flex 2
hotelechoyankee
10-06-2007, 07:57 PM
I have a .swf with a few Movie Clips in it (they have instance names).
I would like to place the .swf in a Flex 2 Canvas and then access the properties of the Movie Clips (x, y, etc). Is this possible?
jpsoul
11-07-2007, 09:12 PM
I am having the same problem. Any luck with this?
jpsoul
11-07-2007, 09:37 PM
okay, i found my problem. i was trying to access after the complete event when i really needed to access after the init event. After the init event happened, i can access the properties of the loaded swf. For example, in the init listener I have: MovieClip(loader.content).myClip_mc.sampleText_txt .text = "hello world!".
jpsoul
11-07-2007, 09:45 PM
oh yeah, to load the swf, use a loader or a swfLoader component.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.