A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: swapDepths w/ loadMovieNum bug?

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    4
    Here's the code that has been causing both the player and browser plugin to crash (specifically swapDepths in frame 2):

    Frame 1

    loadMovieNum ("page001.swf", 1);
    loadMovieNum ("page002.swf", 2);

    Frame 2

    _level1.swapDepths (2);

    I also tried

    _level1.swapDepths (_level2);


    It would make my script simpler if I could get this to work. Otherwise I'll have to use MC.loadMovie.... I apologize if this has been posted before but I couldn't find this specific problem. Thanks.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    why don't you simply load page001.swf on level2 instead of level1?

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    4
    Well, I didn't want to go into all the details so I condensed the code to the bare essentials. I was more concerned that the code doesn't work AND crashes. But since you asked....

    It's for a slideshow and the 100+ .swf's will be fading in and out instead of straight cuts. I was going to load and fade in new swf's on level 2 while the previous slide fades out on level 1. Then swap level 2 w/ level 1 and load the next .swf in level 2. Level 2 fades out. Lather, rinse, repeat. I've got all the other code working but this bug(?) threw a wrench into the works. I guess I'm just hopefull that I made a dumb mistake or there's a simple workaround.

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