Skip to main content
Jul 29, 2009 6:24 PM UTC
Answered

actionscript 3.0 to 2.0 conversion

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 is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
Jul 29, 2009 6:30 PM UTC

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

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

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

5 replies

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
Jul 29, 2009 6:30 PM UTC

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

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

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

Translate
Jul 29, 2009 6:38 PM UTC

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

Translate
kglad
Community Expert
Community Expert
Jul 29, 2009 6:49 PM UTC

you're welcome.

Translate