> See, Tom?  I knew it wouldn't be long before I had another js 
> question.

Sheesh... <rolling my eyes>




j/k

> Say I declare a global variable called gData in a movie script written
> in Lingo syntax.  I want to access gData in a behavior written in js
> syntax.
> 
> Is it declared at the beginning of the js behavior?
> _global.gData
> 
> And how would it be referenced within a function within that behavior?
> function readData(){
>       if(_global.gData == true){
>               // or if(gData){}    what's best?
>       }
> }

No need to declare the global at the top of your script if you use
_global.<propName>, when you declare a global in Lingo and then assign
that variable a value, a property is added to the _global object which
can then be accessed via Lingo or JS syntax.


Cheers,
Tom Higgins | Product Manager | Director & the Shockwave Player
Adobe Systems Incorporated

http://weblogs.macromedia.com/thiggins/

... 

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to