SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Something in flash

    Hi all,

    i've been having some problems with this kind of idea that i want to make.

    i have a button and an arrow - and i want when someone goes over with the mouse on that button-not only that this button turns to another colour,but also to give that arrow a simple motion tween so that the arrow goes around and points on that button at the same time!
    tell me if there is a slite missunderstanding

    i know some basics but i just cant figure out how to do the same thing both for arrow and the button at the same time!

    thank you all for help


  2. #2
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are using AS2 then you can make use of the Color class to set the color value to a color of your choice. Also you can make use of the Tween class to set a motion to the arrow.
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.

  3. #3
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i understand that,but if i make this button as a "button" and this arrow animation as a movie clip-how can i majke this all together work at the same time when the mouse is only over the button

  4. #4
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Every button/movieclip has a rollOver state which you need to capture and perform operations as per your requirements. Therefore :
    Code:
    btn.onRollOver=function(){
    move arrow
    }
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •