A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: help if you can. i'm new

  1. #1
    Member
    Join Date
    Jun 2000
    Posts
    43
    quick simple question
    files are scenex.swf
    x, being numbers 1 through 20
    now so far i have this

    on (Release) {
    unloadmovienum(1);
    loadmovienum("scene"(y+1)".swf", 1);
    }

    what i'm trying to do is create a button that will load movies starting with scene1.swf. so when the button was clicked, for example, it would load scene2.swf because of the variable. thanks for the help

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    263
    chewan,

    Since there are braces in your script, I will give
    you the answer using version 5 script. Also you didn't say
    how the variable y was set, so I let the button do all the
    work and after movie 20 it will start over again.

    on (release) {
    if (y = 20) {
    y = 0;
    }
    y = y + 1;
    unloadMovieNum (1);
    loadMovieNum ("scene" add y add ".swf", 1);
    }

    Hope this helps.
    MA

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