Welcome to WebmasterWorld Guest from 54.144.3.134

Forum Moderators: open

Message Too Old, No Replies

Disabling right click option in flash

need help

     
1:09 pm on Aug 12, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 8, 2004
posts:130
votes: 0


Hi, I'm wrote a simple game with flash. There are 3 pictures, 2 pictures are identical and one different. The program will shift the position of the pictures after one second.

The player is suppose to click on the odd picture out as many times before the picture switches. I notice one problem after I wrote the game, the player can just rightclick and uncheck the 'play' option and they can click away as many times as they like.

How do I disable the rightclick option on flash?

1:19 pm on Aug 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 21, 2003
posts:2355
votes: 0


Try adding menu="false" to the embedded swf attribute line, ex:

<EMBED src=yourflash.swf menu="false">

2:34 pm on Aug 12, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 8, 2004
posts:130
votes: 0


<embed src="myflash.swf" menu="false" quality="high" bgcolor="#ffcc66" width="524" height="374" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash">

It doesn't work.

2:50 pm on Aug 12, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 8, 2004
posts:130
votes: 0


ok. i did it. thks.