yes, you need to include the me variable to absorb that reference, like so:
on SwapMember me, Info Sprite(the currentSpriteNum).member = Info end Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 ----- Original Message ----- From: "DT-Rene Vazquez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 26, 2003 12:32 PM Subject: RE: <lingo-l> parameter > Hi thanks to all, > > Charlie, I have tested your solution and created something like this: > > on SwapMember Info > Sprite(the currentSpriteNum).member = Info > End > > And calling it like this: sprite(2).SwapMember(InfoText) > > But when I debug it, Info has the value (sprite 2) > > Any clue on this. > > Thanks a lot > > > -----Original Message----- > From: Charlie Fiskeaux II [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 10:09 AM > To: [EMAIL PROTECTED] > Subject: Re: <lingo-l> parameter > > It thinks that you're trying to call a handler called member in a script > attached to sprite 2. Try creating a handler in a script attached to > sprite > 2 that swaps itself out when called, then instead of > > sprite(2).member=member InfoText > > you could do something like > > sprite(2).switchMember(InfoText) > > Charlie Fiskeaux II > Media Designer > The Creative Group > www.cre8tivegroup.com > 859/858-9054x29 > > ----- Original Message ----- > From: "DT-Rene Vazquez" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 26, 2003 9:24 AM > Subject: <lingo-l> parameter > > > > Hi, how I can pass as a parameter to a handler a value to replace the > > cast member of a MIAW's sprite. > > > > What I'm trying to do is this: > > > > on ShowWindow InfoText > > > > global DetailWindow > > > > set DetailWindow to window "Data" > > > > open DetailWindow > > > > tell DetailWindow > > > > sprite(2).member = member InfoText > > updateStage > > > > end tell > > > > end > > > > but when I run the handler I get the error: > > 'Handler not defined sprite(2).member = member InfoText #member' > > > > anyone know what I'm doing wrong. > > > > Thanks a lot in advance > > [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!] > > > > > [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!] > [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!] > [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!]
