PDA

View Full Version : disable right click using as



jazzman121
May 22nd, 2003, 11:22 AM
is it possible to diable right click menu using just actionscript in a .swf ? I know if i use <param name=menu value=false> in the html it will disable the right click menu but.... i am just using the swf and wanted to knwo if it is possible to disable right click menu without using html.....thanks

lostinbeta
May 22nd, 2003, 12:02 PM
The most I know you can do is go to File/Publish Settings and click on the HTML tab and uncheck the "Show Menu" checkbox.

That only minimizes the context menu to "Settings" and "About Macromedia"

jazzman121
May 22nd, 2003, 12:06 PM
by unchecking "show menu" tab all it does is add this tag
<param name=menu value=false> to the html page

ahmed
May 22nd, 2003, 12:10 PM
Stage.showMenu = false
that does it... :)

lostinbeta
May 22nd, 2003, 12:13 PM
ahmed: That does the same thing as unchecking the Show Menu checkbox or adding the param tag in the HTML.

ahmed
May 22nd, 2003, 12:14 PM
yep.. he asked for the action that does it though :)
is it possible to diable right click menu using just actionscript in a .swf

lostinbeta
May 22nd, 2003, 12:18 PM
He edited it. I swear it didn't say that when I read it.

Or did it?

ahmed
May 22nd, 2003, 12:29 PM
LOL

shut up lost.. i was right :P

actually it does say 'edited by blabla... ' :hat:

lostinbeta
May 22nd, 2003, 12:32 PM
Yeah, edited 3 minutes after I replied... so HA.... lol

jazzman121
May 22nd, 2003, 12:52 PM
yea sorry about that i did edit it.... i had used > < the forum doesnt show that... coz it assumes thats part of the html...


and by the way... that helped.. thanks guys

mystee
May 24th, 2003, 03:01 PM
hmm..where to uncheck the show menu in dreamweaver?

lostinbeta
May 24th, 2003, 04:44 PM
You don't do it in Dreamweaver.

It is in Flash under File/Publish Settings so that when you publish the HTML file it adds the param tag to the script it publishes. Or you can add the param tag (posted in first post of this thread) manually. Or use Stage.showMenu = false; on a frame in Flash.

mystee
May 25th, 2003, 10:29 AM
ah..alrites..THanks alot!