>Anyone have a script or link? Unfortunately any of the bit operations return
>integers, not the 8-position binary number...

I missed most of this thread, so I apologize if this has been suggested (or 
not relevant).

If you know JavaScript, try feeding the ASCII character to a Flash sprite 
and have the Flash sprite do the conversion. JavaScript/ActionScript is 
much better than Flash for most bit-level operations.

Or, you could try something like this:

   asciiVal=charToNum("A")
   i=2
   sBinNum=""
   repeat with x = 0 to 7
     if bitAnd(power(i, x), asciiVal) then
       binChar="1"
     else
       binChar="0"
     end if
     sBinNum=binChar & sBinNum
   end repeat

Is that what you were looking for?

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to