Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
display TreeView
Animated Slider Puzzle by J.R.D.R.
Change the Pattern of a Shape Cast member
Play different Movies For Different Game Levels
MPEG Xtra Controller Button
Make Director window odd sized.
Power Blender
Milliseconds
Sound on/off - MCI
Cyclic appearing and disappearing of sprite.
 

 

 

Behavior Least Common Denominator

Added on 6/27/2000

 

Compatibilities:
D7 D8 Mac PC Script Shockwave

Rating:

Author: JoergSeibert

Returns the least common Denominator between 2 numbers.

on getLCD num1, num2
  nFirst = max(num1, num2)
  nSecond = min(num1, num2)
  repeat while nFirst mod nSecond
    nDummy = nFirst mod nSecond
    nFirst = nSecond
    nSecond = nDummy
  end repeat
  return nSecond
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail