PDA

View Full Version : Help Req. Inserting Flash into HTML document - scaling flash content correctly


flurokid
03-17-2006, 05:41 PM
Hi,

I have a website which I am building at the moment, I have a flash file which i want to insert into a table cell.

I've made my table cover 100% of the screen (including height) there is other content on the page other than the flash part.

For an idea of what I'm trying to do please take a look at www.lickerish.biz, you notice the large background image, well what I mainly want to do is to put the flash file in its place (currently the image is controlled via css) and have it fill the area where the current image is, 100% wide 100% high.

I have made a couple of tests which are just the flash file in a table set to 100% high and wide, it fills the space properly as you'd expect.

However when i insert it into my main layout page (with and without the table) it does not appear visible at all in internet explorer (yes microsoft strike again), the wierd ting is it works perfectly in Safari, Firefox and opera (all on mac) but when it comes to i.e. on the pc, i get no joy whatsoever.

If anyone can shed some light on this, or would like me to send them my test files to take a look at please ask, I'll upload them to my website.

I'm sure this is probably something pretty simple, and mostly to do with the embed tag, but i also feel it may be caused by the tables i am putting them in (you can just never make a table inside a table fit to 100% height, just doesn't like it).

Thanks in advance, also if you feel you can solve this independantly and would like to charge for it then please feel free to contact me with a quotation, but also any replies should go in the forum to aid other users should they have the same propblem.

Thanks

Matt

flurokid
03-19-2006, 04:52 PM
Hey guys, i worked it out today.

After much messing around with nesting tables and so on, i came to the idea of using an iFrame.

By placing an iFrame in the <td> where i wanted my sacaled flash file to be (and setting the src of the iframe to a html page which is set up to scale the flash file correctly) the iframe has attributes of 100% wide and high, and with no scrolling or borders the flash file/html file fits perfectly and works like a dream (in ie safari, firefox and opera).

If anyone is interested in seeing this in action it will be live on www.lickerish.biz (http://www.lickerish.biz) in a couple of days - just take a look at the source code and see how it works.