| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Oct 2001
Posts: 1
|
I'm trying to make a flash interface that will show over a webpage (any HTML document) even when browsing any other site. I'have found a solution but it seems something isn't right.
I'm doing the following thing (it was tested in IE 5.5): - creating a floating frame <ilayer> with a low z-index - creating a layer with flash (wmode transparent) with a high z-index Then I just have to change the URL of the floating frame and everything works perfect. Flash shows over any HTML. The problem beggins when a page with a java applet or othe flash is loaded into the floating frame. Then this loaded flash or java shows over my flash, while the rest is still under (like it's supposed to be). Any idea how to make this work? Mabe some other solutions of this problem? Mic. Here is the HTML for referenc: <style type="text/css"> #floatframe {position:absolute; left: 0px; top: 0px; width: 800px; height: 600px; z-index: 1 }</style> [...] <div id="floatframe" style="left: 0px; top: 0px; z-index: 1"> <iframe width="800" height="600" name="_window" src="http://www.google.com" align="left" frameborder="0"><iframe> </div> [...] <div id="Layer1" style="position:absolute; left:0px; top:0px; width:800px; height:600px; z-index:100"> <OBJECT> [...flash stuff... wmode transparent...] </OBJECT> </div> |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Macromedia's own site removed Flash on pages with DHTML layers and ackowledged that the Flash Player has the highest Z-Index and cannot be superimposed by another layer. We recently saw a site which did it beautifully though: www.orange.co.uk . Don't ask me how!
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Aug 2006
Posts: 1
|
Hi people..
I have a similar problem please view www.goodtimesociety.com what the problem is, i have a menu bar which is a java script running on the side with buttons promotions, funstuff goodtimes, etc. well it sits under the flash layer, i need the java script button to sit on top of the flash, is there a way to do this, any code i need to put infront of the script? Please help me, as i can't find the problem to this. Cheers. digs |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Aug 2006
Posts: 1
|
Hi digs, i have the similar problem, did you find the solution?
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Sep 2006
Posts: 1
|
One solution to the above, would be to set the background of the flash file to transparent via the wmode parameter.
Great explanation of the above is available here: Adobe Tech Note Hope that helps! |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Jun 2004
Posts: 5
|
The following works with IE but not Firefox. Does anyone have a solution for the latter?
HTML Code:
<style type="text/css"> #floatframe {position:absolute; left: 20px; top: 10px; width: 800px; height: 600px; z-index: 1 }</style> <script type="text/javascript" language="JavaScript" src="swfobject.js"></script> </head> <body> <div id="floatframe"> <iframe width="800" height="600" name="_window" src="http://www.google.com" align="left" frameborder="0"></iframe></div> <div id="flashcontent" style="position: absolute; top: 0px; left: 0px; z-index: 100)"></div> <script type="text/javascript"> var so = new SWFObject("content.swf", "mymovie", "600", "600", "8", "#FFFFFF"); so.addParam("wmode", "transparent"); so.write("flashcontent"); </script> |
|
|
|
|
|
#7 |
|
Registered User
Join Date: Jun 2004
Posts: 5
|
On a lark I completely removed the iframe from its own div layer and sat it right in the page. It works amazingly on both browsers.
Now I am running into the problem azik was having with displaying the "top" flash over other flash content that loads inside the iframe. It seems that whenever flash redraws a piece of either movie it causes that redrawn region to pop up to the forefront. The only way I can think of to fix this is to cause my "top" flash to force a full redraw on enterFrame but obviously I'm hoping for a better solution. Does anyone have one? HTML Code:
<head> <script type="text/javascript" language="JavaScript" src="swfobject.js"></script> </head> <body> <div id="flashcontent" style="position: absolute; top: 0px; left: 0px; z-index: 100)"></div> <script type="text/javascript"> var so = new SWFObject("content.swf", "mymovie", "100", "100", "8", "#FFFFFF"); so.addParam("wmode", "transparent"); so.write("flashcontent"); </script> <iframe width="800" height="600" name="_window" src="http://www.google.com/" align="left" frameborder="0"></iframe> </body> |
|
|
|
|
|
#8 |
|
Member
Join Date: Apr 2005
Location: Rochester, MN
Posts: 51
|
Here is another solution to the problem
this is using adobe's AC_RunActiveContent.js file ActionScript Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| one template, many looks? | subquark | ActionScript 1.0 (and below) | 1161 | 09-03-2009 04:45 PM |
| Flash, JavaScript and the HTML DOM (dHTML) | drZoode | HTML and JavaScript | 10 | 08-21-2008 07:59 PM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 12:13 PM |
| Flash MX Developers Exam | VitiminJ | General Chat | 34 | 05-05-2004 02:27 PM |
| opening flash from html links | dotfoil | ActionScript 1.0 (and below) | 3 | 06-10-2003 09:48 PM |