Just get reminded of the simple stuff in Flash. Suppose you have an object and you want to do something like change its width (height, position, color, whatever). We will need some buttons, call them longer and shorter. If the object we are talking about is called Luis, then the most basic code is simply:
var luis:MovieClip;
longer.addEventListener(MouseEvent.MOUSE_DOWN,longener);
shorter.addEventListener(MouseEvent.MOUSE_DOWN,shortener);
function longener(event:MouseEvent):void
{
luis.scaleX +=.3;
}
function shortener(event:MouseEvent):void
{
luis.scaleX -=.3;
}
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment