Can you show the code you use for loading the external swf and the code you tried to use to make it go to its second frame?
I am using the following code to load the External swf file.
var swfloader:Loader=new Loader();
You must wait for the Loader's Event.COMPLETE function to fire off to be sure it's fully loaded. After that access the .content property of the loader to gain access to the MovieClip inside it, e.g.:
var mc:MovieClip = MovieClip(e.target.content);
// go to frame 2
What code did you try to use to make the loaded movie change frames?
lot of thanks..
I loaded Successfully
I loaded the second frame of the external swf(Action Script 3.0 SWF) Successfully.
If I Load the Action Script 2.0 SWF file, it produce the ERROR.
So, How I load the Action Script 2.0 SWF file in the same AIR file.
And In that also I want to goto the Second frame.
Pls Help Me..
AS3.0 and 2.0 do not mix well. While you can load an AS2.0 SWF into a AS3.0 document you cannot execute code because the runtime can only run one version of ActionScript, 2.0 or 3.0. You should open the AS2.0 document and convert it to 3.0 and you won't have an issue.
Mainly In Flash itself I can't get the Windows Temp Directory.
So, I use this AIR application for find the Windows Temp Directory and read one text file and execute the other swf files.
I have some are in AS2 and AS3 swf files.
So, How I solve this problem.
You have nothing in AS3 that can identify with the classes in AS2. If you tried casting the loaded AS2 SWF to a AS3 MovieClip class in order to use the "gotoAndPlay()" method you'll just get errors (cannot cast MovieClip to AVM1Movie, etc). AS3's AVM2 treats an AS2 SWF as that class, AVM1Movie. You can only access basic properties (x/y/width/height/etc) but you cannot invoke any code as I mentioned. Using gotoAndPlay would be invoking a function.
Here's more limits on the AVM1Movie object:
Can I able to call the loaded AS 2.0 swf function from the AS3 AIR document.?
In AIR Action Script 3.0, use "File.userDirectory" to find the windows user directory.
How I find the same user directory in AIR Action Script 2.0.
In AS 2.0, the File method can't use..
AIR is basically a project type with it's own extra libraries. You can use all the libraries from Flash but in addition to them you can get extra functionality. It does not to my knowledge support AS2.0 at all.