Sometimes I'm baffled.

Ralf Bitter rabit at dimensionB.de
Thu Jan 29 13:23:06 EST 2009


Alex,

how about this:

do "set the visible of" && param(i) && "to false"

Ralf

On 27.01.2009, at 23:41, alex wrote:

> [Oops - originally I sent this from the wrong email address, so it  
> is being held for approval. Here it is from the proper place -  
> apologies in advance if it finishes up as a duplicate]
>
> I don't understand why this doesn't work - has anyone got a spare  
> clue they can lend me :-) ?
>
> A simple stack, with one button, whose script is :
>>
>> on mouseUp pMouseBtnNo
>>    put the target into tCtl
>>    flash tCtl
>> end mouseUp
>>
>> on flash
>>    local i, p1
>>    repeat with i=1 to paramcount()
>>        set the visible of param(i) to false
>>        wait for 1000 milliseconds with messages
>>        set the visible of param(i) to true
>>    end repeat
>> end flash
> This gives me
>> Runtime error    22:13:11
>> Error 77:    Chunk: can't find object
>> Hint :    Object: can't set object property
>> Error at    char 25 of line 11 in handler mouseUp
>> Code:    25
> But if I change
>>        set the visible of param(i) to false
> to
>> put param(i) into p1
>> set the visible of p1 to false
> (and make the same change later to "set the visible of p1 to true")
> then it works properly. Why should this work and the former version  
> not work ?
>
> Thanks
> -- Alex.
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list