PDA

View Full Version : [Embed] children in swf looses accessibilty


flyingbuddha
11-27-2008, 06:50 PM
Hi all,

This is a two-fold question.
1. I have a really simply class that uses flex's [Embed] tag to import an swf.
Inside the imported swf is an empty movieclip with an instance name of 'test_mc.' If I load the swf in at runtime (using something like a Loader) I can access 'test_mc', however if I load it in using the [Embed] tag, I can't access 'test_mc'

I've read that is has something to do with Flex removing the timeline and restricting access to it's children, but is there anyway to let me access 'test_mc' when using the [Embed] tag?

2. My second point is kind of related to the first, I code in pure AS3 using Textmate and compile using mxmlc. I don't touch the Flash IDE, nor do I use mxml, so when doing searches in google or on this site, what should I search for to help narrow my results? I'm guessing 'pure as3 blah' won't yield much - anyone else do what I do?

Cheers

neurofaux
11-27-2008, 08:40 PM
does this (http://www.gskinner.com/blog/archives/2007/03/using_flash_sym.html)answer your question?

n.

flyingbuddha
11-28-2008, 08:52 AM
You're amazing, it works :D