Sometimes I'm baffled.

Ralf Bitter rabit at dimensionB.de
Thu Jan 29 16:58:04 EST 2009


Thomas,

sorry to disagree. i is never 0 in the mentioned script.
Once again: Use the do command, because the statement
"set the visible of param(i) to false" consists partly of a return  
value of a function.

This works:

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
        do "set the visible of" && param(i) && "to false"
        wait for 1 sec with messages
        -- set the visible of param(i) to true
        do "set the visible of" && param(i) && "to true"
    end repeat
end flash

Ralf


On 29.01.2009, at 20:15, Thomas McGrath III wrote:

> Alex,
>
> FYI the repeat with i and the set the vis of param(i) will not get  
> the handler name since it is actually 0
> From the Docs:
> param(0) -- returns the handler name
>
> don't know if this is part of the problem or not.
>
>




More information about the use-livecode mailing list