I am trying to place API variables on ONE class file or mxml file and call these variables in other random class or mxml files… any suggestions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I just create a file in any package and called it api.as. Inside there, there’s just static member variables.
…
Then you just include
import <package_path>.api.asin any files that want to use it.EDIT: Already accepted, but answering the question: