A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: movie clip control...

  1. #1
    i have my main movie complete, with one movie clip that consists of 3 different words that fade in, one after the other, so 1 fades in then cuts out, 2 fades in then cuts out etc... i need the clip to loop twice (it's endless right now), then go back and fade into word 1 and stay there.

    then, there are 8 buttons that surround these words, and depending on which button they mouse over, i then need it to go to word 2, or word 3 or stay on word 1. basically these are small icons that will lead to the full images, photos, graphic work, or art pieces. so, if they mouse over an icon that is of a photographic piece, the word will change to say word 2 (photos), or if it is a graphic piece, the word will change to graphics. then on clicking each of these icons it will go to the actual image to be shown. if anyone gets this,

    my main concern is the looping twice, and then going back to word one, then upon the diff icons, changing the word. i can figure out the linking no prob, unless there is an easier way that it can all be incorporated into one...


    thanks much.
    dub

  2. #2
    Junior Member
    Join Date
    Dec 2000
    Posts
    29

    Lots of questions!

    Lets get you started by answering the first question,
    and see if you can figure out the rest. If you can't you can shoot me an email and I'll help ya out. I have given you the hardest one....

    1. You can do your looping movie clip by using a variable to track the times it has played.
    - Create a layer call it "Variables"
    - On the first keyframe enter this action:
    myCount = 0;
    play ();

    NOTE: THIS SHOULD BE THE ONLY THING ON KEYFRAME 1
    PERIOD. DO NOT START YOUR WORDS ETC... UNTIL
    KEYFRAME 2 ON THEIR PERSPECTIVE LAYERS!!

    - Next at the end of word 1 (where you eventually want the
    clip to stop playing) enter a key frame with this action:
    if (myCount == 2) {
    stop ();
    } else {
    play ();
    }
    -Lastly at the end of your third word (in other words the
    last keyframe of your movie clip) place a keyframe again
    (on your "Variables" Layer) and give it this action:
    myCount = myCount + 1;
    gotoAndPlay (2);

    PRESTO!!! Your movie clip will now set the "myCount"
    Variable = to "0" then each time it plays the end of
    word one, it will check "myCount" to see if it = 2. If not
    it will keep playing. If it does = 2 then it will stop.
    The last action adds 1 to "myCount" each time it hits that
    keyframe, thus making "myCount" incriment by +1 each time and then plays the beginning of your movie clip WHICH SHOULD
    NOT START UNTIL KEYFRAME 2!!

    Good Luck!
    Forrest Wagner
    fwagner@webarch.cc

    PS: DO NOT USE myCount="myCount +1" etc... in other words, don't use quotes with your variables (make them expressions in Normal mode to get rid of the quotes.




    [Edited by fwagner on 01-02-2001 at 11:45 PM]

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