lingo-l creating behavior / calling handler question

2001-08-21 Thread grimmwerks
Just got in and thought I'd post the question before I attempted it myself. I've got a bunch of buttons that react the same (ie rollover, down, blah blah blah) but on mousedown should all call a different handler. I was thinking that I create one behavior asking for the text of the handler to

RE: lingo-l creating behavior / calling handler question

2001-08-21 Thread Karina Steffens
I was thinking that I create one behavior asking for the text of the handler to call, then do a sendallsprites(do(stringentered)) Would this be the way to go or would it be sendallsprites(symbol(textentered)) If you're using a gpdl for this, all you need to do is define the format as

Re: lingo-l creating behavior / calling handler question

2001-08-21 Thread Irv Kalb
For another approach, see my article at Director Online: http://www.director-online.com/accessArticle2.cfm?id=340 Basic idea: Have a generic button behavior that you attach to any and all buttons. When the button is clicked it does a sendSprite to the current sprite number calling a

RE: lingo-l creating behavior / calling handler question

2001-08-21 Thread grimmwerks
Very cool - thanks Karina! [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.

RE: lingo-l creating behavior / calling handler question

2001-08-21 Thread Karina Steffens
For another approach, see my article at Director Online: http://www.director-online.com/accessArticle2.cfm?id=340 Basic idea: Have a generic button behavior that you attach to any and all buttons. When the button is clicked it does a sendSprite to the current sprite number calling a