> if ilk(this) <> #proplist then
this = gRaw[i + 1]
> end if
That should get you past the first problem.
However, you don't then check 'this' again to make sure it is now a
#propList
Also, the following syntax would be safer:
> if voidP( this.getAProp(#property) ) then
I can't see from your code what you're trying to achieve, but try this
instead:
on init me
i = me.spritenum - 19 -- we start with channel number 20
-- check that i doesn't go beyond the scope of gRaw
lCount = gRaw.count
if lCount >= i then
-- place the property lists contained in gRaw into the temp variable
this
-- (find the first propList in gRaw after gRaw[i - 1])
repeat with n = i to lCount
this = gRaw[n]
-- check if this is a PropList, if not get next item of gRaw
if ilk(this, #proplist) then
exit repeat
else
next repeat
end if
end repeat
-- is 'this' a propList
if ilk(this, #propList) then
if voidP( this.getAProp(#property) ) then
this[#property] = 1
pSpeed = 1
else
pSpeed = integer( this[#property] )
end if
else
-- what to do here? No propList found.
end if
-- etc.
--
end
[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!]