I have a CS3 swf file which has exposed a number of functions via ExternalInterface for JavaScript interaction.
I have a flex 3 project where I am loading this swf file via SwfLoader:
%26lt;mx:SWFLoader id=''loader1'' source=''t1.swf?url=blah''/%26gt;
I would like to call the functions in the swf file from the flex project and I can not find a way to do this.?Is it possible?
Thanks,
Christie
Calling a function through SwfLoaderLoader1.content is the main class in the CS3 swf. As long as it is also using AS3, and loaded from the same domain, you can call functions on it.
Loader1.content[''myEICallback''](arg1, arg2);
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui
No comments:
Post a Comment