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