Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

on(RightClick) in Flash5? or on(contextmenu)? 1

Status
Not open for further replies.

yoshiyang

Programmer
Mar 10, 2001
4
US
Oh great world how do thou capture a rightClick in Flash 5?
 
Not sure I understand the question...my right-click works great as far as the program goes and functionality. Are you wanting to deactivate the right-click on flash 5 movies in the browser perhaps?

More details for a better answer. Ya' Gotta Love It!:)X-)
 
Okay,

I'll will be specific. In order to land a plane you need landing gear.

Any way... For instance:

Code:
On (mouseEvent){
    tellTarget ("someMovie");
    goToAndPlay(2);
}

Can Flash 5 capture a rightClick mouseEvent?

Ya know on (rightClick){
    tellTarget ("someMovie");
    goToAndPlay(2);
}

I hope this is specific enough.
 
To my knowledge, right-click is not an acceptable parameter for the on mouseEvent.
You could probably catch the right-click event through javascript in the html page that calls your movie, and then pass it on to your movie to have it react in some particular way. There are a few scripts out there to catch right-clicks, you could try using one of those and adapt it to your movie.

Is that specific enough?
 
Thank you that was a good idea, that i already tried. The flash player over-rides the HTML pages contextmenu with it's own.

I am still open to other ideas.

Thank you though.
 
You can allways dissable the Flash contextmenu alltogether!
 
Still doesn't work. It then comes up with the macromedia contextmenu (advertisment I guess).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top