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
CTRL+B, CTRL+I, CTRL+U
Hierarchcal Menu using Imaging Lingo
Tabuleiro Nebulae MultiUserServer
Developing Projects Using Director and ASP
Check user's administrative privileges on NT platform
Emboss trick
Amara Flash Photo Slideshow software
Random numbers from file names -w/o BuddyAPI
Replace tabs with spaces
Move a line from field to field
 

 

 

Behavior Get Least Common Denominator

Added on 2/15/2000

 

Compatibilities:
D6_5 D7 D8 Mac PC Script Shockwave

This item has not yet been rated

Author: Macromedia (website)

From Technote #14060 at Macromedia.com

on GetLCD num1, num2
    theMin = float(min(num1, num2))
    theMax = max(num1, num2)
    i = 1
    repeat while i < theMin
      thisFactor = theMin/i
      if thisFactor = integer(thisFactor) then
        if theMax/thisFactor = integer(theMax/thisFactor) then
          return integer(thisFactor)
        end if
      end if
      i = i + 1
    end repeat
    return VOID
end

 


Contact

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

Send e-mail