PDA

View Full Version : Actionscript/ JS plays Flash over HTML


GDubb
04-25-2002, 06:22 PM
I've seen ads on several sites that are created in Flash and play over the HTML content of a page. Several examples include maximonline.com, entertainmentweekly.com, and starwars.com.

After looking through the source HTML pages of these sites, I can't seem to locate a script that allows this. It's very fascinating and would be really useful on a lot of projects. I figure some actionscript must also be involved in these Flash ads because their background colors are knocked out to make the ads look like they have 'clipping paths' around them as the animation plays over the HTML page.

Does anyone know what I'm talking about!? How can I go about creating this effect? Thanks in advance for any help.

Jesse
04-26-2002, 02:20 AM
Flash has the highest Z precedence of all objects in the borwser, which is often a real pain. This means that if you put it in an HTML Layer it will automaticlaly go above everything else. Moving it around on the page would then involve moving the layer using DHTML or Javascript (which I can't teach you how to do).
In IE you can also set the background of a SWF to be transparent. But that's in IE only. So if you're meaning the effect I think you mean, there's no actionscript involved at all ;)