Good afternoon,
As a photographer, I take great care about the way my portfolio is presented on my site (http://www.girls-on-film.be/portfolio). I already am pretty satisfied by the result so far ( I made de portfolio with SlideShowPro), but it needs some more cosmetic changes.
But now I stumble onto the fact that it all looks fine a Pc, but when visitors look to my site on their laptop, the bottom half of the image is of screen, forcing them to scroll up and down, and that is not a good experience!
So the solution is to make the site, our at least the page that holds the slideshow, resizable !
So, the first thing I did is to add an action to the swf so that it can resize.
But here I ran into a problem.I place the swf on the page by dragging it into place. But, in the browser, when resizing the window, nothing happens? I dig deeper in the matter and found these instructions: " When you embed the slideshow using swfobject or whatever, make sure you set the height and width to “100%”, not some fixed pixel value. stage.stageWidth and stage.stageHeight can be used anywhere in the project, and are pretty useful variables".
But the way I drag the swf on place, there is no swfobject in play, let alone that their are parameters I can adjust…
Can anyone give me a hand on this one please?
Thanks
Johny
You can adjust the parameters of the SWF object through Freeway’s
Extended dialog. Click once on the movie, then choose Item / Extended
from the main menu. Then click New, and enter the name and value of
the properties you want to change within that dialog.
If that doesn’t do the whole trick, then also enter 100% as the
dimensions of the HTML box that positions the Flash movie on your page.
Walter
On Jul 2, 2010, at 9:39 AM, johnyw wrote:
So, the first thing I did is to add an action to the swf so that it
can resize.
But here I ran into a problem.I place the swf on the page by
dragging it into place. But, in the browser, when resizing the
window, nothing happens? I dig deeper in the matter and found these
instructions: " When you embed the slideshow using swfobject or
whatever, make sure you set the height and width to “100%”, not some
fixed pixel value.
It’s not working ??
I selected the swf, then item>extended, made two new entrees:
name: stage.stageWidth, value: 100% and name:stage.stageHeight value:100%.
How and where I have to enter teh 100% value for the HTML box, I am afraid I don’t know how to do that…
Try adding some more elements to the Extended dialog – plain height
and width. Make those both 100%. I’m not sure that the stage
properties will have anything to do with how it looks on the screen in
your browser, because whatever you set within the movie will be
constrained by the pixel dimensions of the object and embed tags.
Adding height and width to the extended attributes will make those
dimensions appear in percentage scale as well, which is where I
suspect the whole problem has been all the time.
To change the DIV that wraps a SWF and places it on the page, click
once on your Flash movie, then look in the left-most tab of the
Inspector. The height and width you see there are the places to change
that. If you don’t enter an increment, Freeway assumes pixels. But if
you enter a % sign directly after the numbers, it will output a
percentage size. Note that percentage means percentage of the nearest
parent object, which is probably the page. If your page has Align set
to anything at all, then that will mean 100% of the page width defined
in the output tab of the Page Inspector, so it won’t scale with the
window unless the window is smaller than that defined page width. But
if your Align is set to None, your page is free to grow to fill the
browser window.
Walter
On Jul 2, 2010, at 12:21 PM, johnyw wrote:
It’s not working ??
I selected the swf, then item>extended, made two new entrees:
name: stage.stageWidth, value: 100% and name:stage.stageHeight value:
100%.
How and where I have to enter teh 100% value for the HTML box, I am
afraid I don’t know how to do that…
Good evening waltd,
Thx a lot, I got it to work now, except for the navigation of the swf. Have a look, that part does not resize with the rest…
I will address the people from SlideshowPro for that!
Nearly there