A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: Transition

  1. #1
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85

    Transition

    Hello all!

    Ive searched and searched but alas I have only riddled myself sick and the only cure is to reach out and ask....

    My main time line has Five frame labels which distinguishes each section of my website (they are seperated by a keyframe 10 frames apart) The main time line reaches Frame 10 Label "HOME" and i have a rectangle animate out which is a movie clip instance "mcRed".

    Below the Content window are buttons to each section on the main timeline. Im trying to figure out how make a button reverse frames in the mcRed and when the reversing is done go to Frame "Dennis" on the main timeline that has another mcInstance with content. Here is the action script attempt ive made



    on(Press){
    _root.mcRed.back = true;
    }
    on(Release){
    gotoAndPlay("Dennis");
    }

    they both play right but the "Dennis" is coming too quick and doesnt allow the user to see the mcRed reverse.

    how should i script this?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    How are you reversing mcRed? With reverse play, or reversing the animation frames in a second part of mcRed?

    The call to goto and stop on Dennis, should only be done at the end of the reverse process, and through the use of a variable holding the frame label to goto, since you can't hard code it.

    Pseudo code...

    Home(mcRed) is stopped after animating in.
    On one of the lower buttons' press, and according to which button was actually pressed, a variable is set, let's say _level0.mynext_frame = "Dennis", and mcRed made to reverse...
    code:

    on(release){
    _level0.mynext_frame = "Dennis";
    // Code to reverse mcRed
    }



    Then at the end of mcRed's reversing process, a frame action that actually moves the playhead to the targeted frame...

    _root.gotoAndStop(_level0.mynext_frame);

    Thus, since _level0.mynext_frame holds the value of "Dennis" in this case, it will do just that.

    If another value is set to _level0.mynext_frame on another button press, then it would eventually goto that other label.

    You will have to use another variable to store the current selection, if your're going to animate all of your sections in and out.

  3. #3
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85
    hey thanks for tha help! im trying to attach a fla for ya to check out and see whats wrong but its too large right now

  4. #4
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85

    mcRed Reverse

    oh and im reversing the mcRed with the action script


    on(Press){
    _root.mcRed.back = true;
    }


    which works when i dont have the

    on(releas)
    gotoAndPlay("Dennis")



    script behind it

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    For me, it would have to be in MX only format, not MX2004, and would have to be zipped up in case you're on Mac.
    If zipping it up doesn't cut down on size enough, you can allways upload the package to some web space, and provide a link to download it from there. Or you could e-mail it to me.

    But about to hit the sack... Will catch you in the morning.

    I'll PM you an e-mail, if you want to mail it to me...

  6. #6
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85
    sent ya an email with an MX version of my file to check out. I tried the code on the button and unfortunately it didnt work. I could copy and paste frames instead of using the

    _root.mcRed.back = true;

    But i wonder if it can just be actionscripted?

  7. #7
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Didn't look into it yet!

    Will tomorrow... Shouldn't be a problem.

  8. #8
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85
    thanks oldnewbie. I have been searhing the older posts and see youve helped in alot of "transition" questions. Im going to give up on the coding way of animation today cause i just cant get it to work and 3 days is enough but if you figure it out just let me know.

  9. #9
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Didn't you get your answer on actionscripts.org?

    http://www.actionscripts.org/forums/...o&userid=15040

  10. #10
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85
    no sir it still didnt work there way :P and yeah ive been all over trying to get this to work and nothing as of yet

  11. #11
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    I'll have a look...

  12. #12
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85

    Transitions Tearing Me Apart

    thanks again. It is still up there in the attachment just as it was three days ago Hopefully today is the day!!!!! I really just need to learn this basic navigation skill and im pretty sure i could go get stuck on something else harder and more tedious

  13. #13
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85
    ooops thinking of different thread.. here it is
    Attached Files Attached Files

  14. #14
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You e-mailed it to me!

  15. #15
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85
    hehehe oh yeah huhhhh!

  16. #16
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    As I thought... Senocular on actionScripts told you eaxctly what to do...

    Only fixed up the "dennis" button & mcRed, but created the same on the "home" button in mcGreen. Results are not same, because both clips are not animated the same, but those 2 do work. Fix the others.

    Now let see if I can attach this thing here?
    Attached Files Attached Files

  17. #17
    Member
    Join Date
    Mar 2003
    Location
    Tha 4th Die'Mention beyond the Plane of Tranquility
    Posts
    85
    gonna check it out now and thank you for your time. I'll post in the other forums what i was doing wrong and how. have a good evening and bless you and your family

  18. #18
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

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