Hello
I noticed that Ned Murphy is not around. I hope he is OK.
Now, my new project:
I want to have a textfield in which I want to put numbers that I can decrease or increase by moving my mousein the left or in the right. Like in the properties panel of flash when you want to change the positions or sizes. Any help will be appreciated.
you want your numbers to be integers between 0 and 12 when the mouse is between 0 and stage.stageWidth? if yes:
var tf:TextField=new TextField();
addChild(tf);
this.addEventListener(MouseEvent.MOUSE_MOVE,f);
function f(e:MouseEvent):void{
tf.text=String(Math.round(12*mouseX/stage.stageWidth));
}
I forgot to thank vincentccw. Thank you Vincent.
North America
Europe, Middle East and Africa
Asia Pacific