Button vs. Message box scripts

Jim Hurley jhurley at infostations.com
Mon Mar 31 07:14:01 EST 2003


>  "Jeanne A. E. DeVoto"  wrote:
>
>  >On mouseUp
>>revrotatepoly graphic "MyPoly", 90
>>end mouseUp
>>
>>return an error: "Chunk source is not a container."
>
>The problem here is that revRotatePoly needs an expression that evaluates
>to a graphic reference, not a graphic reference itself. (This is for
>complicated reasons having to do with the fact that revRotatePoly is a
>Transcript library routine.) This will work:
>
>   revRotatePoly the long ID of graphic "MyPoly",90


Jeanne,

Thank you for that solution. But I am still puzzled that the message 
box is able to handle the  graphic reference but a button, card or 
stack is not.

I don't know how you handle your responsibility of "script mother" 
but  I have a request which amounts  to a child asking for matches. 
Is it possible to probe the Transcript library routines to see how 
they work and, dare I say it, modify them? Suppose I wanted to alter 
revRotatePoly  (or use it as a base for a new routine) so that the 
center of rotation was a point of my choosing rather then the 
graphic's loc.



More information about the use-livecode mailing list