Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Math question

This is a discussion on Math question within the advanced Actionscript 3.0 forums, part of the Flash CS3 eng category; Hello, I have tried everything to make this work. I know there is an easy solution but it eludes me. ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > advanced Actionscript 3.0

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 21-08-08, 23:10
nosrevlah08's Avatar
Flash Designer/Developer
 
Join Date: Aug 2008
Location: Knoxville, Tennessee
Posts: 1
Rep Power: 0
nosrevlah08 is on a distinguished road
Math question

Hello,

I have tried everything to make this work. I know there is an easy solution but it eludes me. I have 2 sliders (see pic) that has a number attached to each one. I have everything set up except for one thing. I need to get the numbers to adjust as you move the sliders up and down. For example, as you drag the top slider down towards the bottom slider, the number needs to decrease as it gets closer to the bottom slider. Once it hits the bottom slider, the top number should match the bottom number. And visa versa for the bottom slider, as it moves up the number increases and matches the top number when it hits the top slider. The min/max starting numbers will change (they come from XML).

Long story short, I need an equation that makes the numbers adjust within the range of the high/low number. Thanks so much for any help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Basic Question GESYMSB Flash CS3 eng 3 19-06-08 15:17
Limit the range of Colors using Math.random() Magdy advanced Actionscript 3.0 0 15-05-08 20:48
Math proportions Flep Tutorials 2 15-04-08 06:00
AS 2.0 Question theuprock Flash CS3 eng 9 12-01-08 06:28


All times are GMT. The time now is 22:51.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406