flash question?
- Started
- Last post
- 7 Responses
- kote
just want to go to a keyframe when over a clip, and back when off. been working on this all day and still cant get it.
help?
- Bluejam0
It's friday, go get the answer from a bottle of beer...
..otherwise you need to use the 'with' action on mouse rollover and mouse rollout.
- Mick0
OnMouseover gotoAndStop(10)
OnMouseout gotoAndStop(1)What's the problem you're having?
Just make sure an invisible button is on a seperate layer across all frames.
- unknown0
if you dont want to use a button you can do it using 'hit test'.
start your search there.
- elliott0
you can just insert this actionscript on the first frame of your _root timeline.
_root.yourbutton.onRollOver = function(){
_root.yourobject.gotoAndStop(10...
}_root.yourbutton.onRollOut = function(){
_root.yourobject.gotoAndStop(1);
}changing "yourbutton" and "yourobject" to whatever instance name you give your button and mc.
inside the mc of course is where you create the keyframes you want to send the mc to.
i.e. gotoAndStop(10);
- kote0
dont want to use buttons...tahts the easy/crappy way. Will look for HIT TEST...thanks guys
- elliott0
no button? paste the actionscript on the MC timeline.
this.onRollOver = function(){
this.gotoAndStop(10);
}
this.onRollOut = function(){
this.gotoAndStop(1);
}
- gun0
onMouseMove=function(){
with(yourMC){
if(hitTest(_xmouse,_ymouse,false...
//do stuff
}}}you dont have to use mouseMove, you can use whatever you like.