Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Mar 19, 2013 Mar 19, 2013

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/

TOPICS
ActionScript
503
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 19, 2013 Mar 19, 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();

}

Translate
Community Expert ,
Mar 19, 2013 Mar 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 19, 2013 Mar 19, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2013 Mar 19, 2013
LATEST

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

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines