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
Jump Sprite - Move a sprite along a parabolic arc so it
Import from Access - Valentina
Install-us Pro
Go to URL
Dryclean
HTML-ingo
Change the Pattern of a Shape Sprite
Play/Pause/Rewind a Animated Gif Sprite
Mastering Macromedia Dreamweaver 3
Toggle ActionsEnabled Property of a Flash Sprite
 

 

 

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

 


Contact

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

Send e-mail