Copy link to clipboard
Copied
Ok may be this cannot be done, or I need to make everything in AS3 or it is a Google Map API problem.
If someone could put me on the right track I would be grateful.
I have created a Google Map API for Flash to add to my website.
My website was built using AS2 and the Google Map API was built using AS3
My Flash .swf site works fine and the Google Map.swf I created works fine.
The problem is when I try and add the Google Map.swf to my As2 flash site the Google.swf will no work.
I am just trying to eleminate to the error.
Is this because....
1. Having made my flash site with AS2 I cannot add a .swf made with AS3
2. I need to change the code......
3. It has nothing to do with AS3 it is because this is a Google Map API.
I have a button written in AS2 on my main flash site which has a a PreLoader.
on (release) {
//Movieclip GotoAndStop Behavior
this.gotoAndStop("Google_Map");
//End Behavior
//load Movie Behavior
if(this.mcContentHolder == Number(this.mcContentHolder)){
loadMovieNum("PreLoaderGoogle.swf",this.mcContentHolder);
} else {
this.mcContentHolder.loadMovie("PreLoaderGoogle.swf");
}
//End Behavior
}
The PreLoaderGoogle.swf then has has an
Instance of: Loader
contentPath
Google_Map.swf
If I change the Google_Map.swf instance in the PreLoader for another .swf which uses AS2 it all works.
or have I simpley got the wrong end of the stick.
Any advice appreciated.
1 Correct answer
if you load an as3 swf into an as2 swf, none of the code in the as3 swf will work.
the easiest way around this is: you could create an as3 swf (pre)loader that loads your as2 swf and loads your as3 google swf.
Copy link to clipboard
Copied
if you load an as3 swf into an as2 swf, none of the code in the as3 swf will work.
the easiest way around this is: you could create an as3 swf (pre)loader that loads your as2 swf and loads your as3 google swf.
Copy link to clipboard
Copied
Kglad, Thanks for the prompt reply.
I can stop thinking I have done something wrong and create a AS3 (pre)loader.
Copy link to clipboard
Copied
you're welcome.
please mark this thread as answered, if you still can.

