A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Interface help

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    9
    I was really wondering how in fact you create an interface so when a button is clicked a door closes and opens to reveal it's content? kind of like 2A..estudio and fantasy interfaces? whats happening when the doors close and so fourth? PLEASE HELP..

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    181
    motiontween the doors
    make both keyframes: when the door is closed then when de door is full open: and then when the door is closed again
    like this:

    close----------open-------------close
    (stop) (stop) (stop)

    put this mc in front of your text on the main stage

    give it an instance name (for exemple: "door")

    then make a button with the following code
    Code:
    on (release){
        _root.door.gotoandplay(1);
    }
    make a close button

    Code:
    on (release)
       _root.gotoandplay(15);
    }
    hope it helps?

    [Edited by stijngysemans on 08-03-2001 at 04:58 AM]

  3. #3
    Member
    Join Date
    Jun 2001
    Posts
    40
    Originally posted by stijngysemans
    motiontween the doors
    make both keyframes: when the door is closed then when de door is full open: and then when the door is closed again
    like this:

    close----------open-------------close
    (stop) (stop) (stop)

    put this mc in front of your text on the main stage

    give it an instance name (for exemple: "door")

    then make a button with the following code
    Code:
    on (release){
        _root.door.gotoandplay(1);
    }
    make a close button

    Code:
    on (release)
       _root.gotoandplay(15);
    }
    hope it helps?

    [Edited by stijngysemans on 08-03-2001 at 04:58 AM]

    Hello just stop by and read your suggestion here. May I ask you something please? What is _root anyway? cant it be just door.gotoplay(1)

    Thanks

  4. #4
    Senior Member
    Join Date
    Dec 2000
    Posts
    181
    _root is refering to the main timeline
    idd: door.blabla works also
    maybe, cause the second one, it's a relative pad
    you know what I mean?

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