View Full Version : Embedding Flash
ianhull
12-30-2005, 05:20 AM
Does anyone know a workaround for this little problem I am having?
I am embedding a .swf into my project and I need to totally hide the right click so that end users will not know it is a flash file.
Unfortunatley the flash object seems to be always on the top layer even after sending it to the back.
Is there a way to place a hidden overlay over the flash file?
Any suggestions welcome.
thanks in advance.
azmanar
12-30-2005, 05:45 AM
Does anyone know a workaround for this little problem I am having?
I am embedding a .swf into my project and I need to totally hide the right click so that end users will not know it is a flash file.
Unfortunatley the flash object seems to be always on the top layer even after sending it to the back.
Is there a way to place a hidden overlay over the flash file?
Any suggestions welcome.
thanks in advance.
Hi,
Have you tried 99% transparency mask over the swf?
ianhull
12-30-2005, 06:04 AM
Hi, Thanks for the reply,
I am not too sure what you mean about placing a mask over the swf.
I really need the swf to be embedded into a standalone ams .exe
The swf needs to be seen as it contains a live video stream from a Flash Communication Server, I just don't want people to right click and see the About Macromedia context menu if possible.
I have already inserted the action script showMenu false etc.
The only way I can think of doing it is by overlaying the embedded swf somehow.
If you could give me more infomation on this mask thingy I will see if i can do something with it.
Kind regards
azmanar
12-30-2005, 06:58 AM
Hi, Thanks for the reply,
I am not too sure what you mean about placing a mask over the swf.
I really need the swf to be embedded into a standalone ams .exe
The swf needs to be seen as it contains a live video stream from a Flash Communication Server, I just don't want people to right click and see the About Macromedia context menu if possible.
I have already inserted the action script showMenu false etc.
The only way I can think of doing it is by overlaying the embedded swf somehow.
If you could give me more infomation on this mask thingy I will see if i can do something with it.
Kind regards
Ian,
I don't know whether this would solve your problem. But I'll need to put some longwinded notes here, to gather some responses from others that may be useful for both of us and everyone else.
I've created several Multimedia Projects using hundreds of SWF as elements. But those elements are resident on AMS pages.
However, to stream Flash Files from a Web Server, I reckon you would embed the Flash Link on a WebObject in your AMS page.
WebObjects can be overlayed with MASKs. In AMS6, there are some ready masks available. Go to Project > Settings > Custom Mask > Click Browse Folder... and you will be served with a Gallery of masks, which you can overlay over your WebObject.
Please view the HELP FILE and search Mask.
With Masks, you can show certain areas of your WebObject and hide certain parts of your WebObject. At some areas, you might want to make it translucent, just like looking thru a tinted glass of a car or stained glass of a chapel.
This is what I meant by transparency mask ( at various level between 1 to 100% ). Theoritically, at 99% transparent mask covering your WebObject, your mask would show almost everything underneath it. When someone right click it, it is the MASK that he is rightclicking and not the SWF file.
To create your own Masks, you have to use Graphics software. I use The Gimp, which you can download from www.gimp.org for free. Some people use, Adobe Photoshop and etc.
I too need a response from others on this interesting topic.
rhosk
12-30-2005, 07:17 AM
I don't think you need to set transparency for the mask. Just use the Web Object (as azmanar suggested) and a mask and you're all set :) No more right-click.
(masks don't work with Flash Objects)
azmanar
12-30-2005, 07:28 AM
I don't think you need to set transparency for the mask. Just use the Web Object (as azmanar suggested) and a mask and you're all set :) No more right-click.
(masks don't work with Flash Objects)
EXACTLY, because the mask is already over the WebObject ( even if it is 100% transparent ).
Hehehe - I need to get rid of this 99% transparent mask that filters my brain processes.
Ian,
Simply set the Enabled to False on the Flash object, and you'll be all set. :yes
azmanar
12-30-2005, 07:46 AM
Ian,
Simply set the Enabled to False on the Flash object, and you'll be all set. :yes
MASKS OFF !!!
I bet there are lots of stuff hiding in AMS that needs exploring.
ianhull
12-30-2005, 08:00 AM
Thanks for all your replies guys, very much appreciated.
I will have to have a little re-design of my Flash file as I have two buttons on there which allow connect and disconnect and they do not work when enabled is unticked.
I can setup auto connect on startup and set Flash object to enabled on shutdown and fscommand the disconnect.
Thanks for your help once again.
Much appreciated.
Kind regards
There is another way too... I'll see if I can dig up the source, but I posted a way to disable the right mouse click during the beta of v6. I can't seem to find it, it must have got thrown out with all the beta postings (baby/bathwater scenario).
rhosk
12-30-2005, 12:34 PM
Ian,
Simply set the Enabled to False on the Flash object, and you'll be all set. :yes
Smarty-pants
Daniel TM
12-30-2005, 01:22 PM
Ian, Try this out, if you don't like it you don't have to keep it but at least try it out. It worked for me
Let's say the page that has the Flash object is "Page1". Go to the properties of this page, click on the tab "Scripts" and then on the subtab "On Mouse Button".
Copy the text below and paste it into the On Mouse Button section.
right_click = System.IsKeyDown(2);
if right_click then
Page.Jump("Page1");
end
That's all. The flash object can be enabled. The end user can watch the video and click on the buttons from the Flash object but only the right click will be disabled. The right-click menu will show up but it will dissapear right away.
ianhull
12-30-2005, 06:00 PM
Daniel, thanks for this but unfortunatley after the page jump the Flash Communication needs to be connected again as it refreshs the state of the Flash file.
I also tried it with message dialog but once the message has appeared, the About Flash appears.
Thanks for your help though, I appreciate it.
Worm, if you could find this other way you mentioned I would like to try this as I have been through all my actionscript and I will have to re-write most of it to get it to auto connect at frame1
Thanks Guys.
Kind regards
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.