Hi all,

I have a popup menu that is made of puppeted members. One button always there, others 
appear when it is clicked (fade in & out etc). I am trying to attach a simple test 
script to them (see code below) but for some reason, only the last sprite actually 
reacts to the rollover...... I will probably unpuppet them anyway (don't know why I 
did it in the 1st place - I always forget that it's better to just move them on/off 
stage !) but was curious as to why this code isn't working anyways.

Script assigning code:

    x = script("runtime rollover1").new()
    sprite(200).scriptInstanceList.add(x)

    y = script("runtime rollover2").new()
    sprite(201).scriptInstanceList.add(y)

    sendsprite(200, #remote_setup, 45, 44, 200)
    sendsprite(201, #remote_setup, 47, 46, 201)

Code for member "runtime rollover1" (is identical for "runtime rollover2" - I was 
trying to see if using different script members helps...):

property Rmember, Origmember, pSpritenum

on remote_setup me, rolloverMem, origMem, sNum
  Rmember = rolloverMem
  OrigMember = origMem
  pSpriteNum = sNum
end

on mouseEnter me 
  sprite(me.spritenum).membernum = Rmember
end

on mouseLeave me
  sprite(me.spritenum).memberNum = Origmember
end

---------------------

As I said, the second member - 201 - works fine. 200 does sod all (no rollover) 
although a quick check in the watcher window tells me that it does have the script 
attached.

Anyone able to help?

Leon











[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