This is a discussion on "Loadmovie - Centering pictures" within the Flash & Multimedia Forum section. This forum, and the thread "Loadmovie - Centering pictures are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Loadmovie - Centering pictures
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Loadmovie - Centering pictures
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 |
|
|
|
|||
|
Re: Loadmovie - Centering pictures
I would say just make sure each images anchor point is in the center of the image. (the little circle) Then, in your code just set your _x and _y coordinates to the center of your presentation, however wide that would be.
On 800x600 it'd be _x.400, _y.300. That'd be how I do it.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Tags |
| flash |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help please?!:about loadMovie function in layered MCs | baitwens | Flash & Multimedia Forum | 4 | Sep 18th, 2007 17:51 |
| loadMovie(),loadMovieNum() | al2000123 | Flash & Multimedia Forum | 2 | Aug 6th, 2007 05:07 |
| flash cs3 loadmovie(); error | gwx03 | Flash & Multimedia Forum | 2 | May 23rd, 2007 15:09 |
| loading multiple images with loadMovie | yardgnome | Flash & Multimedia Forum | 1 | Jan 2nd, 2006 20:37 |
| need help with loadmovie.... | courtjester | Flash & Multimedia Forum | 1 | Jun 7th, 2004 08:11 |