Help Please

Steve Laming steve.laming at ntlworld.com
Sun Nov 16 13:09:36 EST 2003


Thanks for the quick reply Richard.

The ID of the graphic is 1902.  The name I have given it is 605

If I use the ID as you suggested, it does what you said it would.  But I 
really need to change the background by name, or alternatively find the ID 
of the object from the name.

I am not sure of the syntax for addressing the object by name.

Thanks again

Steve



At 15:42 15/11/03 -0800, you wrote:
>Steve Laming wrote:
>
> > Hi I am new to revolution, I would like to be able to change the background
> > color of an image from a button.
> >
> > I have tried set backgroundColor but I get the error:
> >
> > • There was an Execution Error at 11:34:24 PM
> > Error description:  Object: can't set object property
> > Object: button id 1898 of card id 1002 of stack "C:/Program
> > Files/Revolution 1.1.1/My Programs/Guitar/Scales.rev"
> > --------------------
> > set backgroundColor of graphic 605 to 0,0,0
> > --------------------
> > Value: 605
> >
> > The graphic has a  name of 605
> >
> > Do I need to enable any options to allow this.  Or am I going about it the
> > wrong way.
>
>605 is the ordinal number, the 605th graphic on the card.
>If you mean ID, use:
>
>   set backgroundColor of graphic ID 605 to 0,0,0
>
>--
>  Richard Gaskin
>  Fourth World Media Corporation
>  ___________________________________________________________
>  Ambassador at FourthWorld.com       http://www.FourthWorld.com
>  Tel: 323-225-3717                       AIM: FourthWorldInc
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list