A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Trouble with loadMovie

  1. #1
    Monkey Wrangler monsterfx's Avatar
    Join Date
    Nov 2000
    Location
    Lawrence, KS - USA
    Posts
    347
    OK, I'm going slightly insane here. In my actionscript is the following code:

    Code:
    //Open the music tracks swf
    loadMovie("musicTracks.swf","_level10");
    
    //Play the toc music track
    _level10.gotoAndPlay(2);
    I know (through a trace in the first frame of musicTracks.swf) that the movie is in fact loading. The problem is I can't seem to pass any kind of command to _level10. I've tried gotoAndPlay, nextFrame, gotoAndStop, play, and calling a function from musicTracks (which is what I really want to do). None of these seems to be doing anything. There is the following actionscript on an "actions" layer in the first frame of musicTracks.swf.

    Code:
    trace("music tracks loaded");
    
    function fadeOut(){
    	fadeSoundClip.play();
    }
    
    function playTrack(track){
    	gotoAndPlay(track);
    }
    
    stop();
    Does anybody have any idea why I can't pass any commands to level10 (not even play()? I'm starting to turn gray/lose hair over this one.

    It's always the simple things that are the hardest...

    Thanks,
    -monster.

  2. #2
    Monkey Wrangler monsterfx's Avatar
    Join Date
    Nov 2000
    Location
    Lawrence, KS - USA
    Posts
    347
    Well, I didn't figure out why this wasn't working, exactly, but I put the loadMovie command in a different (earlier)scene (and changed it to loadMovieNum) and now it works. I don't know exactly why, but I'm not questioning it right now.

    Thanks to anyone who read this and put any neural processing time toward the problem.

    -monster.

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