A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Transparent Overlays using MX 2004 Pro?

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    2

    Transparent Overlays using MX 2004 Pro?

    Greetings,

    I have Flash MX 2004 Professional. I am trying to make what I believe is called a transparent overlay.

    A perfect example is what shows up here: http://www.unitedvirtualities.com/demo/puffs1/

    However, I can't figure out how to do it in my version of Flash. Is it not supported in MX 2004 Pro, or am I just missing the means here?

    Thanks!
    --Brian

  2. #2
    Senior Mamba austriaman's Avatar
    Join Date
    Aug 2004
    Location
    Somewhere over the rainbow
    Posts
    472
    Quote Originally Posted by bds34
    Greetings,

    I have Flash MX 2004 Professional. I am trying to make what I believe is called a transparent overlay.

    A perfect example is what shows up here: http://www.unitedvirtualities.com/demo/puffs1/

    However, I can't figure out how to do it in my version of Flash. Is it not supported in MX 2004 Pro, or am I just missing the means here?

    Thanks!
    --Brian

    First of all, the example you provided was created in Flash alltogether.
    I take it you want to embed a transparent Flash-file into an html-content environment though.

    This is only partly done in Flash.
    First thing you need to do is setting the transparency of your Flash-movie by choosing --> File --> Publish Settings (Crtl + SHIFT + F12) and clicking the HTML-Tag. Set the window - mode to "Transparent" and publish your movie.

    Secondly, you need to create a Layer in your html-file, which can be done using Javascript. If you're working with Dreamweaver, simply go to --> Insert --> Layout Objects --> Layer. Position your layer and cut & paste your Flash-File into the layer ...et voil*! In case you're not using Dreamweaver, just let me know and I'll provide the code for you.

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Posts
    2
    Hi Austriaman - I don't use Dreamweaver. If you could provide the code, that would be a huge help. Thanks!

  4. #4
    Senior Mamba austriaman's Avatar
    Join Date
    Aug 2004
    Location
    Somewhere over the rainbow
    Posts
    472
    This is the code Dreamweaver generates; - there may be other workarounds:

    HEAD:
    PHP Code:
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function 
    MM_reloadPage(init) {  //reloads the window if Nav4 resized
      
    if (init==truewith (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        
    document.MM_pgW=innerWidthdocument.MM_pgH=innerHeightonresize=MM_reloadPage; }}
      else if (
    innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgHlocation.reload();
    }
    MM_reloadPage(true);
    //-->
    </script
    BODY:
    Code:
    <div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 100px; top: 100px;"></div>
    "left" & "top" determine the position of your layer.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center