PDA

View Full Version : Help! can't remember some action script


cocoonfx
07-21-2007, 01:33 AM
Hello


I am building a photo gallery in flash and i have some images which are landscape and some which are portrait.

At the top of the .swf i have a small thumbnails which the user places their mouse over. When the do this in a predefined area below the thumbnails the full image loads dynmaically using the code below.

on (rollOver){
this.gotoAndStop(2);
loadMovie("port5a.jpg",this._parent.subTarget);
}
on (rollOut){
this.gotoAndStop(1);
unloadMovie(this._parent.subTarget);

}

I want to make the images center if so that the portraits appear center and the same with the landscape images. Could anyone point me in the right direction as i can't remember how to do this?

Rgds
Cocoonfx

wasovs4
08-26-2007, 07:22 AM
[center] is the code to centre an image

davidj
08-26-2007, 02:24 PM
wasovs4

what do you mean by that