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
Super Debugging
MIDIio
Label Search code
Mouse Clicks: left, left double, right, right double
OpenDocument
Lissajous Motion
Display Mode
Dialogs Xtra
123 Flash Menu
3D SpeedPort Xtra
 

 

 

Behavior Hex to integer

Added on 10/6/1999

 

Compatibilities:
D7 D8 Mac PC Script Shockwave

This item has not yet been rated

Author: MediaMacros (website)

Converts hex values to integers.

--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know. :-)
--Based on the integer to hex script by Kevan Dettelbach

on hexToInt hexNum
  hexdigits = ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"]
  numstring = 0
  repeat with x = 1 to 6
    numString = numString * 16
    numString = numString + hexDigits.getOne(hexNum.char[x]) - 1  
  end repeat
  return numString
end

 


Contact

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

Send e-mail