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.



Tom McGrath III
Lazy River Software
[email protected]

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html





On Jan 27, 2009, at 5:41 PM, 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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to