A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: creating opening/closing doors

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    2

    Angry

    I hava a question.

    I'm creating a closet with moving doors. On roll over, the doors have to open. On rollout they have to close. Can somebody explain to me what's the easiest way to do that?

    Some action scripting plus explain would be great!

    Thnx

  2. #2
    Senior Member Jaffasoft's Avatar
    Join Date
    Apr 2001
    Location
    On Travel
    Posts
    1,588
    This is simple way....invisible button over door enter.

    //This on button in movie clip of doors opening.
    on (rollOver) {
    play ();
    }
    on (rollOut) {
    play ();
    }

    Have the mc with a tween with the doors opening.With a stop action on the time line when doorsr fully open and stop on fully closed further down the time line.

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