In addition to the extra comma, "spriteNum" is a keyword.  If you declare:

   property spriteNum

it will automatically  be given the correct value - the current 
sprite number.  If you want to use your own property variable (e.g., 
mySprite),  you must add something like this:

on beginSprite me
    mySprite = me.spriteNum
end

Irv

At 9:19 AM -0400 6/12/01, Gene Fritzinger wrote:
>Thank you Irv,
>
>Can anyone tell me if I'm doing something wrong? when I try to 
>compille this behavior I get a Symbol expected script error.
>
>property myRedBoxDate
>property mySprite
>
>on showIfInRange, me, startDate, endDate
>   if(startDate < myRedBoxDate) and (myRedBoxDate < endDate) then
>     --in the range, do whatever you want to show
>     sprite(mySprite).blend = 60
>   else
>     --not in the range, do whatever you want to not show it
>     sprite(mySprite).blend = 0
>   end if
>end
>
>Thanks again,
>g fritzinger
>
>
>[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!]


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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