Path: utzoo!utgpu!attcan!uunet!tank!ncar!mailrus!iuvax!pur-ee!pur-phy!cca From: cca@pur-phy (Charles C. Allen) Newsgroups: comp.sys.mac.hypercard Subject: Re: Faster Button Message-ID: <1482@pur-phy> Date: 29 Sep 88 19:53:28 GMT References: <70621@sun.uucp> Distribution: comp Organization: Purdue Univ. Phys Dept, W.Lafayette, IN Lines: 20 In article <70621@sun.uucp>, MIKEA%BROWNVM.BITNET@MITVMA.MIT.EDU (Michael J Antonio) writes: > Put the action that you want to preform in the card > or background script, in an "on fooBar" handler. Then put > on mouseUp > fooBar > end mouseUp > or whatever is the appropriate handler. Then you only have to change the > fooBar script, and the others will be updated automatically. An example I gave did this. There are still two problems: * If the interface to the fooBar handler is changed (different parameters perhaps), then every occurrence still must be changed. * The mouseUp handler is still present in every button that uses this. Multiply by a couple of hundred cards with approximately 15 card buttons of this "class" (no they can't be background buttons). I want the script for those buttons in ONE place, not 3000. Charlie Allen cca@newton.physics.purdue.edu