all groups > macromedia flash sitedesign > october 2007 >
You're in the

macromedia flash sitedesign

group:

2 Questions based on existing site


2 Questions based on existing site heyseuss
10/1/2007 8:46:52 PM
macromedia flash sitedesign: Hi,

I have two questions regarding this great website I found the other day:

http://www.koko3.fi/

The first is probably quite basic. How do you position things within a Flash
canvas so that when the browser window is resized they move relative to each
other. If you resize the window around, the different boxes shift themselves a
little like they would with CSS. I'd love to know how to do this.

The other is the unusual way they've tiled the background image. Again, if you
resize the browser window to be very long horizontally and short vertically,
the image on the left shrinks to always be 100% the height of the window, but
is kept in proper proportion. The image on the right is a reversed image that
is slightly darker, and always fills the remaining space. If anyone can
describe how to script this that would be fantastic.

Many thanks
Re: 2 Questions based on existing site aniebel
10/4/2007 10:39:01 AM
Look into the "onResize" event of the Stage class. There's an excellent tutorial called "Full Browser Flash" here:
AddThis Social Bookmark Button