A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button problem

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Location
    Queenstown, New Zealand
    Posts
    480

    Button problem

    It must be getting cold. I'm not thinking all that clearly. I have a simple problem with a red button within a small swi page. Press the red button and the red expands to fill the page. I want to be able to press the expanded red and for it to reduce back to its origianl button size. And suggestions as to how I should effect this. Example enclosed.

    with thanks

    Brian
    Last edited by Brian Walton; 02-18-2008 at 05:12 PM.

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    Hint use skip
    Code:
    on (press) {
        _root.nextFrameAndPlay();
    }
    Add another effect to return to the size location of origin.
    [code]
    onFrame (1) {
    stop();
    }
    onFrame (12) {
    stop();
    }
    onFrame (31) {
    gotoSceneAndStop("<current scene>",1);
    }
    [code]

    Easing helps too.
    Attached Files Attached Files

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Location
    Queenstown, New Zealand
    Posts
    480
    Magic Frets. With thanks

    Brian

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