header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Rob
Points:0
Posts:0

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?



1
amar shukla
Points: 0
Posts:0
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.

2
Venkatesan
Points: 0
Posts:0
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.. :)


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+3 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions