Skip to main content
Participant
March 19, 2013
Answered

Can someone help me figure out how to code something similar to this?

  • March 19, 2013
  • 1 reply
  • 530 views

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

http://byluisvenegas.com/zines/ey-magateen/ey-magateen-5/

This topic has been closed for replies.
Correct answer kglad

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();

}

1 reply

kglad
Community Expert
Community Expert
March 19, 2013

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.

Participant
March 19, 2013

What does the code for this look like, apologies new at this.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 20, 2013

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();

}