This is a discussion on "Need some help flash peeps." within the Flash & Multimedia Forum section. This forum, and the thread "Need some help flash peeps. are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Need some help flash peeps.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Need some help flash peeps.
Ok so I have a flash piece I need to place in a layer above my html. The problem is I can't get the background to be transparent. Has to be output by js because of IE's suck. and that is the only way to get it to auto start. Problem is I have to set the height to say 425px to fit in with the layout, my goal is to have it on top with transparency so the hovers don't get cut off. Any ideas?
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Dec 15th, 2006 at 00:21. |
|
|
|
#2
|
|||
|
|||
|
Re: Need some help flash peeps.
N/M I figured it out.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Need some help flash peeps.
What was your solution?
|
|
#4
|
|||
|
|||
|
Re: Need some help flash peeps.
Due to IE sucking.. Here is what I did.
Make a .js file say foo.js document.write("<div style=\"z-index:1; background:transparent; position:relative; top:-100px; left:0;\">"); document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"600\" height=\"600\" id=\"scroller\" align=\"left\"><param name=\"wmode\" value=\"transparent\">"); document.write("<param name=\"movie\" value=\"/includes/flash/foo.swf\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" />"); document.write("<embed src=\"/includes/flash/foo.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"600\" height=\"600\" name=\"scroller\" wmode=\"transparent\" align=\"left\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>"); document.write("</div>"); and in your HTML place <script type="text/javascript" src="/includes/js/foo.js"></script> and you have a nice transparent background having flash object that works in FF, IE etc.. Style the outputted div to position as required etc etc.. In my case I needed it to line up correctly yet allow hovers that would appear over the text. I would put a screenie but I would get fired heh. But there you have it. One sexy line of include code in your html and a sep js file to control your flash object. Adjust the parameters as required. The pain in the butt is that you need both the <object> tag and <embed> to cater to all the browsers but at least this way keeps your HTML source lean and mean.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Dec 15th, 2006 at 14:52. |
|
#5
|
|||
|
|||
|
Re: Need some help flash peeps.
hehehe, the one chance I get to help moojoo...and I miss out...cause I was working...DANG!!
|
|
#6
|
|||
|
|||
|
Re: Need some help flash peeps.
Yeah well, sorry I only ask when I am really stuck heh.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Need some help flash peeps.
hahaha...lol, plus you don't do flash that much...right?
|
|
#8
|
|||
|
|||
|
Re: Need some help flash peeps.
Not I sure don't.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#9
|
|||
|
|||
|
Re: Need some help flash peeps.
hahaha...I thought so, what brings you doing flash in this project?
|
![]() |
| Tags |
| flash and ie |
| Thread Tools | |
|
|