[Top] [All Lists]

Re: Making a script waiting for a button click

Subject: Re: Making a script waiting for a button click
From: "Rob Dillon"
Date: Wed, 13 Aug 2008 14:49:16 +0000 UTC
Newsgroups: macromedia.director.lingo

You don't need the repeat loop. That's what is trying up your movie. Are you 
attempting to do this in a movie script window or as a behavior? 

 The simplest solution is to write one behavior and attach it to each button 
instance on the stage. You could do something as simple as this:

 property thisSprite
 property callout

 on beginSprite me
   thisSprite = me.spriteNum

 on getPropertyDescriptionList me
   myPropList = [:]
   myPropList.addProp(#callout,[#comment:"select the number for this 
   return myPropList

 on mouseUp me
   put callout

 Or, you could just put the current sprite number: "put thisSprite".

 In any case, the behavior will do the waiting for you.

<Prev in Thread] Current Thread [Next in Thread>