Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Timehouse Speech Xtra
Video Mask
Vector Shape - Create Saw Wave
Graphing a Function
Imaging Lingo - Hyporoid Illusion
Vector Shape - Create Ellipse (Improved)
Odd levels cause audio to play incorrectly
Download Net Thing
SpriTec Xtra! - Export your Cast and Score
Copy matching Pixels
MediaMacros Xtras Mall
 

 

 

Behavior Integer to Hex

Added on 7/12/1999

 

Compatibilities:
D7 D8 Mac PC Script Shockwave

This item has not yet been rated

Author: KevanDettelbach

Simply place this code into a movie script. You call it with one parameter,an integer. Its hexidecimal equivalent will be returned as a string.

on intToHex input
   --converts integer to a hexadecimal string
-- a list of the hexidecimal digits
   hexdigits = "0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"]
   done = false
   output = ""
   repeat while not done
     remainder = (input mod 16) + 1
     output = hexdigits[remainder] & output
     if input < 16 then
       exit repeat
     else
       input = input / 16
     end if
   end repeat
   return 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