A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Path problem?

  1. #1
    Senior Member Sir Yendor's Avatar
    Join Date
    Sep 2001
    Location
    Over here
    Posts
    1,140

    Path problem?

    I have an external SWF that loads perfect... until I place the parent SWF inside another SWF. I think my problem is with pathing, but can't seem to nail it down.

    STEP 1 - I have a MC with an instance name of "songbox" sitting on my main timeline. Within this MC I have an empty MC named "songmc" that I use for loading external SWF's. I am using this code on a button:

    on (release) {
    _root.songbox.songmc.loadMovie("song1.swf");
    }

    The button sits on a graphic that tweens within the MC. The MC "songbox" sits on my main timeline.

    Everything discussed so far sits within an SWF called "top10". When tested, the external SWF (song1.swf) loads as wanted and plays perfectly.

    STEP 2 - Now here's the challenge. I have the SWF "top10" loading as an external SWF in my main movie using this code on a button:

    on (release) {
    gotoAndStop("one");
    _root.songlist.loadMovie("top10.swf");
    }

    The external SWF "top10.swf" loads perfect. HOWEVER... the button mentioned in STEP 1 above, which when clicked should load "song1.swf", doesn't load the movie as expected.


    I've tried placing an empty MC named "songmc" and changing the code accordingly, but I'm still having problems.

    Any thoughts that can steer me in the right direction?

    Thanks

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Location
    On the fifth floor.
    Posts
    1,202
    As far as I can understand your construction, it should be like this:
    on(release){
    _root.songlist.songbox.songmc.loadMovie("song1.swf ");
    }

  3. #3
    Senior Member Sir Yendor's Avatar
    Join Date
    Sep 2001
    Location
    Over here
    Posts
    1,140
    yep....that took care of it! Thanks

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