Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-19-2005, 12:45 PM   #1
lelales
forever learning
 
lelales's Avatar
 
Join Date: Aug 2004
Location: New Olreans
Posts: 1,261
Send a message via AIM to lelales Send a message via Yahoo to lelales
Default crazy numbers

I have some code from a friend but I don't want to ask him any questions, it was hard enough getting the code. Well he uses some crazy math and a tweening forumula that is about 600 lines long. I'm sure he downloaded the tweening forumla though but I can't figure out where. Anyway, in his custom functions he uses some crazy math.

Can anyone explain these numbers to me?

Code:
 _root["thumbCont" + y].alphaTo(0, 4.000000E-001, "linear", 6.000000E-002 * y);
thanks
lelales is offline   Reply With Quote
Old 12-19-2005, 01:06 PM   #2
Morg
1st party software!
 
Morg's Avatar
 
Join Date: Nov 2003
Location: South Africa
Posts: 916
Default

That is from the tweening class by Robert Penner. I think if you google it, you will find it.

You need to install the extension, then the numbers will make sense to you.
Morg is offline   Reply With Quote
Old 12-19-2005, 02:11 PM   #3
lelales
forever learning
 
lelales's Avatar
 
Join Date: Aug 2004
Location: New Olreans
Posts: 1,261
Send a message via AIM to lelales Send a message via Yahoo to lelales
Default thanks Morg

Yes I was looking to see where the easing equations came from. I downloaded Robert Penner's easing equation for AS 1.0 and AS 2.0, but they look a little different than what I have in my FLA.
Though I understand easing and how it works, I don't understand these numbers:
Code:
4.000000E-001
and
Code:
6.000000E-00
What is the "E" for? And why all the zeros?

thanks
lelales is offline   Reply With Quote
Old 12-19-2005, 02:18 PM   #4
Morg
1st party software!
 
Morg's Avatar
 
Join Date: Nov 2003
Location: South Africa
Posts: 916
Default

Im pretty sure you can lose those... When you have a really long/small number in mathematics, you generally say eg 16.00e-12 or something (Not 100% sure of how its written).

Try taking it out, and see what the easing does.
Morg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
5 different numbers from 22 numbers HotSalt ActionScript 1.0 (and below) 2 08-07-2004 03:36 AM
Slide Numbers / Page Numbers c2kman ActionScript 2.0 38 06-23-2004 01:14 AM
need help with unique numbers rkdresden ActionScript 1.0 (and below) 2 06-02-2004 10:10 AM
video and timecode numbers VideoGuy ActionScript 1.0 (and below) 8 04-06-2004 01:56 PM


All times are GMT. The time now is 04:10 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.