Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
eCommerce Xtra 1.5
Sprite Works
Minimizer
3D controller example
Rotate-Alphamania
Elliptical Sprite Behavior
Clock Hands Behavior
BASS Xtra v1.0
Iconizer
Get Visual Line Count and Current Visual Line of Insertion
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail