CSS + Flash

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

CSS + Flash

Post by nigma »

Hey, in CSS you can specify a background-image. Can you specify a background animation? Specifically flash?

Thanks guys / gals.
User avatar
Vincent Puglia
Forum Commoner
Posts: 67
Joined: Thu Sep 04, 2003 4:20 pm
Location: where the World once stood

Post by Vincent Puglia »

Hi,

Don't know since I'm not a flasher ;)

Why don't you try it --

background-image : url('somepic.gif')

or something like that

Vinny
User avatar
trollll
Forum Contributor
Posts: 181
Joined: Tue Jun 10, 2003 11:56 pm
Location: Round Rock, TX
Contact:

Post by trollll »

You can set the background to an animated gif image, but not a flash animation. But you could create a flash animation and export it to an animated gif and have it work (just no ActionScript, obviously).
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

If you're using DIV layers, you can place the flash movie on a layer behind the text or anything.

Example:

Code: Select all

<div style="position:absolute;left:0;top:0;z-index:1">
<embed src="somflash.swf"></embed>
</div>

<div style="position:absolute;left:0;top:0;z-index:2">
The text on top of the DIV
</div>
-Nay
User avatar
igoy
Forum Contributor
Posts: 203
Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:

Post by igoy »

Flash have friggin probs with DIV... i've been in vein while working of DIV's and flash.... it's like flash doesn't give any respect to DIVs it overrides them..or overlap whatever u prefer to call it...

this was my experience on win2k and XP with IE 5.x as well as IE6 and 6 with SP1 browsers.. netscape have bigger troubles with FLASH and DIVs....
User avatar
Vincent Puglia
Forum Commoner
Posts: 67
Joined: Thu Sep 04, 2003 4:20 pm
Location: where the World once stood

Post by Vincent Puglia »

Hi,

Flash, java, selection list elements, and a few other objects override normal elements on a page. Zindex does nothing. AFAIK, it is because those objects are rendered via the OS and not the browser. Any rate, if you really wish to learn more, msdn.microsoft.com and assorted other sites have articles on the phenonemon.

I like trollll's option.

Vinny
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Flash? Flush!
User avatar
igoy
Forum Contributor
Posts: 203
Joined: Fri May 02, 2003 11:57 pm
Location: India
Contact:

Post by igoy »

lol... don't flush it so fast Mac... Flash is my bread and butter... :)
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Alright guys, thanks for the help.
Post Reply