Topic: Alignment Question

I would like to make the first image in the strip align to the left not to the center of the stage. I have looked around the .as files and cant seem to find any way of changing this. Any suggestions?

Re: Alignment Question

...the same question - is there any way to align images to the left??

P.

Re: Alignment Question

Change this line in StageManager.as :

aImageXPosns[i] = xpos - Math.round((w-aImages[i].width)/2);    

to this:

aImageXPosns[i] = xpos;
Felix Turner
SimpleViewer Support Team.

Re: Alignment Question

Thanks for help Felix!

P.

Re: Alignment Question

thats exactly what i was searching for...

cheers for that!

obw.

Re: Alignment Question

oh, and if you want to have the images align to the bottom of the stage (rather than center) you can edit this bit of code:

//center jpg vertically       
aImages[i].setPosn(xpos,Math.round((h-aImages[i].height)/2));

to

//center jpg vertically       
aImages[i].setPosn(xpos,Math.round(h-aImages[i].height));

Re: Alignment Question

Change this line in StageManager.as :

aImageXPosns[i] = xpos - Math.round((w-aImages[i].width)/2);    

to this:

aImageXPosns[i] = xpos;

Great!

Re: Alignment Question

I imagine this would be of great interest to many - What about aligning images to the top? Please help - I've been trying to figure this out for a week!  roll

Re: Alignment Question

Felix -

I want to thank you for putting in me in a position where I *have* to teach myself flash, albeit somewhat blindly, like a carpenter without thumbs. But hey, it's coming together. lol

To align vertically, change this in Stagemanager:

//center jpg vertically
aImages[i].setPosn(xpos,Math.round((h-aImages[i].height)/2));

to this -

//center jpg vertically       
            aImages[i].setPosn(xpos,Math.round((h-aImages[i].height)/11));           
            xpos +=    aImages[i].width + mXMLManager.imagePadding; 

Another trick is to give your image a slight frame that is the same color as your bkgd.

Cheers

Re: Alignment Question

Aligning images to the left is now supported by the 'leftAlignImages' AS option in AutoViewer v1.4

Felix Turner
SimpleViewer Support Team.