A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [CS3] Transparent background...

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    321

    [CS3] Transparent background...

    How do I make my SWF file have a transparent background? I kept it on a white canvas in Flash, but I'm using it as a Flash-based navigation bar on a website where there will be an image behind the navigation...

    ...thanks!
    Amazon has never been so helpful:
    http://www.HoffsReviews.com/

  2. #2
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    you need to add a param, ie: <param name='wmode' value='transparent'/>

    and the same when you embed: wmode='transparent'
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  3. #3
    Senior Member
    Join Date
    May 2002
    Posts
    321
    I tried that, and it didn't work, so then I removed the following beginning of Dreamweaver's default "flash embed" code, which is:

    Code:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','200','height','200','wmode','transparent','src','test','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','test' ); //end AC code
    </script><noscript>
    And then after the <object> tags is a closing </noscript> which I also removed...

    And then it worked fine. So, do you know what that code above does, and if it's even necessary? If I remove it then I go back into that HTML page in Dreamweaver, it asks if I want to put it back in again! Is it even necessary???

    Thanks!...
    Amazon has never been so helpful:
    http://www.HoffsReviews.com/

  4. #4
    Developing For Dunkets mneil's Avatar
    Join Date
    Mar 2007
    Location
    Lincoln City
    Posts
    2,156
    That is something Adobe has done. It's good, but there's one better
    swfObject:
    http://blog.deconcept.com/swfobject/

    If you go there it explains everything. Is it necessary, no. Do most people use it and would I suggest it, yes. You need to know how to use it to get it to work. What your code does you can find out by going to http://www.adobe.com/devnet/activeco...devletter.html

    PHP Code:
    <script type="text/javascript">
    AC_FL_RunContent'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','200','height','200','src','test','quality','high','wmode','transparent','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','test' ); //end AC code
    </script>
    <
    noscript>
    <
    object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="200" id="test" align="middle">
       <
    param name="allowScriptAccess" value="sameDomain" />
       <
    param name="movie" value="test.swf" />
       <
    param name="quality" value="high" />
       <
    param name="wmode" value="transparent" />
    <
    embed src="test.swf" quality="high" wmode="transparent" width="200" height="200" name="test" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </
    object>
    </
    noscript
    something like all that should work. I think you put it in the wrong place.
    http://code.mneilsworld.com/
    Text Effects | Bubbles | Dynamic Resize
    4 weeks , 20 papers ... thats 2 dollars .....Caassshhh!

  5. #5
    Senior Member
    Join Date
    May 2002
    Posts
    321
    Quote Originally Posted by mneil
    That is something Adobe has done. It's good, but there's one better
    swfObject:
    http://blog.deconcept.com/swfobject/
    That's a great resource, and exactly what I needed! Thanks!!!!
    Amazon has never been so helpful:
    http://www.HoffsReviews.com/

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