Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-20-2007, 01:25 AM   PM User | #1
reapercharlie
New Coder

 
Join Date: Jan 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
reapercharlie is an unknown quantity at this point
Flash Transparency WITHOUT Border

I need to display a flash document with transparency, but while also removing the horrid border caused by the Eolas Case which requires Microsoft Internet Explorer to require you to activate ActiveX controls.

This simple code works for transparency:
Code:
<embed src="flash/document.swf" width="2345237235" height="67956785" quality="high" wmode="transparent">
And this one works for removing the border:
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','2345237235','height','67956785','src','flash','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/document' );
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="2345237235" height="67956785">
  <param name="movie" value="flash/document.swf" />
  <param name="quality" value="high" />
  <embed src="flash/rcvq_document.swf" quality="high" width="2345237235" height="67956785">
</object></noscript>
But for some reason, this code doesn't work to accomplish both:
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','2345237235','height','67956785','src','flash','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/document' );
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="2345237235" height="67956785">
  <param name="movie" value="flash/document.swf" />
  <param name="wmode" value="transparent">
  <param name="quality" value="high" />
  <embed src="flash/rcvq_document.swf" quality="high" width="2345237235" height="67956785" wmode="transparent">
</object></noscript>
I think it should work. Why shouldn't it?! Help me please. (Also note that I DO have the proper JavaScripts in the proper folder to make the border-removing script work.)

The result is a document that has no border, but is not transparent. Why? What attributes do I have to apply to make this document transparent?
reapercharlie is offline   Reply With Quote
Old 03-20-2007, 07:27 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
I never liked the DW active content script. Try SWFObject instead.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 03-20-2007, 08:03 AM   PM User | #3
reapercharlie
New Coder

 
Join Date: Jan 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
reapercharlie is an unknown quantity at this point
Thanks, but for the SWFObject, this is what it gives me the template for:
Code:
var so = new SWFObject(swf, id, width, height, version, background-color};
with this example:
Code:
var so = new SWFObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
How would I get it to be transparent instead of #336699?
reapercharlie is offline   Reply With Quote
Old 03-20-2007, 12:50 PM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Read the documentation on their site please, mainly the section titled how it works.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 03-22-2007, 08:14 PM   PM User | #5
reapercharlie
New Coder

 
Join Date: Jan 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
reapercharlie is an unknown quantity at this point
Ah.... once again I spoke too soon.
Thanks much, man. You're a great help!
reapercharlie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:53 AM.


Advertisement
Log in to turn off these ads.