Loadmovie - Centering pictures

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 21st, 2007, 22:46
Up'n'Coming Member
Join Date: May 2007
Location: Tamworth
Age: 30
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cocoonfx
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
Reply With Quote

  #2 (permalink)  
Old Jul 22nd, 2007, 16:36
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
Reply

Tags
flash

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 17:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43