|
-
GOOGLE MAPS ERROR - doesnt appear when its swf is being called by the main swf
Good Afternoon,
Im trying to solve a problem that i have in a flash presentation. Im trying to call to the main.swf other swf that contains some text and a google map. The swf that contains the google map is working fine...but everytime i play the main one, the text appears but the gmap doesnt.
can anyone help me?
the code that i put on the main.swf refering to the google maps one is below (i followed the logic of the gallery that came with the presentation .fla):
// google-maps module
case "google-maps" :
if (firstLoad != true) {
var move1Content:Tween = new Tween(contentBG_mc, "_x", Strong.easeIn, contentBG_mc._x, -500, 0.5, true);
} else {
var move1Content:Tween = new Tween(contentBG_mc, "_x", Strong.easeIn, -500, -700, 0.5, true);
}
move1Content.onMotionFinished = function() {
resetAll();
contentBG_mc.container_mc._visible = true;
loadMovie(asset, contentBG_mc.container_mc);
var move2Content:Tween = new Tween(contentBG_mc, "_x", Strong.easeOut, Stage.width+500, Stage.width/2, 0.5, true);
move2Content.onMotionFinished = function() {
var move3Content:Tween = new Tween(contentBG_mc.container_mc, "_alpha", None.easeOut, contentBG_mc.container_mc._alpha, 100, 1, true);
};
};
*and please talk to me like i was 3 years old
thank u in advance..
Joana
-
Senior Member
Moved to Actionscript forum.
- The right of the People to create Flash movies shall not be infringed. -
-
loadMovie(asset, contentBG_mc.container_mc);
give it sometime to load...
gparis
-
errr.....i already had it in my code and it doesnt work
-
maybe the problem is that the project is in actionscript 2.0....but it has to, cuz if i change it to 3.0 it crashes.
i found out some portable Flash interface for the Google Maps API from Critical Mass (http://code.google.com/p/google-maps...terface/)...im goin to check it out and update the result here..
thank u
-
Flashmatics
put this code in the beginning of the first frame in your google swf and see if it fixes the problem:
Code:
this._lockroot = true;
-
in the googlemaps fla or in the main one?
-
Warning: 1058: Migration issue: The property _lockroot is no longer supported. For more information, see displayObjectInstance.root..
-
Flashmatics
look in your publish settings - what flash player are you publishing to? you coding in AS2 or AS3 ... sounds like you are trying to load an AS3 swf into an AS2 swf ..
Last edited by silentweed; 11-23-2009 at 06:07 AM.
-
??
Already wrote that the main project is in AS2....but the google maps one is in AS3.
the thing is that if i change the main one to AS3....it crashes, doesnt work.
-
Flashmatics
you cant load an as3 swf into an as2 swf ...
http://livedocs.adobe.com/flash/9.0/...=00000011.html
so either you need to recode your main swf into as3 or you need to find a google map component for use with as2
-
i already found that out...but thank u anyway.
i'll problably need to recode it...but do u know where can i find help for that?..cuz the project isnt mine, im not an actionscrip "expert".
-
Flashmatics
well gotoandlearn.com is quite good you may pick up some as3 basics from there .. also the flash documentation itself should be really helpful ...
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|