hello magnus
i'm not shure if i understand you correct:
-- behavior of the sprite:
property pOrgPos -- the orginal position of the sprite
global gThe_List_with_the_unvisible_memberNames
-- ["1001", "1002", "1003", "2003 A", ...]
on beginSprite me
-- get the orginal position
me.pOrgPos = sprite(me.spriteNum).loc
-- get the name of the member of this sprite
myName = sprite(me.spriteNum).member.name
-- contains the global list this name?
if (getOne(gThe_List_with_the_unvisible_memberNames, myName) > 0) then
-- if so, make it unvisible, but i prefert it to move it out of
-- the view-port, the stage
sprite(me.spriteNum).loc = point(-1900, -1900)
-- or
-- sendSprite(me.spriteNum, #setVisible, #false)
-- or make the sprite invisible
-- sprite(me.spriteNum).visible = false
end if
end
on setVisible me, trueOrFalse
case (trueOrFalse) of
#true: sprite(me.spriteNum).loc = me.pOrgPos
#false: sprite(me.spriteNum).loc = point(-1900, -1900)
end case
end
hope it helps
---
regards
dietrich roland
[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!]