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
Making Multiple Animated Buttons
Get Keyboard Delay and Speed
Toggle Pause / Play Audio
Toggle ButtonsEnabled Property of a Flash Sprite
NightWares
DOMAJ Site and Forum
TrackTheColors Xtra Error
Get Least Common Denominator
SID6581
mPrint Designer
 

 

 

Behavior LEAP YEAR

Added on 5/27/2001

 

Compatibilities:
behavior D6_5 D7 D8 D8_5 Mac PC Shockwave

This item has not yet been rated

Author: KurtKoenig (website)

This is a way to calculate if a year is a leap year, or a regular year...

Download PC Source    Download Mac Source
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
--   LEAP YEAR
--
--   This is a way to calculate if a year is a leap year, or a regular year...
--  
--  
--
--   Kurt * Belgium           2001
--
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------


on mouseup me
  
  --Use fields for In-and Output
  
  vYear = (member "Input").text.integer
  vLeap = "a regular year"
  
  if  vYear mod 4 = 0 then
    vLeap = "a leap year"
  end if
  
  if vYear mod 100 = 0  and vYear mod 400 <> 0 then
    vLeap = "a regular year"
  end if
  
  put vYear&","&& vLeap into (Member "Output")
  
end

 


Contact

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

Send e-mail