Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help with loading a Google Map API swf made in AS3 into a Flash site made in AS2

New Here ,
Jan 11, 2010 Jan 11, 2010

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.

TOPICS
ActionScript
876
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 11, 2010 Jan 11, 2010

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.

Translate
Community Expert ,
Jan 11, 2010 Jan 11, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 11, 2010 Jan 11, 2010

Kglad, Thanks for the prompt reply.

I can stop thinking I have done something wrong and create a AS3 (pre)loader.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2010 Jan 11, 2010
LATEST

you're welcome.

please mark this thread as answered, if you still can.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines