Jump to content


Roll Over And Roll Out


  • You cannot reply to this topic
2 replies to this topic

#1 !nTeL

    Young Padawan

  • Members
  • Pip
  • 7 posts

Posted 13 August 2005 - 12:37 PM

hello. i have a red dot and text

its like this Note: the dash means its a space

|O-homepage|

on rollover i want it to move left and the red dot to fade in (from alpha 70% to 100%)

|O--homepage|

and on rollout i want it to go back, (to move the text to its original place, and the red dot to go back to its color (from alpha 100% to 70%)

and i want it to be button, so on click it will go to another page

this seems to be pretty simple but lol im a total noob at this, im new i tried, but kinda make it work, but at the end it was just a waste of time,

so im asking if someone could it for me pls. and post the fla file and i will take alook on how u did it. the dot im using is the attached.

Attached Files



#2 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 13 August 2005 - 10:20 PM

on (rollOver) {
    object._X += 40;
    object._alpha = 100;
}
on (rollOut) {
    object._X -= 40;
    object._alpha = 70;
}
on (press) {
    getURL("website.com","_self");
}

just place actions and events on your objects. X is horizontal position, Alpha is the transparency. Events are self-explaining. :)

#3 dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 14 August 2005 - 02:45 PM

you could also do it in tweens, just make a little move thing and on your button put:
on(rollOver){
gotoAndPlay('fadein')
}

then when it is done fading in put this:

on(rollOut){
gotoAndPlay('fadeout')
}

or semonthing like that and make usr you put a stop on the frame that the button is done its fading.

dEcade





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users