Is it posable to do this as a card script

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Dec 16 12:39:33 EST 2005


Hi Liam,

Not only you can but you *must* :-)
Good scripting *absolutely* never repeats the same code in several  
objects: it makes maintenance undoable, multiplies errors  
possibilities, etc.
To get started:

> 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


Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/


Le 16 déc. 05 à 18:18, liamlambert a écrit :

> I am building stack for cueing quicktime movies to a projector I  
> want a number of  thumbnail players showing that you drag and drop  
> the .mov into and when you click the thumbnail player it lodes the  
> movie into the main player  stack . I have this working with the  
> script below in each thumbnail player. I was wondering if  there is  
> a way to use this script as a card script rather than in each player.




More information about the use-livecode mailing list