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
Imaging Lingo Basics
Simple file open/save dialog behavior
FlushEventsXtra
Open Help File
Lingo Sorcery
Bounce That Sprite
Set Frame Rate for Flash Member
Director Showcase Site - Behaviors, interactive examples, Lingo to ActionScript translator & more
goMail LDM
Check QuickTime Version
 

 

 

FAQ Hexadecimal numbers

Added on 8/8/2003

 

Compatibilities:

This item has not yet been rated

Author: sirozz

How you can use hexadecimal numbers in director...

(sorry for bad english, I'm french)

Just copy / paste in lingo.ini  and restart Director.
Now you can use :
put h7F
-- 127
put h80 + h7F
-- 255
It's good to use with BInaryXtra !



on startup
global h00, h01, h02, h03, h04, h05, h06, h07, h08, h09, h0A, h0B, h0C, h0D, h0E, h0F,
       h10, h11, h12, h13, h14, h15, h16, h17, h18, h19, h1A, h1B, h1C, h1D, h1E, h1F,
       h20, h21, h22, h23, h24, h25, h26, h27, h28, h29, h2A, h2B, h2C, h2D, h2E, h2F,
       h30, h31, h32, h33, h34, h35, h36, h37, h38, h39, h3A, h3B, h3C, h3D, h3E, h3F,
       h40, h41, h42, h43, h44, h45, h46, h47, h48, h49, h4A, h4B, h4C, h4D, h4E, h4F,
       h50, h51, h52, h53, h54, h55, h56, h57, h58, h59, h5A, h5B, h5C, h5D, h5E, h5F,
       h60, h61, h62, h63, h64, h65, h66, h67, h68, h69, h6A, h6B, h6C, h6D, h6E, h6F,
       h70, h71, h72, h73, h74, h75, h76, h77, h78, h79, h7A, h7B, h7C, h7D, h7E, h7F,
       h80, h81, h82, h83, h84, h85, h86, h87, h88, h89, h8A, h8B, h8C, h8D, h8E, h8F,
       h90, h91, h92, h93, h94, h95, h96, h97, h98, h99, h9A, h9B, h9C, h9D, h9E, h9F,
       hA0, hA1, hA2, hA3, hA4, hA5, hA6, hA7, hA8, hA9, hAA, hAB, hAC, hAD, hAE, hAF,
       hB0, hB1, hB2, hB3, hB4, hB5, hB6, hB7, hB8, hB9, hBA, hBB, hBC, hBD, hBE, hBF,
       hC0, hC1, hC2, hC3, hC4, hC5, hC6, hC7, hC8, hC9, hCA, hCB, hCC, hCD, hCE, hCF,
       hD0, hD1, hD2, hD3, hD4, hD5, hD6, hD7, hD8, hD9, hDA, hDB, hDC, hDD, hDE, hDF,
       hE0, hE1, hE2, hE3, hE4, hE5, hE6, hE7, hE8, hE9, hEA, hEB, hEC, hED, hEE, hEF,
       hF0, hF1, hF2, hF3, hF4, hF5, hF6, hF7, hF8, hF9, hFA, hFB, hFC, hFD, hFE, hFF


  sys = "0123456789ABCDEF"
  repeat with i = 0 to 255
    hexa = sys.char[(i/16)+1] & sys.char[(i mod 16)+1]
    code = "global h" & hexa & RETURN & "h" & hexa & "=" & string(i)
    do code
  end repeat
end startup

 


Contact

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

Send e-mail