General Question

D353R7F0XX's avatar

Referencing another .as file?

Asked by D353R7F0XX (25points) February 12th, 2009

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

Observing members: 0 Composing members: 0

1 Answer

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.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther