A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: A way to do this :)

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Posts
    1

    A way to do this :)

    Hey guys, I cant really explain this easy with words so heres an image.
    (See Attachment)

    When you hover over a button I know how to make it have an animation effect, but how would I make multiple buttons grow in size where the mouse is hovered and the main one is the biggest? So if you slide the mouse it..

    You know the Mac bottom toolbar? Like that kinda, or RocketDock. Thats
    what im trying to do.

    Has anyone seen this done or heard of it or know a site with it?
    Attached Images Attached Images

  2. #2
    Junior Member
    Join Date
    Aug 2007
    Posts
    26
    To be honest - I think it is a great idea, but I don't really have the experience to help you out all that much. I do however have an idea of how to approach it:

    var xCord = myButton._xmouse //returns x co-ordinate in relation to button
    var yCord = myButton._ymouse //returns y co-ordinate in relation to button

    Not completely positive of how to accomplish the next part but here is the idea:

    depending on the x and y coordinates (the closer they get to 0) then grow the relative:

    myButton._yscale an myButton._xscale get resized. Hopefully someone with better knowledge will complete the missing pieces. I really love using the Flash Dictionary in times like this because you have the idea, and it can help you complete it.

    --
    Greg

  3. #3
    Junior Member
    Join Date
    Aug 2007
    Posts
    29
    Hi,

    I have not done something like this.

    but one way approaching this could the following.

    1) create a shape of any color. convert it to a movie clip.
    2) go inside that movie clip, draw a circle.
    3) advance the timeline over a couple frames.
    4) draw a bigger circle
    5) right click on the area between the two places on the time line and select create motion tween.
    6) add code so that when your mouse moves over that button, have it play that animation.

  4. #4
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    there is a video you an watch here:

    http://www.gotoandlearn.com/download.php

    it's called flash math 2
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  5. #5
    Member
    Join Date
    Jul 2007
    Posts
    36

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