A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Code Help!

  1. #1
    Member
    Join Date
    Nov 2005
    Location
    New York
    Posts
    48

    Code Help!

    If someone can take a look at this for me.....

    Basically I have a flash 8 movie that has 5 movieclips acting as buttons. When a button is clicked an external.swf is called and plays the intro of its timeline, stops, and when another button is clicked, plays its outro of its timeline.

    Here is the code i have(got it off a tutorial on Kirupa).......

    THe code placed on a individual button on the root timeline......

    on (release) {

    if (_root.currMovie == undefined) {

    _root.currMovie = "main";
    container.loadMovie("main.swf");
    } else if (_root.currMovie != "main") {
    if (container._currentframe >= container.midframe) {

    _root.currMovie = "main";
    container.play();
    }
    }
    }





    The code placed on the first frame of my external MC....
    midframe=7

    The code placed on the last frame of an external MC......
    _root.container.loadMovie(_root.currMovie+".swf");

    This code is supposed to designate the frame number in which the movie stops(and has content on) and assigns a new "currMovie" value to the next external MC being played.



    I can get an External MC to play to its midpoint, but when i try to click another button(to have another External Mc, load and play), nothing happens. Ive spent alot of time on this, and got knowhere. Hoping for some suggestions.

    Thanks..

    P.s. Attached are 2 external MC's that i have, that i was working with
    I will email the MAIN FLASH MOVIE.fla. to anyone that can help me, the file was to big to upload it here(304)

  2. #2
    Member
    Join Date
    Nov 2005
    Location
    New York
    Posts
    48
    here are those 2 external fla.'s
    Attached Files Attached Files

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