script error

J. Landman Gay jacque at hyperactivesw.com
Tue Jul 15 13:33:58 EDT 2008


Barry Barber wrote:

> However, I need several of these groups on the same card to control different objects but when I duplicate it, despite it receiving a different ID, the script activates the visible of the images in the original group not those the mouse is over!
> I have tried defining the group specificly (with and without quotes) but then nothing happens in either the original or the 
> copy and I get this error message.
> 
> Type    Chunk: can't find background
> Object    greenbutton.png
> Line    set the vis of img "greenglo.png" of this group to true
> Hint    true
> 
> What background is it looking for and why is true indicated as an error?

"This" can only be used with cards or stacks. "This group" isn't a valid 
construct. However, if the script is in the group, then you can refer to 
it as "me":

  set the vis of img "greenglo.png" of me to true

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list