Skip to main content
July 29, 2009
Answered

actionscript 3.0 to 2.0 conversion

  • July 29, 2009
  • 1 reply
  • 1335 views

Below is my action scripting for 3.0.  However, I need this converted to 2.0 in order to use it with Adobe Captivate.  The book I have only shows me how to do the script in 3.0.  So I'm not sure how to change it to 2.0.  Can anyone help?

function scrollUp(event:MouseEvent):void
{
content_txt.scrollV -= 2;
}

function scrollDown(event:MouseEvent):void
{
content_txt.scrollV += 2;
}

up_btn.addEventListener(MouseEvent.CLICK, scrollUp);
down_btn.addEventListener(MouseEvent.CLICK, scrollDown);

This topic has been closed for replies.
Correct answer kglad

function scrollUp():Void
{
content_txt.scroll -= 2;
}

function scrollDown():Void
{
content_txt.scroll += 2;
}

up_btn.onRelease=scrollUp;
down_btn.onRelease=scrollDown;

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 29, 2009

function scrollUp():Void
{
content_txt.scroll -= 2;
}

function scrollDown():Void
{
content_txt.scroll += 2;
}

up_btn.onRelease=scrollUp;
down_btn.onRelease=scrollDown;

July 29, 2009

thank you so much kind stranger!  it works!!!!!

kglad
Community Expert
Community Expert
July 29, 2009

you're welcome.