A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: loadMovie is ignoring me

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    5

    loadMovie is ignoring me

    hi... i've searched the forum for an answer to no avail, so excuse me for asking if it's been asked before, but i'm well stuck.

    i have the following code to load external .swf's into a container movieclip in my movie:

    stop();
    externals_mc.loadMovie("home.swf");

    _root.contact_btn.onRelease = function() {
    loadMovie("contact.swf", "externals_mc");
    };
    _root.portfolio_btn.onRelease = function() {
    _root.externals_mc.loadMovie("portfolio.swf");
    };
    _root.home_btn.onRelease = function() {
    loadMovie("home.swf", _root.externals_mc);
    };

    as you can see i'm trying a few different ways of getting it to work, but all that happens is the "home.swf" loads in in the first place, but none of my buttons will load any clips to replace it.
    any ideas?

  2. #2
    www.designerunderground.co.uk
    Join Date
    Jun 2004
    Location
    UK
    Posts
    351
    Why not just use

    on (release) {
    external_mc.loadMovie("portfolio.swf");
    }

    on the buttons
    +
    You are not your job. You are not how much money you have in the bank. You are not the car you drive. You are not the contents of your wallet. You're not your ****ing khakis.

  3. #3
    Junior Member
    Join Date
    Nov 2004
    Posts
    5
    awesome. thanks very much!

  4. #4
    GRooVeZ is the name ;) PixelAddict's Avatar
    Join Date
    Jun 2001
    Location
    Belgium - Limburg
    Posts
    606
    i have simmilar problems

    when i use the code as shown above it works fine

    but when i load the external movies from another server is goes wrong.
    then i have the same effect zyboy

    like

    on (release) {
    _root.site.man.artists.container.loadMovie("http://users.pandora.be/sixofour/sixofoursite/test-site/partyartists5.swf");
    }

    but

    on (release) {
    _root.site.man.artists.container.loadMovie("partya rtists5.swf");
    }

    works fine

    any ideas?

  5. #5
    Senior Member green_eye's Avatar
    Join Date
    Apr 2004
    Location
    Sarasota, Florida
    Posts
    1,496
    you should get a sandbox violation error

  6. #6
    GRooVeZ is the name ;) PixelAddict's Avatar
    Join Date
    Jun 2001
    Location
    Belgium - Limburg
    Posts
    606
    ? sandbox?

    and no im not getting any errors

    grtz n thx

  7. #7
    GRooVeZ is the name ;) PixelAddict's Avatar
    Join Date
    Jun 2001
    Location
    Belgium - Limburg
    Posts
    606
    ? sandbox?

    and no im not getting any errors

    grtz n thx

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