Some things about backgrounds i never knew

David Bovill david at vaudevillecourt.tv
Thu Dec 30 19:00:34 EST 2010


On 30 December 2010 23:22, J. Landman Gay <jacque at hyperactivesw.com> wrote:

> On 12/30/10 4:44 PM, David Bovill wrote:
>
>  Yes - those use cases are fine. I want to make sure I am not exporting
>> identical information about objects twice, so I want to know which groups
>> in
>> a stack are  backgrounds in the shared id sense - there is no function for
>> this, so I've had to take a different approach and simply loop through
>> every
>> card checking the ids.
>>
>
> Try:
>
>  if the number of cds of grp "whatever" > 1 then...
>
> More than one card, and it's shared.


Ah - that's anew one. Thanks!


> I still really want to know what "background 2 of this stack" refers to -
> any idea about that?
>

It should be the second group in the stack that has backgroundBehavior set,
> but a quick experiment seems to indicate that a background is any group with
> more than one card. But I'm not positive, you'd need to double-check that.
>

OK - will dig into it. It's not to do with backgroundBehavior - you get
positive results with all the groups having this turned off...



More information about the Use-livecode mailing list