I need to create a global function in a .fla file. I understand I should put it in _root.
I’m having trouble finding how to edit _root in Flash Pro CS 5.5.
Sorry by the naive question.
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.
This is a bad idea, global functions pollute the global scope, make for unextendable and unscalable code that does not play nice with other code.
That said, inn actionscript 2 the following should work: