Rightclick mouse event


i have following code:

 

 

mc.doubleclickenabled = true;

mc.addeventlistener(mouseevent.double_click, scaleme);

 

function scaleme(e:mouseevent)

{

if (e.target.scalex < 2)

{

e.target.scalex= e.target.scaley = 2;

}

else (e.target.scalex= e.target.scaley = 1);

}

 

 

i change doubleclick rightclick because of doubleclick problems of touchscreen. code should use?

 

if change double_click right_click disable right click context menu in swf. if change upper rightclickenabled won't turn blue. event wouldn't exist.



More discussions in ActionScript 3


adobe

Comments