Little generic arrows (id 201317)

Ian Summerfield iansummerfield at btconnect.com
Tue Feb 26 16:36:01 EST 2002


On 26/2/02 6:02 pm, "Prodevm at aol.com" <Prodevm at aol.com> scribed:

> 
> 
> When I set the little arrows up exactly as stated above without any script, it
> does nothing when clicked up/down.  However, if I insert the little arrows
> button directly from the object library, it automatically inserts a ton of
> script into the script properties, it works, but there has to be a better way
> to do this; I cannot imagine having to have all of that script inserted into
> every little arrows button that you may use.
> 
> I think that it probaly should be referencing the associated script directly
> from the object library, automatically on mouse down, but it is not doing so.
> Without the script being placed directly into the little arrows button
> properties, it does not work.
> 
> Please someone help! this is driving me crazy.
> 
> Thanks 
> 
> Steve
> 
> 

I turned off the HTML formatting on your message,  apparently it plays hell
with digest mode readers!

Yes, the script is held behind each little arrow, I wouldn't call it a ton
of script, but it's more than 10 lines if that's what you mean!  Yes, it's
inefficient too if you're using lots of little arrows.  No, it should not be
referencing the object library directly.  When you say "Without the script
being placed directly into the little arrows button properties, it does not
work.", where have you moved the script to?  It's got to go somewhere in the
message hierarchy.  If you wanted to move it to the card or stack script
then you'll need to change the references to "me" to the target, and keep a
global variable to say that it's a "little arrows" button that was clicked
so that the mousemove and other handles know not to apply the actions to
other objects,  it's not difficult but would require quite some
modification.   I'd say don't worry about the script repetition unless your
using hundreds of little arrow scripts!  Look at it this way, it may be
inefficient coding but at least Revolution finds the code it needs quickly,
which must make it run faster than passing messages up the hierarchy!

-i-





More information about the use-livecode mailing list