A Flash Developer Resource Site

Results 1 to 19 of 19

Thread: Loadmovie issue in Mozilla/Firefox

  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    37

    Loadmovie issue in Mozilla/Firefox

    I tried the search function but couldn't find the same problem as mine (I think).

    I have made a site in Flash. Sections are loaded into the main movie (loadMovie).

    Now comes the weird part, everything works great in IE but in Firefox it seems that the external swf's aren't loaded into the main movie. I have never seen this happening.

    Does anyone have any clue (really anything) how this is possible? I am kinda desperate!

    Eric

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Have you tried with an absolute path to the external swf?

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    37
    You mean an url to the swf? Like http://www.domain.com/one.swf

    Eric

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Yes.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5
    Member
    Join Date
    Feb 2003
    Posts
    37
    I have added a link to a testmovie which shows my problem:
    http://www.auxillary-works.nl/huh/huh.html

    The button should load a external swf into the square which says 'test clip'. But you see just a small line outside the square box.

    Eric

  6. #6
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    It would help to have some more information.

    What actions do you use? Where is the container clip in relationship to the loading button? Where is the external file located in relation to the swf and html?

    But you see just a small line outside the square box.
    Is that line coming from the external swf? Please be as informative as possÃ*ble when asking and also be shure to tell , if earlier suggestions did not work.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  7. #7
    Member
    Join Date
    Feb 2003
    Posts
    37
    Thanks Pelle,

    Uhm first off the absolute url didn't work.
    Second, the swf's are all in the same directory on my server.

    It is a loadmovie action that calles the second swf.
    The line is from the external swf (I think).

    I attached the .fla file for ya.

    Sincere,

    Eric
    Attached Files Attached Files

  8. #8
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    When posting flas, save as MX as many people on this board has not upgraded to MX2004 ( me among others =) ).

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  9. #9
    Member
    Join Date
    Feb 2003
    Posts
    37
    Ah damn, yep I keep forgetting! Sorry for that!

    Eric

  10. #10
    Member
    Join Date
    Feb 2003
    Posts
    37
    I saved it in Flash MX mode now.
    Attached Files Attached Files

  11. #11
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Cant find something really wrong here. And it loads external files here.

    What plugin version does the Firefox have?

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  12. #12
    Member
    Join Date
    Feb 2003
    Posts
    37
    This is becoming more weird by the minute. When I open FF and go to the page it is fine, click the button movie shows up. Click a second time button, movie is gone, not loading.

    Eric

    p.s. I updated Firefox before to last version of the flash player at macromedia.

  13. #13
    Member
    Join Date
    Feb 2003
    Posts
    37
    Anyone any ideas!???

    Eric

  14. #14
    Member
    Join Date
    Feb 2003
    Posts
    37
    Anyone any ideas!???

    Eric

  15. #15
    Junior Member
    Join Date
    Oct 2005
    Posts
    3
    hey eric

    did you ever come up with a solution for this problem? if so, please let me know, thx

    cus it sounds like i've got the same troubles, i'm gonna describe 'em once again...

    i'm loading jpeg's into my SWF using the loadMovie() command with a relative URL. basically everything seemed working well, but in Mozilla/Firefox it happens, that the jpegs don't show up... the strange thing is that sometimes they DO appear and after a couple reloads (within flash or browser reload) they DON'T, there's no rule, it looks like it happens by coincidence...
    how the hell is that possible, it's driving me nuts

    In IE everything is OK!

    thx for any replies...
    ron

  16. #16
    Member
    Join Date
    Feb 2003
    Posts
    37
    Damn this is one half year ago, I can't remember if I fixed it or did begin from scratch again. But I will take a look to your fla if you want me to. Make a test fla file with the according pictures (test pictures) and attach it as a zip here with a reply.

    Uhm as I am typing this, stuff comes back to me. Uhm, if I am correct I fixed the problem by putting the jpg's into a straigthforward simple swf. Kinda a lot of work if you have many pictures but it seems when doing a loadmovie call it goes better if you actually call a swf instead of a jpg.

    Maybe this is not the appropriate solution but at least it worked for me. Lemme know if I can help.

    E.

  17. #17
    Junior Member
    Join Date
    Oct 2005
    Posts
    3
    thx for your help e.

    wrapping those jpegs with SWF's isn't an option to me in this case... i'm gonna try a workaround with "isloaded" next, in case it works i'll post it here...

    plugnpray
    ron

  18. #18
    Junior Member
    Join Date
    Jan 2002
    Posts
    1
    I am led to believe the problem is in dynamically resizing the loaded swf or jpg after calling loadMovie. I (and another person I saw in a different forum) were setting the loaded images' width and height using onEnterFrame of a different clip - that was apparently whacking it all out on Firefox - it was the resizing that was killing it. I didn't know that was the issue at the time, so I just ended up pulling the images into a borderless TextArea via an html image tag - that workaround really did the trick. You can enable html for the TextArea, and then just throw the swf or jpg in there dynamically with any height and width you like. It actually was easier in the end to do it that way than bothering with loading and unloading the clips, and now it works perfectly on IE, Firefox, Safari...

  19. #19
    Junior Member
    Join Date
    Oct 2005
    Posts
    3
    hey ksonger

    that's it man... thanks a lot for ur help
    The error never occured anymore. To be sure i will have to do some more testing though since the error occurs occasionally So please take this solution as *testing*...
    It seems to be a timing issue --> here is my code to dodge it using the MovieClipLoader(); - Class:

    //add a "onLoadInit"-listener to your object that launches the "resizing" in order to //make sure the image is properly loaded and initiated before resizing it...

    ListenerONE = new Object();
    ListenerONE.onLoadInit = function (target_mc) {
    target_mc._width = G_imgsize;
    if(target_mc.landscape == 0){
    target_mc._height = 1.33 * G_imgsize;
    }else{
    target_mc._height = 0.75 * G_imgsize;
    }
    }



    cheers roni

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