Copy link to clipboard
Copied
I keep searching for forums and i can't figure out if i need an instance name, a frame name, convert to a symbol, movie clip or graphic. All i want is the images I have to move and stop like this graphic on this website. If anyone can help provide the code it would be greatly appreciated!
Best,
Brett
this.addEventListener(MouseEvent.MOUSE_OVER,stopF);
this.addEventListener(MouseEvent.MOUSE_OUT,playF);
function stopF(e:MouseEvent):void{
this.stop();
}
function playF(e:MouseEvent):void{
this.play();
}
Copy link to clipboard
Copied
wow, am i old.
anyway, put each graphic on a keyframe and make the keyframes adjacent to each other.
assign your timeline to play on mouseout and stop on mouseover.
Copy link to clipboard
Copied
What does the code for this look like, apologies new at this.
Copy link to clipboard
Copied
this.addEventListener(MouseEvent.MOUSE_OVER,stopF);
this.addEventListener(MouseEvent.MOUSE_OUT,playF);
function stopF(e:MouseEvent):void{
this.stop();
}
function playF(e:MouseEvent):void{
this.play();
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now