Skip to main content
May 23, 2009
Question

help change as2 to as3 and newsgroup info

  • May 23, 2009
  • 1 reply
  • 410 views

Hi,

Can anyone help me change the following into AS3?

on(rollOver){
this.gotoAndPlay("s1");
}


on(rollOut){
this.gotoAndPlay("s2");
}

on(release){
_parent.myFLVplayback.pause()
_parent.stratBox5e._visible = !_parent.stratBox5e._visible;
_parent.stratBox5e.gotoAndStop("p5");
}

Thank you.

Also, does anyone know if this forum is accessible via news reader?

I was using macromedia forums for the longest time via

outlook express, but it doesn't seem to be working anymore.

Thank you.

-ToeCutter

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
May 23, 2009

I can answer for the flv pause bit, but...

function clickHandler(evt:MouseEvent):void {
      MovieClip(this.parent).myFLVplayback.pause()
      MovieClip(this.parent).stratBox5e.visible = !MovieClip(this.parent).stratBox5e.visible;
      MovieClip(this.parent).stratBox5e.gotoAndStop("p5");
}

function overHandler(evt:MouseEvent):void {
      this.gotoAndPlay("s1");
}


function outHandler(evt:MouseEvent):void {
      this.gotoAndPlay("s2");
}


instanceName.addEventListener(MouseEvent.CLICK, clickHandler);
instanceName.addEventListener(MouseEvent.ROLL_OVER, overHandler);
instanceName.addEventListener(MouseEvent.ROLL_OUT, outHandler);

Things you decide what you want to name are shown in blue for their first appearance above.  All code goes in the timeline, AS3 doesn't allow code "on" objects