How can i hide right click menu using hidebuiltinitems?
Im using Flex 3
thanks in advance
Printable View
How can i hide right click menu using hidebuiltinitems?
Im using Flex 3
thanks in advance
import Stage:
import flash.display.Stage;
and tuck one of these somewhere:
stage.showDefaultContextMenu = false;
Thanks for the reply, But I couldn’t make this code work. Im a newbie.
When I did following ;
It shows me this error:PHP Code:<mx:Script>
<![CDATA[
import flash.display.Stage;
stage.showDefaultContextMenu = false;
]]>
</mx:Script>
“Access of an Undefined Property stage”
Can you plz post a working example?
Important differences highlighted:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="init()" layout="absolute">
<mx:Script>
<![CDATA[
import flash.display.Stage;
private function init():void
{
stage.showDefaultContextMenu = false;
}
]]>
</mx:Script>
</mx:Application>
I tried it too, It saves without any error, but when i run the webpage, it gives error.
plz compile and figure out the problem
Thanks
Quote:
Originally Posted by manofspirit
???????
I don't need to figure it out. My webpage (Flex 3 / FP9) uses it as I type this. I don't know why you are having problems but haven't seen any of your examples :)