taboca
12-01-2003, 08:55 PM
So I am trying to make a kind of 100% width full screen production. I am also loading directly the swf (I am intended to make an HTML that puts the swf using 100% width later).
Ideally I would like to use the full width, to scale the contents to the width="100%". Then I can take care of the height to center things If I know the canvas actual height.
Seems like something like the following sample it's almost good. I have a background image with 1280 so I load this SWF directly into the browser window. Then the 100% of the window becomes the 1280 relative points.
<canvas width="1280" bgcolor="#000000" oninit="">
<splash/>
<view resource="bg/bg1.jpg" />
</canvas>
But then the background appears somewhat at position x=0 (good) but y=200 (bad). BTW it's not really 200 - it's variable. I am wondering if I can position the view of the bg image really at the 0x0 - or maybe you know an alternate avenue to take here so I can have a full screen type of production inside the browser page.
Ideally I would like to use the full width, to scale the contents to the width="100%". Then I can take care of the height to center things If I know the canvas actual height.
Seems like something like the following sample it's almost good. I have a background image with 1280 so I load this SWF directly into the browser window. Then the 100% of the window becomes the 1280 relative points.
<canvas width="1280" bgcolor="#000000" oninit="">
<splash/>
<view resource="bg/bg1.jpg" />
</canvas>
But then the background appears somewhat at position x=0 (good) but y=200 (bad). BTW it's not really 200 - it's variable. I am wondering if I can position the view of the bg image really at the 0x0 - or maybe you know an alternate avenue to take here so I can have a full screen type of production inside the browser page.