Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 13 of 13

Thread: Embedding Flash

  1. #1
    Join Date
    Jul 2004
    Posts
    313

    Embedding Flash

    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.

  2. #2
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by ianhull
    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?

  3. #3
    Join Date
    Jul 2004
    Posts
    313
    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

  4. #4
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by ianhull
    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.

  5. #5
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    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)

  6. #6
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by rhosk
    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.

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Ian,

    Simply set the Enabled to False on the Flash object, and you'll be all set.

  8. #8
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by Worm
    Ian,

    Simply set the Enabled to False on the Flash object, and you'll be all set.

    MASKS OFF !!!

    I bet there are lots of stuff hiding in AMS that needs exploring.

  9. #9
    Join Date
    Jul 2004
    Posts
    313
    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

  10. #10
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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).

  11. #11
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Quote Originally Posted by Worm
    Ian,

    Simply set the Enabled to False on the Flash object, and you'll be all set.
    Smarty-pants

  12. #12
    Join Date
    Oct 2005
    Location
    Brazil - Belo Horizonte
    Posts
    118
    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.

  13. #13
    Join Date
    Jul 2004
    Posts
    313
    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

Similar Threads

  1. lowest flash version
    By LegoGirl in forum AutoPlay Media Studio 4.0
    Replies: 13
    Last Post: 07-31-2003, 06:04 AM
  2. Replies: 14
    Last Post: 06-24-2003, 04:21 AM
  3. Flash install not successful
    By LegoGirl in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 05-14-2003, 10:33 PM
  4. HOWTO: Install the Flash Player from a CD-ROM
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts