swfObject and 100% height/width
- Started
- Last post
- 13 Responses
- fitsum
how do I get flash movies embeded using sefobject to display at 100% high and wide? I've triedentering 100% as height and width arguments of the swfObject function, have also tried using getElelmentById(x).style.width etc where is is the id of the div holdin the flash AND where x is the named swfobject.
- lvl_130
set scale to true and in your html make sure you set all margin width/height and left/top to 0 in your html
- fitsum0
sorry man. not working for me
- joyride0
Do the normal (old way) flash embed and do this. I've had some issues with swfObject too. This solved it (top one)
- Jnr_Madison0
http://blog.deconcept.com/swfobj…
Did you even read the site for swfobject? Scroll down to the download section, he has a template for 100% x/y flash you can donwload. I use it all the time.
- rafalski0
Why swfobject gets so popular is beyond me. It's few times more code than necessary (both in the js source and the embedding part) and surprisingly, quite often causes 'issues'.
- Jnr_Madison0
I've never had one problem, even fucking Adobe uses it.
- joyride0
I've never had one problem, even fucking Adobe uses it.
Jnr_Madison
(May 20 06, 07:35)Wow... chill man. I wouldn't put much faith in the fact that adobe uses it. I've worked directly with them on some flash issues and they never ever offered anything that helped. We always figured it out and told them about it.
swfObject worked 99% of the time, but we needed to pass info into the swf from the page, and for that it didn't work in IE (go figure). So we used the other method I linked above. Worked great and to be honest it seems easier. We'll see once it gets through testing and real world feedback if its got any problems. But options are a good thing!
- Jnr_Madison0
Ha ha, fair enough. I wasn't being serious btw, just came across like that :)
- joyride0
no worries man... sometimes you can never tell the seriousness in text...
- lvl_130
no worries man... sometimes you can never tell the seriousness in text...
joyride2
(May 20 06, 09:36)you just figured that out now?! what the fuck!
gotcha! : )
- joyride0
LOL
- caseyc0
You couldnt get data into the swf in IE? I've never seen that, what were you doing? Did you use addVariable on the SWFObject instance?
- smielke0
Check your Doctype in beginning of your HTML page. If you''ve got it set to strict then you're going to have issues with anything 100% height since it's not supported in that mode. Play around with all of the variations.