Center+Performance Flash
- Started
- Last post
- 8 Responses
- fate_redux
Here's a nice script I wrote to do the following:
1) It centers your flash movie automatically, but keeps scrollbars available to prevent clipping of content
2) It automatically sets the Flash movie's bg to transparent if you're using IE. This speeds up playback closer to the actual flash environment.
3) If you're not using IE, then it serves the swf without transparency. Mozilla & Safari have problems with transparency, so this prevents problems while allowing IE to play smooth as silk.
http://www.fatedesigns.com/centeā¦
It's easy to edit as well, just modify the 2 fields at the bottom of center.html. The writeEmbedding fields are width, height, filename. Easy as that!
- fate_redux0
oops, link fixed.
- dan_dan_dan0
Cheers for sharing your work Fate.
- kld0
tanks, fate
- kld0
got a sample online to see?
- fate_redux0
Yep, here's a test.
- Solid0
Thanks for sharing fate.
What did you use to write/save the js file? It's comes up partly garbled in notepad, crimson editor, and dreamweaver .. ?
I get a bunch of "rectangles" at the beginning and end of the script where the "function" statement should be ..
Win2K, IE6/Firefox
- fate_redux0
Solid, it has to do with the way I encoded it. I can't remember how it was saved exactly, but is seems like I tried a thousand encoding methods before striking upon the garbled one that worked for me.
I'll see if I can't clean it up.
- Solid0
No prob - I was able to get it from your MarcoVitale link - nice work btw.