For a different approach on how to handle buttons (one generic button 
script which does a sendSprite to another "action" behavior attached 
to the same sprite) see my article on DOUG at:

   http://www.director-online.com/accessArticle2.cfm?id=340

Irv

At 8:29 AM +0200 7/12/01, Darryl Cousins wrote:
>Hello List,
>I hope someone may advise me here.
>I've tried to make a button behavior which includes in the
>getPropertyDescriptionList:
><code>
>pList[#pHandler] = [?
>   #comment: "calls this handler", ?
>   #format: #string, ?
>   #default: "myAlert"]
></code>
>
>and then:
><code>
>on mouseUp
>   put value(pHandler)
>   put "value(pHandler) = " & value(pHandler)
>   value(pHandler)
>end mouseUp
></code>
>
>Message window displays:
><snip>
>--#myAlert
>--"value(pHandler) = myAlert"
></snip>
>
>Error window displays:
><snip>
>Command not defined
></snip>
>
>Why is the handler myAlert not called? I've done a hunt around
>director-online etc but haven't found an article dealing with what I'm
>trying to do here. I'm sure someone will know how to make a behavior like
>this.
>
>Blessings and thanks in advance, Darryl
>
>
>[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!]


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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