A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: GOOGLE MAPS ERROR - doesnt appear when its swf is being called by the main swf

  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    40

    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

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Moved to Actionscript forum.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    loadMovie(asset, contentBG_mc.container_mc);

    give it sometime to load...

    gparis

  4. #4
    Member
    Join Date
    Mar 2007
    Posts
    40
    errr.....i already had it in my code and it doesnt work

  5. #5
    Member
    Join Date
    Mar 2007
    Posts
    40
    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

  6. #6
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    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;
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  7. #7
    Member
    Join Date
    Mar 2007
    Posts
    40
    in the googlemaps fla or in the main one?

  8. #8
    Member
    Join Date
    Mar 2007
    Posts
    40
    Warning: 1058: Migration issue: The property _lockroot is no longer supported. For more information, see displayObjectInstance.root..

  9. #9
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    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.
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  10. #10
    Member
    Join Date
    Mar 2007
    Posts
    40
    ??

    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.

  11. #11
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    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
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  12. #12
    Member
    Join Date
    Mar 2007
    Posts
    40
    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".

  13. #13
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    well gotoandlearn.com is quite good you may pick up some as3 basics from there .. also the flash documentation itself should be really helpful ...
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  14. #14
    Member
    Join Date
    Mar 2007
    Posts
    40
    ok thank u..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center