PDA

View Full Version : Flash movie in webpage--help please


Stephon
02-09-06, 12:41 PM
Jim, Eric, Scot, Steven, anybody-

I'm using Dreamweaver. I have a table with an image in it. I have a Flash movie (swf) file that I want to place in a specific location in the image.

I put it -here- (http://www.swamiyo.com/docwalkersideshow.html) so you could see what I mean. (The grey background and green border are just there to clarify the exact size of the table). The movie needs to go in that little square-ish place in the center.

I can do it by drawing a layer and inserting the movie in the layer, but the layer will not stay in position relative to the image if the browser or resoultion size changes.

Any suggestions on how to achieve what I'm trying to?

Thanks!

Doctor Eric
02-09-06, 06:19 PM
Fer chrissakes, Stephon, will you switch to a text editor already? It's been long enough. What the hell is drawing a layer?

The easiest way to do this is to export your flash movie with an html page at the exact size that you need it, then go into the html page that flash generated, copy all of the embed code and paste it into the corresponding td on your page, making sure that all the paths are correct. Uh... is that pretty clear?

Rachel Peters
02-09-06, 06:21 PM
Originally posted by Doctor Eric
The easiest way to do this is to export your flash movie with an html page at the exact size that you need it, then go into the html page that flash generated, copy all of the embed code and paste it into the corresponding td on your page, making sure that all the paths are correct. Uh... is that pretty clear?

no, no. ...The easiest way to do it, is to pay someone else to do it.
That's my two Canadian cents (which is worth nothing.)

Doctor Eric
02-09-06, 06:36 PM
I see your problem now, you need to break up your table so that there is a td the same size as your flash movie in the center there. Slice up your image in photoshop.

martin ewen
02-09-06, 07:50 PM
Draw a layer where required,
go up to dreamweaver toolbar and select 'Insert'
select "media' then from there select 'flash' and go to intended content filed in your site folder and click
'choose'.
At least i think thats what you need but it seems a little too straightforward for it to be your problem.
Oh and from what eric says it seems you want to plonk it on top of another image.
Well...easier to plonk it between images.
Try both.

Stephon
02-09-06, 10:18 PM
Thanks for the suggestions, guys.

I managed to solve the problem--Eric, a layer is a <div> tag that lets you place something (text, media, graphics) freely in any particular size and place on your page. The problem is, they only maintain their formating relative to something else, like text, another layer, or the top left corner of the page.

I realized that if I drew a layer to insert the graphic in, and then drew another, smaller one over that for the movie, that the second layer would stay in position relative to the first. What you suggested, Martin, is what I had done originally, but without the other layer, the thing stayed in an absolute position, while the rest of the page moved around it.

So that problem is solved, but now I have another (which I think may be simpler to solve)--since I'm not using any tables, I can't seem to figure out how to get the content of the page to stay centered in every browser, regardless of the screen resolution.

Any thoughts on that?

Thanks again.

Stephon
02-13-06, 09:56 AM
Oh, slices Eric.

I'd never actually used them before; I looked into it, sliced up the image, and hot patootie, it worked like a charm--all problems solved.

Thanks!

Doctor Eric
02-13-06, 05:52 PM
TA-DA!

scot
02-15-06, 12:24 PM
finally just read this thread. good job eric. never thought you'd suggest tables.