PDA

View Full Version : Have a question...


CrazyFrog
06-25-2007, 03:50 AM
Can anyone tell me if it's possible to put an object ( a right-click menu ) over a video object while the movie plays and how to do this ,because the video object appears as " allways on top " and I want to make a video player witch supports a right-click menu over the movie that is currently displayed.
Thanks !

Desrat
06-25-2007, 04:03 AM
you could use a hotspot object..

RizlaUK
06-25-2007, 11:03 AM
yup, thats good advice, place a hotspot over the video object and put the menu code in the right click event

TJ_Tigger
06-25-2007, 12:02 PM
I don't know if you can place anything, including a hotspot on top of a video object. You can search for Worms function IsInRect which uses the on Mouse Button event to determine if you have clicked within an object. You could then pop-up a menu based on that.

Tigg

Desrat
06-25-2007, 01:27 PM
a hotspot will work, guarantee ya :)

RizlaUK
06-25-2007, 01:52 PM
to my supprize tigg, i tryed it and it worked (with a dialog and video object, i havent tested with a menu)

i dident think it would work, my post here looked something like "it wont work, but you can use worms hit test and global mouse click to achieve...bla bla bla", but i thought....test b4 talk, and it worked

now im cruious to know what objects this will work on and if it works with a menu.......guess i'll post back in a few..;)

RizlaUK
06-25-2007, 03:12 PM
DoH,

sometimes i wonder where my brain is at,

after making a test apz i realized/remembered that i have in fact used this method in previous projects on listbox, combo, mediaplayer and web objects,

seems im learning something i already know.....think im just tired

what a waist of time that was...lol

yosik
06-25-2007, 04:25 PM
Another way would be, in case you need something more tangible than a hotspot, to use a mask for your video object with a hole in it. You could then position another object exactly in/on that hole. For all purpose, it will look as if the object is on top of the video object.

Yossi

CrazyFrog
06-30-2007, 07:07 AM
Ok , thanks ,I will try what you posted here , and reply to tell you the results ,cheers!

SiNisTer
07-03-2007, 01:15 AM
Hey man. I had some free time, so I took the liberty of making an example of a Video Object Menu...I used worms hitTest for the example, cos I think its the easiest and best solution to your problem. Anyway, just download the example - I think it'll definitely help you or give you an idea...

P.S. Almost forgot...You'll have to load a video into the video object or copy the magnolia video from the AMS installation folder into your project. I couldn't do it cos otherwise the file is a little too big to upload on the forum...