This content has been marked as final. Show 8 replies
Hey, please can you specify your problem in detail.
But normally you have access to public static variables and public static methods outside your class with the following structur.
Math.PI //Where Math is your Class and PI is your public static variable
and the same for methods
tnx for the reply..I want to access the treeData under the hierarchicalCollectionView property of advanceDatagrid.
what i did is
private var myGrid:AdvancedDataGrid = new AdvancedDataGrid();
and i got this error
1119: Access of possibly undefined property treeData through a reference with static type mx.collections:IHierarchicalCollectionView. advancedgrid/src
well!! im sure treeData is existing i run debug and its there. So it came up that it might be a static variable of method. I tried to do some experiments and i found out static methods and variables are not accessible outside the class.
Yeah, but if you look in the debugger you will see that the icon before the treeData is yellow, this means that this property is protected and not public
why don't you use
yes...exactly!!! is there any ways i could access the protected property? tnx i will that one.. : )
About protected variables and methods have a look at the Dokumentation, in the section LanguageElements and then search for protected.
For short: You only have access to protected properties and methods only in subclasses.
tnx.you're a big help.... :) i am new in flex.
You are welcome