Skip to main content
Inspiring
January 8, 2008
Question

Pass Variable out of Function

  • January 8, 2008
  • 1 reply
  • 267 views
I am wondering how I would pass a variable out of a function. For example, how do I pass the variable of myIntro out of the function below?
This topic has been closed for replies.

1 reply

Known Participant
January 8, 2008
I would first suggest you look up this topic in the help files:

Programming ActionScript 3.0
ActionScript language and syntax > Functions > Basic function concepts

The way you are using the Intro doesn't really seem to make a lot of sense to me. You could simply declare the variable outside the function and have access to the value from anywhere OR you could call a function that calls the getIntro function...like this: