On Friday, October 18, 2002, at 11:32 AM, Sharon Moeller wrote:

CurrentWord never equals anything. Why?
I suspect it has to do with the fontStyle command, which doesn't deal with strings. fontStyl;e returns a list of symbols.

Try this instead.

on mouseDown me -- mouseUp might be better, but what the hey

nMW = the mouseWord

-- it's preferable to break your if...then statements across multiple lines
if nMW < 1 then
exit
end if

lFontStyle = sprite(me.spriteNum).member.word[nMW].fontStyle

-- here we see if #underline happens to be in the fontstyle list
if getOne ( lFontStyle, #underline ) > 0 then
currentWord = sprite(me.spriteNum).member.word[nMW]
end if

END


Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://shop.osborne.com/cgi-bin/osborne/0072195622.html

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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