General Question

D353R7F0XX's avatar

Referencing another .as file?

Asked by D353R7F0XX (25points) February 12th, 2009
1 response
“Great Question” (0points)

I’m having trouble accessing the functions in another .as how can i reference the functions using getchildbyname() and trying to set the name properties in the file I’m trying to reference

Topics: , , ,
Observing members: 0
Composing members: 0

Answers

asawilliams's avatar

your question is a little confusing, but ill have a stab at it. First you need to make sure that your methods in the class you are referencing are public. Second you need to make sure that the displayObject you are trying to reference is public and you have set the name. (this.getChildByName(“nameOfChild”) as ‘className’).‘functionName’(params, ...). Remove single quotes and replace with your own names.

Answer this question

Login

or

Join

to answer.

Mobile | Desktop


Send Feedback   

`