> I am working on a project that the end user can choose several options.
> (Doors) I was wondering how I can swap the current castmember for the one they
> choose. Also, what if they want to change that castmember for another one. I
> am confused! 

You can set a sprite's member through its member property:

sprite(1).member = member("some member")
 
> On a slightly different problem....I have small alias images for several
> buttons within my interface. What I am doing at this point is turning the
> alias's on and off based on the button that is clicked. Great so far. But I am
> wondering if there is a simpler way of doing it.

There are other ways than using visible (setting the sprite's member to a
holder, moving the sprite offscreen, etc.), but, you can use a loop to do
what you want:

on setToInvisible firstSprite, lastSprite
  repeat with i = firstSprite to lastSprite
    sprite(i).visible = 0
  end repeat
end

Or, pass in a list ([1,4,6,8,9], for example):

on setToInvisible2 spriteList
  repeat with i = 1 to spriteList.count
    sprite(spriteList[i]).visible = 0
  end repeat
end

So, whatever script needs to set sprites' visibility would have a line like
so:

setToInvisible(1,20)

or 

setToInvisible2([1,3,5,7,9])

Hope this helps to get you started,

Kurt


[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