At 4:23 PM +0530 3/13/01, kalpesh wrote:
>I am making a CD-ROM Presentation on Alcohol Awareness. Wherein I have to
>calculate the BAC (Blood Alcohol Content)for the viewer.
>
>The formula is as follows :
>
>(((x*1882.816)/((y)*z*1000))-
>(.017*s/60))
>
>Where "x" is attached to a #bitmaps
>       "y"  is attached to a #field
>       "z" is attached to also a #bitmap
>     & "s" is attached to a #field
>
>I can get the relevant info But just help me with a script on how to
>calculate it & also on how to transfer the same information to
>another "dir" file.
>


What do you mean when you say (for example)  'Where "x" is attached 
to a #bitmap'?

If you can get these values into Lingo variables, for example, x, y, 
z, and s, then all you would have to do is to use the following two 
Lingo lines:

global BAC

BAC = (((x*1882.816)/((y)*z*1000))-(.017*s/60))

The second line is just a simple assignment statement, which because 
of the first line, assigns the answer into a global variable.  Global 
variables maintain their values across movies.

Irv
-- 
Lingo / Director / Shockwave development for all occasions.

        (Over two millions lines of Lingo code served!)

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to