Stack in runtime...

2005-09-08 Thread Gilberto Cuba Ricardo

Hello colleagues,

I'm a new in the use of the Revolution and recently I began their study.
Today studying many of their things, has been that when I make a stack in
runtime with the invisible property, then when I will show the stack, 
doesn't

make it, and neither closes it in case I doesn't put the invisible property.

This is my code the which they can check to see in what I have made a 
mistake.


In the script button:

on mouseUp numberButton
   if numberButton = 1 then
   create invisible stack MyStack
   set the visible of stack MyStack to true
   wait 10 seconds
   close the defaultStack
   delete stack MyStack
   end if
end mouseUp

Best regards,

Gilberto Cuba

PD: Excusame my english, i'dont know the english correctly.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Stack in runtime...

2005-09-08 Thread Ken Ray
On 9/8/04 1:31 PM, Gilberto Cuba Ricardo [EMAIL PROTECTED] wrote:

 on mouseUp numberButton
 if numberButton = 1 then
 create invisible stack MyStack
 set the visible of stack MyStack to true
 wait 10 seconds
 close the defaultStack
 delete stack MyStack
 end if
 end mouseUp

The problem, Gilberto, is that the defaultStack is not MyStack; it's the
stack that called it. So you can do one of two things:

1) set the defaultStack to MyStack  -- do this before you close the
defaultStack

OR

2) close stack MyStack  -- instead of close the defaultStack

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution