Re: Weirdness with global variable declaration

2004-01-20 Thread Ray G. Miller


Robert Brenstein said,

I haven't tested this with the newest engine but earlier it was like 
Richard mentioned: globals had to be declared within a handler. There 
was some technical reason for that if I recall.

 

Yes, the globala are *declared* within a handler, but setting the 
globals for all can set, usually at the top of the script editor, for 
each section (card script, background script, button script).

For example:
In the card script, at the top you could set:
global gCatNames, gDogNames, gGreatToys

on preOpenStack
   doTheNeatFldLocs
   doEmptyLitterBox
   --
   setTheGlobals
end preOpenStack
on setTheGlobals
   put fld catNames into gCatNames
   put fld dogNames into gCatNames
   put fld greatToys into gGreatToys
end setTheGlobals
... then, in the stack script (or any control script), simply start each 
script page with:

global gCatNames, gDogNames, gGreatToys

and those globals are available to all handlers on that page.

This of course, works across all subStacks as well.

Ray G. Miller
__
Turtlelips Productions
4009 Everett Ave.
Oakland, CA 94602
MailTo:[EMAIL PROTECTED]
(V) 510.530.1971
(F) 510.482.3491


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-20 Thread Dar Scott
On Tuesday, January 20, 2004, at 12:01 PM, Ray G. Miller wrote:

Yes, the globala are *declared* within a handler, but setting the 
globals for all can set, usually at the top of the script editor, for 
each section (card script, background script, button script).
I like the word globala!

If I understand you right, this is not the way I use declare and 
setting.

I think of this as the declaration:

global aaa

I think of this as the setting:

on yyy
  put ransom into aaa  --   ==
end yyy
Depending on the circumstances this might also be the initialization.

Or did I misread your point, Ray?

Dar Scott
(Thinking of ways to use globala in a sentence.)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Jeremy Smith
Instead of doing this

on openCard
global debugMode
global inChatUsers, newChatSocket
global chatRect, chatRectHalf, wbRect
put 8,8,596,314 into chatRect

do this

global debugMode
global inChatUsers, newChatSocket
global chatRect, chatRectHalf, wbRect
on openCard
put 8,8,596,314 into chatRect
...
Then you can access the globals from all the handlers (opencard/closecard) 
etc...

Cheers.

From: Doug Lerner [EMAIL PROTECTED]
Reply-To: How to use Revolution [EMAIL PROTECTED]
To: How to use Revolution [EMAIL PROTECTED]
Subject: Re: Weirdness with global variable declaration
Date: Mon, 19 Jan 2004 15:37:22 +0900
What do you mean by off by themselves?

doug

On 1/19/04 2:47 PM, Thomas J McGrath III [EMAIL PROTECTED] wrote:

 just declare the globals off by themselves...

 then do your on opencard.


 On Jan 18, 2004, at 11:40 PM, Doug Lerner wrote:

 I read about doing that - in a so-called script rather than in a
 handler. But I wasn't clear about how that works.

 How do script commands get executed if they are not part of a handler?

 doug

 On 1/19/04 1:32 PM, Thomas J McGrath III [EMAIL PROTECTED]
 wrote:

 Have you tried creating the global outside of this handler?
 put it by itself before the openCard .

 On Jan 18, 2004, at 9:37 PM, Doug Lerner wrote:

 In an openCard handler I have:

 on openCard
   global debugMode
   global inChatUsers, newChatSocket
   global chatRect, chatRectHalf, wbRect
   put 8,8,596,314 into chatRect
   .
   .
   .

 But a button in that card doesn't seem to know the value of chatRect.
 And
 while globalNames lists inChatUsers, newChatSocket and debugMode it
 doesn't
 list any of the three globals on the third line of the handler above.

 Any reasons why a global should no longer be among the globalNames?

 Thanks,

 doug

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution



 Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
 2.1.2


 Advanced Media Group
 Thomas J McGrath III€ 2003 €[EMAIL PROTECTED]
 220 Drake Road, Bethel Park, PA 15102



 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution



 Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
 2.1.2


 Advanced Media Group
 Thomas J McGrath III€ 2003 €[EMAIL PROTECTED]
 220 Drake Road, Bethel Park, PA 15102



 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
_
Send mobile Christmas cards, download a festive ringtone and win a Motorola 
E365. Go to:  http://ninemsn.com.au/mobilecentral/christmas.asp

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Doug Lerner
Yes, but, but :)

If those commands are *outside* of a handler, exactly when do they actually
get executed?

doug

On 1/19/04 4:08 PM, Jeremy Smith [EMAIL PROTECTED] wrote:

 Instead of doing this
 
 on openCard
 global debugMode
 global inChatUsers, newChatSocket
 global chatRect, chatRectHalf, wbRect
 put 8,8,596,314 into chatRect
 
 
 do this
 
 global debugMode
 global inChatUsers, newChatSocket
 global chatRect, chatRectHalf, wbRect
 on openCard
 put 8,8,596,314 into chatRect
 ...
 
 Then you can access the globals from all the handlers (opencard/closecard)
 etc...
 
 Cheers.
 
 From: Doug Lerner [EMAIL PROTECTED]
 Reply-To: How to use Revolution [EMAIL PROTECTED]
 To: How to use Revolution [EMAIL PROTECTED]
 Subject: Re: Weirdness with global variable declaration
 Date: Mon, 19 Jan 2004 15:37:22 +0900
 
 What do you mean by off by themselves?
 
 doug
 
 On 1/19/04 2:47 PM, Thomas J McGrath III [EMAIL PROTECTED] wrote:
 
 just declare the globals off by themselves...
 
 then do your on opencard.
 
 
 On Jan 18, 2004, at 11:40 PM, Doug Lerner wrote:
 
 I read about doing that - in a so-called script rather than in a
 handler. But I wasn't clear about how that works.
 
 How do script commands get executed if they are not part of a handler?
 
 doug
 
 On 1/19/04 1:32 PM, Thomas J McGrath III [EMAIL PROTECTED]
 wrote:
 
 Have you tried creating the global outside of this handler?
 put it by itself before the openCard .
 
 On Jan 18, 2004, at 9:37 PM, Doug Lerner wrote:
 
 In an openCard handler I have:
 
 on openCard
   global debugMode
   global inChatUsers, newChatSocket
   global chatRect, chatRectHalf, wbRect
   put 8,8,596,314 into chatRect
   .
   .
   .
 
 But a button in that card doesn't seem to know the value of chatRect.
 And
 while globalNames lists inChatUsers, newChatSocket and debugMode it
 doesn't
 list any of the three globals on the third line of the handler above.
 
 Any reasons why a global should no longer be among the globalNames?
 
 Thanks,
 
 doug
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
 2.1.2
 
 
 Advanced Media Group
 Thomas J McGrath IIIÄ 2003 Ä[EMAIL PROTECTED]
 220 Drake Road, Bethel Park, PA 15102
 
 
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
 2.1.2
 
 
 Advanced Media Group
 Thomas J McGrath IIIÄ 2003 Ä[EMAIL PROTECTED]
 220 Drake Road, Bethel Park, PA 15102
 
 
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 _
 Send mobile Christmas cards, download a festive ringtone and win a Motorola
 E365. Go to:  http://ninemsn.com.au/mobilecentral/christmas.asp
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Dar Scott
On Monday, January 19, 2004, at 12:11 AM, Doug Lerner wrote:

If those commands are *outside* of a handler, exactly when do they 
actually
get executed?
Those are called commands, but I think of them as declarations, that 
is, information to the compiler.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Doug Lerner
On 1/19/04 4:41 PM, Dar Scott [EMAIL PROTECTED] wrote:

 
 On Monday, January 19, 2004, at 12:11 AM, Doug Lerner wrote:
 
 If those commands are *outside* of a handler, exactly when do they
 actually
 get executed?
 
 Those are called commands, but I think of them as declarations, that
 is, information to the compiler.


When do they get executed though?

What if there are two different value assignments in two different scripts?

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Wouter
On 19 Jan 2004, at 05:41, [EMAIL PROTECTED] wrote:

Message: 2
Date: Mon, 19 Jan 2004 12:05:58 +0900
From: Doug Lerner [EMAIL PROTECTED]
Subject: Re: Weirdness with global variable declaration
To: How to use Revolution [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII
On 1/19/04 12:00 PM, Scott Rossi [EMAIL PROTECTED] wrote:

On 1/18/04 6:37 PM, Doug Lerner [EMAIL PROTECTED] wrote:

In an openCard handler I have:

on openCard
global debugMode
global inChatUsers, newChatSocket
global chatRect, chatRectHalf, wbRect
put 8,8,596,314 into chatRect
As this are globals is there a specific reason to do this intializing
on opencard?
Why not use openstack or preopenstack?


.
.
.
But a button in that card doesn't seem to know the value of chatRect.
Did you declare the global in the button's script?

global chatRect
on mouseUp
 ...
end mouseUp
Yes. I think the problem is that the openCard message itself is not 
being
sent when this stack is cloned!

Can you think of a reason that might be?

Thanks,

doug
Greetings,
WA
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Doug Lerner
On 1/19/04 7:15 PM, Wouter [EMAIL PROTECTED] wrote:

 
 On 19 Jan 2004, at 05:41, [EMAIL PROTECTED] wrote:
 
 Message: 2
 Date: Mon, 19 Jan 2004 12:05:58 +0900
 From: Doug Lerner [EMAIL PROTECTED]
 Subject: Re: Weirdness with global variable declaration
 To: How to use Revolution [EMAIL PROTECTED]
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=US-ASCII
 
 On 1/19/04 12:00 PM, Scott Rossi [EMAIL PROTECTED] wrote:
 
 On 1/18/04 6:37 PM, Doug Lerner [EMAIL PROTECTED] wrote:
 
 In an openCard handler I have:
 
 on openCard
 global debugMode
 global inChatUsers, newChatSocket
 global chatRect, chatRectHalf, wbRect
 put 8,8,596,314 into chatRect
 
 As this are globals is there a specific reason to do this intializing
 on opencard?
 Why not use openstack or preopenstack?

No. No particular reason. I have it working now. I was just trying, as this
point, to figure out why the openCard message wasn't being sent.

It appears that maybe the cause was because *at the moment of cloning* the
stack was invisible. So even though I set the visible to  true after
opening, in the meantime the openCard handler was not automatically set.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Dar Scott
On Monday, January 19, 2004, at 12:54 AM, Doug Lerner wrote:

If those commands are *outside* of a handler, exactly when do they
actually
get executed?
Those are called commands, but I think of them as declarations, that
is, information to the compiler.
When do they get executed though?

What if there are two different value assignments in two different 
scripts?
They don't get executed as I view them.  They just tell the compiler 
how to handle them when they come up.  They apply from that point 
onward.

global a  -- all mention of a after here means global

on yyy
   put 42 into a -- put 42 into global a
end yyy
Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Thomas J McGrath III
In the script:

--

global gmyone, gmytwo, gmythree

on openCard
do something
end openCard
on preOpencard
do something else
end preOpencard
--

tom

On Jan 19, 2004, at 1:37 AM, Doug Lerner wrote:

What do you mean by off by themselves?

doug

On 1/19/04 2:47 PM, Thomas J McGrath III [EMAIL PROTECTED] 
wrote:

just declare the globals off by themselves...

then do your on opencard.

On Jan 18, 2004, at 11:40 PM, Doug Lerner wrote:

I read about doing that - in a so-called script rather than in a
handler. But I wasn't clear about how that works.
How do script commands get executed if they are not part of a 
handler?

doug

On 1/19/04 1:32 PM, Thomas J McGrath III [EMAIL PROTECTED]
wrote:
Have you tried creating the global outside of this handler?
put it by itself before the openCard .
On Jan 18, 2004, at 9:37 PM, Doug Lerner wrote:

In an openCard handler I have:

on openCard
  global debugMode
  global inChatUsers, newChatSocket
  global chatRect, chatRectHalf, wbRect
  put 8,8,596,314 into chatRect
  .
  .
  .
But a button in that card doesn't seem to know the value of 
chatRect.
And
while globalNames lists inChatUsers, newChatSocket and debugMode it
doesn't
list any of the three globals on the third line of the handler 
above.

Any reasons why a global should no longer be among the globalNames?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, 
Rev
2.1.2

Advanced Media Group
Thomas J McGrath III 2003 [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
2.1.2
Advanced Media Group
Thomas J McGrath III 2003 [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Richard Gaskin
Dar Scott wrote:

 
 On Monday, January 19, 2004, at 12:54 AM, Doug Lerner wrote:
 
 If those commands are *outside* of a handler, exactly when do they
 actually
 get executed?
 
 Those are called commands, but I think of them as declarations, that
 is, information to the compiler.
 
 
 When do they get executed though?
 
 What if there are two different value assignments in two different
 scripts?
 
 They don't get executed as I view them.  They just tell the compiler
 how to handle them when they come up.  They apply from that point
 onward.
 
 global a  -- all mention of a after here means global
 
 on yyy
 put 42 into a -- put 42 into global a
 end yyy


Does that work for globals?  I'd thought only locals were documented as
having this option.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-19 Thread Dar Scott
On Monday, January 19, 2004, at 11:14 AM, Richard Gaskin wrote:

Does that work for globals?  I'd thought only locals were documented as
having this option.
From the TD:
You can place the global command either in a handler, or in a script 
but outside any handler in the script:

I also ran a test.  (You had me worried for a bit.)

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-18 Thread Thomas J McGrath III
Have you tried creating the global outside of this handler?
put it by itself before the openCard .
On Jan 18, 2004, at 9:37 PM, Doug Lerner wrote:

In an openCard handler I have:

on openCard
  global debugMode
  global inChatUsers, newChatSocket
  global chatRect, chatRectHalf, wbRect
  put 8,8,596,314 into chatRect
  .
  .
  .
But a button in that card doesn't seem to know the value of chatRect. 
And
while globalNames lists inChatUsers, newChatSocket and debugMode it 
doesn't
list any of the three globals on the third line of the handler above.

Any reasons why a global should no longer be among the globalNames?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-18 Thread Doug Lerner
I read about doing that - in a so-called script rather than in a
handler. But I wasn't clear about how that works.

How do script commands get executed if they are not part of a handler?

doug

On 1/19/04 1:32 PM, Thomas J McGrath III [EMAIL PROTECTED] wrote:

 Have you tried creating the global outside of this handler?
 put it by itself before the openCard .
 
 On Jan 18, 2004, at 9:37 PM, Doug Lerner wrote:
 
 In an openCard handler I have:
 
 on openCard
   global debugMode
   global inChatUsers, newChatSocket
   global chatRect, chatRectHalf, wbRect
   put 8,8,596,314 into chatRect
   .
   .
   .
 
 But a button in that card doesn't seem to know the value of chatRect.
 And
 while globalNames lists inChatUsers, newChatSocket and debugMode it
 doesn't
 list any of the three globals on the third line of the handler above.
 
 Any reasons why a global should no longer be among the globalNames?
 
 Thanks,
 
 doug
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
 2.1.2
 
 
 Advanced Media Group
 Thomas J McGrath III€ 2003 €[EMAIL PROTECTED]
 220 Drake Road, Bethel Park, PA 15102
 
 
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-18 Thread Thomas J McGrath III
just declare the globals off by themselves...

then do your on opencard.

On Jan 18, 2004, at 11:40 PM, Doug Lerner wrote:

I read about doing that - in a so-called script rather than in a
handler. But I wasn't clear about how that works.
How do script commands get executed if they are not part of a handler?

doug

On 1/19/04 1:32 PM, Thomas J McGrath III [EMAIL PROTECTED] 
wrote:

Have you tried creating the global outside of this handler?
put it by itself before the openCard .
On Jan 18, 2004, at 9:37 PM, Doug Lerner wrote:

In an openCard handler I have:

on openCard
  global debugMode
  global inChatUsers, newChatSocket
  global chatRect, chatRectHalf, wbRect
  put 8,8,596,314 into chatRect
  .
  .
  .
But a button in that card doesn't seem to know the value of chatRect.
And
while globalNames lists inChatUsers, newChatSocket and debugMode it
doesn't
list any of the three globals on the third line of the handler above.
Any reasons why a global should no longer be among the globalNames?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
2.1.2
Advanced Media Group
Thomas J McGrath III 2003 [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 
2.1.2

Advanced Media Group
Thomas J McGrath III 2003   [EMAIL PROTECTED]
220 Drake Road, Bethel Park, PA 15102


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Weirdness with global variable declaration

2004-01-18 Thread Doug Lerner
What do you mean by off by themselves?

doug

On 1/19/04 2:47 PM, Thomas J McGrath III [EMAIL PROTECTED] wrote:

 just declare the globals off by themselves...
 
 then do your on opencard.
 
 
 On Jan 18, 2004, at 11:40 PM, Doug Lerner wrote:
 
 I read about doing that - in a so-called script rather than in a
 handler. But I wasn't clear about how that works.
 
 How do script commands get executed if they are not part of a handler?
 
 doug
 
 On 1/19/04 1:32 PM, Thomas J McGrath III [EMAIL PROTECTED]
 wrote:
 
 Have you tried creating the global outside of this handler?
 put it by itself before the openCard .
 
 On Jan 18, 2004, at 9:37 PM, Doug Lerner wrote:
 
 In an openCard handler I have:
 
 on openCard
   global debugMode
   global inChatUsers, newChatSocket
   global chatRect, chatRectHalf, wbRect
   put 8,8,596,314 into chatRect
   .
   .
   .
 
 But a button in that card doesn't seem to know the value of chatRect.
 And
 while globalNames lists inChatUsers, newChatSocket and debugMode it
 doesn't
 list any of the three globals on the third line of the handler above.
 
 Any reasons why a global should no longer be among the globalNames?
 
 Thanks,
 
 doug
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
 2.1.2
 
 
 Advanced Media Group
 Thomas J McGrath III€ 2003 €[EMAIL PROTECTED]
 220 Drake Road, Bethel Park, PA 15102
 
 
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
 2.1.2
 
 
 Advanced Media Group
 Thomas J McGrath III€ 2003 €[EMAIL PROTECTED]
 220 Drake Road, Bethel Park, PA 15102
 
 
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution