Hi Roger,
As you have been, I have been amazed to see many years ago :-) empty
scripts in a stack written by Frederic Rinaldi (called FreDOS’Stack:
some of you will remember...)
And I learned... how to never repeat a line of code in my own stacks.
It's what did Scott:
on mouseUp
if "peg" is in short name of the target then
<snip>
put last char of tPeg into N
etc.
By naming correctly his buttons (peg1, peg2, etc.), Scott is able to
know *who" is the target and act accordingly.
All the code is in a single place: safe and easy to maintain :-)
Hope it's clearer :-)
Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------
----------------------
http://www.sosmartsoftware.com/ [EMAIL PROTECTED]/
Le 10 déc. 05 à 20:35, Roger Guay a écrit :
I was looking at the card script of your wonderful abacus stack,
and wondered how the mouseUp gets passed to the card since each
abacus element has an empty moueUp handler in it???
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution