I am trying to move up and down in AS3 with the code below:
It’s not working because its moving the entire container up and down not just the text.
Up.addEventListener(MouseEvent.MOUSE_DOWN, upPressed);
Down.addEventListener(MouseEvent.MOUSE_DOWN, downPressed);
function upPressed(event:MouseEvent):void
{
Rules.y += 50;
}
function downPressed(event:MouseEvent):void
{
Rules.y -= 50;
}
Does anyone know how to move the text only?
Best Regards,
Luben
I think what you’re looking for is the
scrollVproperty of theTextFieldhttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html#scrollV