Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apart from local variables used wit

Status
Not open for further replies.

kennethkawamoto

Technical User
Nov 19, 2002
2,710
0
0
GB
Apart from local variables used within a function, all Flash variables are global variables and can be defined anywhere (not only in the main timeline) and accessible from anywhere.

In Director, in addition to local variables and
Code:
global
variables, there are
Code:
property
variables.
Code:
property
's scope is limited to within its script object but can be accessible from anywhere.

Code:
global
variable can be defined absolutely anywhere in the Director movie and once defined, it is available from anywhere, anytime.

To define and access
Code:
global
variables, you need to declare:
Code:
global someVariable
That's it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top