These forums are provided for community interactions only. For official support please submit a support ticket.
You are not logged in.
I am new to this, so I apologise in advance if I'm asking an obvious question.
I can not achieve the same behaviour with a slideshow created using Director and one using SlideShowPro for Flash AS3. Specifically the scaling of the slideshow within a browser window. For example:
In HTML, the width and height attributes are set to "100%".
The slideshow created with Director expands fluidly to fill the space. The proportions of the content area change to match the size of the window, the images rescale beautifully within it, the width of the navigation bar expands and contracts so it always matches the full width of the browser window, but its height does not change, and the scale of the buttons and thumbnails is always 1:1. This is wonderful. Exactly what I want.
http://montagu-pollock.co.uk/test/portfolio.html
The slideshow created with SlideShowPro for Flash also resizes to fill the space, but not in the same way. The entire navigation bar scales up and down, and the distance between it and the bottom of the page varies, which is not what I want at all.
http://montagu-pollock.co.uk/test/test.html
This is unfortunate, because I want the slideshow to behave as it does with Director, but I want to use ThumbGrid, and (so far) I am struggling to achieve the same look and feel in Flash.
Have I missed a setting, or does the slideshow for Director have greater sophistication?
Guy.
PS: Please note that both links are to test sites that are work in progress, and may change in appearance from one visit to the next.
Offline
As well as this post, I contacted SlideShowPro directly and I'm extremely grateful for their very quick response. The solution is to add a new layer in the FLA file with the following actions:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
SSPfolio.setSize(stage.stageWidth,stage.stageHeight);
This makes the content and the navigation bar the perfect size for any open browser window. To make resizing fluid, so it changes smoothly and automatically as the browser window is resized, I was encouraged to read up on listeners. I found a good tutorial at:
http://www.adobe.com/devnet/flash/artic … d_gui.html
and modified the code as follows:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);
// initialize sizing
resizeHandler (null);
function resizeHandler (event:Event):void {
var sw:Number = stage.stageWidth;
var sh:Number = stage.stageHeight;
SSPfolio.setSize(sw,sh);
}
It now works superbly.
Guy.
Last edited by guypollock (2011-01-07 18:38:35)
Offline
guypollock wrote:
... but I want to use ThumbGrid, and (so far) I am struggling to achieve the same look and feel in Flash.
Did you ever figure out how to do a fluid layout with ThumbGrid? I had look at your site and it's great, but it looks like you're still using SSP by itself with some custom buttons.
Offline
Yes I did, thanks, using the code mentioned above to make it squeeze and stretch.
Both of them were made using SSP for Flash rather than just the standard Director slide-show. The one on the index page is no-frills, but the one under "Portfolio" (http://www.montagu-pollock.co.uk/portfolio.html) also uses ThumbGrid.
The key to unlocking the fluid/liquid layout was the code quoted above. Once you have sussed out how to apply it to one of the Flash instances, the other is easy, and so the liquid layout works for both ThumbGrid and the slide show equally well.
It's interesting you say it looks pretty standard. Some might criticise me for wasting money because all I ever wanted to change was the style of text in gallery view. In fact, once I had SSP for Flash, even the no-frills one benefited, because I could insert the little "Loading ..." text.
Guy.
Last edited by guypollock (2011-01-31 23:29:08)
Offline
Thanks for your reply. Your main portfolio page using ThumbGrid looks great, but I thought you were using TG for the thumbnails on the individual gallery pages as well. That's what I'm trying to do.
Offline
Yes, you're quite right: I am. Again, I didn't want anything that was so very different from default, but I was intensely irritated that the standard gallery thumbnails were off-centre, which is why I did it this way. A few lines of script listen for changes in width of the window and keep the mini-ThumbGrid central.
Guy.
Offline
PS: I don't want to put my e-mail address down here because of e-mail trawling, but I am very happy to send the whole action script if you send me an e-mail using the link on my Contact page: http://www.montagu-pollock.co.uk/contact.html
Guy.
Offline
Thanks Guy. I know very little about action script, so I'm not sure if I'll be able to make much sense of it, but I appreciate you sending it. I'm not even sure it will work for me, because you're using it for the gallery page and I want fluid resizing of the image thumbnails.
Thanks again.
Offline
I like to do to something similar but but i am not there yet. I like to fo follow for both normal & fullscreen mode:
If the webpage is bigger that my flash.swf (1050x900) NO resize to anything just my_tg always center on the bottom , my_ssp always in the middle center and my nav_mc always in the top center
if smaller that 1050x900 the same but re size all so everything fits in the window.
Follow code, with the great help of Guy, i have
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.events.Event;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
var ti:Number = 0;
var nw:Number = 0;
var sw:Number = stage.stageWidth;
var sh:Number = stage.stageHeight;
resizeHandler (null);
function resizeHandler (event:Event):void {
sw = stage.stageWidth;
sh = stage.stageHeight;
my_ssp.setSize(950,656);
my_tg.setSize(950,107);
my_ssp.x = stage.stageWidth/2-my_ssp.width/2;
my_ssp.y = stage.stageHeight/2-my_ssp.height/2;
my_tg.y = sh-my_tg.height;
my_tg.x = (my_tg.stage.stageWidth / 2) - (my_tg.width / 2);
}
Demo page: http://lambisstratoudakis.com/index.htm
Offline
I'm also looking for answers... But I saw your website and loved what you do....
Offline
I almost manage to do what i want. No rescale and nav on top , thumbs on bottom and ssp in the middle.
What i need is to just downscale for screen under 800 high (as laptops)
Any tips?
Hier my code
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);
resizeHandler (null);
function resizeHandler(e:Event):void
{
my_ssp.x = (my_ssp.stage.stageWidth / 2) - (my_ssp.width / 2);
my_ssp.y = (my_ssp.stage.stageHeight / 2) - (my_ssp.height / 2);
my_tg.x = (my_tg.stage.stageWidth / 2) - (my_tg.width / 2);
my_tg.y = (my_tg.stage.stageHeight) - (my_tg.height);
my_nav.x = (my_nav.stage.stageWidth / 2) - (my_nav.width / 2);
nav_mc.x = (my_ssp.stage.stageWidth / 2) - (my_ssp.width / 2);
nav_mc.y = (my_ssp.stage.stageHeight / 2) - (my_ssp.height / 2);
I played with follow code but i cant get it right
function checkStageSize():void {
var needToScaleDown:Boolean = (sh < 750);
if ( needToScaleDown ) {
var scale:Number = sh/750;
my_ssp.scaleX = my_ssp.scaleY = scale;
} else {
my_ssp.scaleX = my_ssp.scaleY = 1;
}
}
Last edited by motionsync (2011-02-16 02:25:58)
Offline
I don't know how you can downsize for small screens, but your site is looking good. Can you tell me how you did the plus and minus symbols on mouse over?
Last edited by arossphoto (2011-02-16 02:02:15)
Offline
arossphoto wrote:
I don't know how you can downsize for small screens, but your site is looking good. Can you tell me how you did the plus and minus symbols on mouse over?
They are just 2 buttons
Check my code:
// for listeners
next_btn.addEventListener("click",onNextClick);
prev_btn.addEventListener("click",onPrevClick);
// for action
function onNextClick(e:MouseEvent):void { my_tg.nextThumb(); }
function onPrevClick(e:MouseEvent):void { my_tg.previousThumb(); }
hope thats help
Offline
Thanks for the code, but don't you also need something to show and hide the buttons when you mouseover the left or right side of the stage?
Offline
just make the hit area way bigger that the button and the the UP keyframe empty
Offline
I've never heard the phrase "hit area" before and didn't know you could change the key frames for button states. I just did some searching and really learned a lot today. Thanks very much.
Last edited by arossphoto (2011-02-16 19:05:55)
Offline
guypollock wrote:
Yes I did, thanks, using the code mentioned above to make it squeeze and stretch.
Both of them were made using SSP for Flash rather than just the standard Director slide-show. The one on the index page is no-frills, but the one under "Portfolio" (http://www.montagu-pollock.co.uk/portfolio.html) also uses ThumbGrid.
The key to unlocking the fluid/liquid layout was the code quoted above. Once you have sussed out how to apply it to one of the Flash instances, the other is easy, and so the liquid layout works for both ThumbGrid and the slide show equally well.
It's interesting you say it looks pretty standard. Some might criticise me for wasting money because all I ever wanted to change was the style of text in gallery view. In fact, once I had SSP for Flash, even the no-frills one benefited, because I could insert the little "Loading ..." text.
Guy.
guy,
do you indicate that we must set the code twice, once for each ssp + thumbgrid? or just once?
i created a Layer2, and inserted the actionscript in first frame.
Still having difficulty. But part of this seems to be the embedding in Wordpress. When I set the width or heigth to 100% the show disappears.
Any assistance on getting fluid scaling in wordpress to work appreciated!!!
~ Michael
Offline