Procedure:
step1: Open a Flash Document
step2: Create a Circle diagram from Oval Tool(O)
step3: press Right click on the circle and select "Convert Symbol"
step4: choose the "Button" type and Click OK
step5: Then write the Source Code for the circle in Actions panel
step6: Run Above Procedure press Ctrl+Enter(Test Movie)
SourceCode:
on(press)
{
var x:Number;
var y:Number;
x=_root._xmouse;
y=_root._ymouse;
trace("X="+x);
trace("Y="+y);
}
step1: Open a Flash Document
step2: Create a Circle diagram from Oval Tool(O)
step3: press Right click on the circle and select "Convert Symbol"
step4: choose the "Button" type and Click OK
step5: Then write the Source Code for the circle in Actions panel
step6: Run Above Procedure press Ctrl+Enter(Test Movie)
SourceCode:
on(press)
{
var x:Number;
var y:Number;
x=_root._xmouse;
y=_root._ymouse;
trace("X="+x);
trace("Y="+y);
}
No comments:
Post a Comment