To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > General Help > Math and Physics

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-06-2009, 11:00 PM   #1
Sub Tank
Member
 
Join Date: Apr 2006
Posts: 33
Spacing objects out evenly within a fixed space

I cannot figure out how to do this for the life of me.

Is there some sort of formula to figure out the exact spacing?
Sub Tank is offline   Reply With Quote
Old 08-09-2009, 03:49 PM   #2
fil_razorback
Senior Member
 
fil_razorback's Avatar
 
Join Date: Jul 2005
Location: Paris, France
Posts: 589
Yes.
Let's assume you have a set of n items which widths sum to W you want to put in a D wide area.
Then the spacing between items shoud be (D - W) / (n + 1)
__________________
fil_razorback is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > General Help > Math and Physics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 07:27 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.