PDA

View Full Version : Very simple onMouseOver in flash ...


danielwarner
05-07-2006, 02:14 PM
ok so what i need to do here is have a small bar move across the screen when the "button" is hoverd over and when the mouse moves out it also then moves back to its origional position.

I need some help on doing this... i was just going to use a javascript to do this as my knowlege is extreamly limited but i wanted the bar movement to be smooth (aka when the mouse moves out it then retracts again back to its origional position without skipping etc...)

Can anyone help me with this, i have very limited knowlege of flash and am not really fond with its environment. (or point me to a good tutorial ;) )

Thanks for your time.

chud_wallice
05-07-2006, 03:55 PM
add something like this to the time line for your button.
select the button and open the action panel (F9 in windows)

on (release) {
this.moviename.gotoAndPlay(1);
}


the action panel has tools to help you map the correct path and access the methods of the built in objects.

www.adobe.com/support/flash/action_scripts.html

Philipp
05-07-2006, 04:25 PM
you need a hittest beween mouse an an object. then you can realise what you want.

danielwarner
05-07-2006, 11:14 PM
ok so i realllllllllllly dont know anything that your talking about... can you guide me through this... what i want to happen is onmouseover my button, movie1 (from the library) plays. Onmouseout, movie 2 plays... but i also need some help with making the origional button :)...

Soz for being such a n00b at this but im only 15 :)

(although it would be nicer if it ran smothley aka onmouseout half way through the animation make the bar move back to position a again but lets start with some basics)