A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: simple loadMovie question

  1. #1
    anti-intro coalition founder
    Join Date
    Dec 2003
    Location
    Phx AZ
    Posts
    108

    simple loadMovie question

    I dont get it, this isnt even a complicated thing to accomplish. I am trying to load a MC into a holder.

    on (release) {
    function loadSWF() {
    loadMovie("flash/pools.swf", "holder");
    }
    }

    its under "portfolio" and the holder is above the buttons in the open space. Any clue why the movies arent loading on release??

    http://www.aboundmedia.com/2004.htm

    Thanks guys
    Last edited by abound media; 02-09-2004 at 05:50 PM.

  2. #2
    Senior Member Adam14's Avatar
    Join Date
    Feb 2004
    Location
    Ontario Canada
    Posts
    1,116
    First of all, if you have the swf you're loading in a different folder from you main movie, it won't work. Try this:

    on (release) {
    loadMovie("pools.swf", _root.holder);
    }

    If holder is the name of your container MC.

    Adam

  3. #3
    anti-intro coalition founder
    Join Date
    Dec 2003
    Location
    Phx AZ
    Posts
    108
    Thanks for the reply

    its in the same folder and when I try your script it just reloads the whole site.

    This shouldnt be this much of a PITA

  4. #4
    Senior Member Adam14's Avatar
    Join Date
    Feb 2004
    Location
    Ontario Canada
    Posts
    1,116
    The swf you're trying to load is called pools.swf, and the empty movie clip you're putting it into is holder, right? And holder is in your main movie? Is there anyway you couldpost your fla?

    Adam

  5. #5
    Junior Member
    Join Date
    Jul 2001
    Posts
    10

    anotehr option

    it dependant on where your code is.....
    if it's on the clipreplace "holder" with "this".
    if it's on a key frame
    loadMovie("flash/pools.swf", "holder");
    should be
    holder.loadMovie("pools.swf"); while testing localy and
    holder.loadMovie("flash/pools.swf"); on your server

    remember I could be wrong

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