9/7/2010 12:11:44 AM
Title:
Can call constructor, then constructor can call a method, but I can't call the method
This makes no sense to me...
I have a class. I can call the constructor (initialize the class), and the constructor can then call a function/method inside it's own class (so I know it works), but when I try to call the same function/method myself from the instance of the class I just initialized, I get an error.
Anybody know of any reasons why this would be?
9/7/2010 2:44:57 AM
your methods are private or public or what ? IF your methods are internal then in that case your methods will be inaccessible from outside of the class. Remember that by default methods in ActionScript are internal.
9/7/2010 6:38:56 AM
Only public functions of the class can b accessed with the instance that u have created..
this is one basic OO concept.. :)