In a flash project, I am loading an external SWF that has some symbols in its library exported for ActionScript. I need to create instances of those symbols but, since it’s a loaded SWF I don’t have direct access to that classes.
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, there are several ways of doing this.
The nicest could be this:
Where
ExternalClassis the exported classname in the external swf.Or, simply use a function in your external movie, where you return the specific objects on demand.
Like put this in your external swf:
This is not that awesome as the first one, but could lead to other ideas too.
Hope this helps.