I have a Custom MXML Component named as SeeElement.mxml , inside this File i have defined a VBOX as shown
Now inside from some other ActionScript file , i am trying to making it to visible to false as shown :
I am getting thie Error
Access of possibly undefined property peopleimages through a reference with static type Class.
Please help me to resolve this .
inside your "some other sctionscript file" you need a reference to the SeeElement object
var seeElement:SeeElement = new SeeElement();
then you can seeElement.personImages.visible = false;
SeeElement (with a capital S) is a reference to the SeeElement class and personImages is not a class member variable its an instance member variable
ViewElement is a class. You need to be working with an instance of
ViewElement, not the class itself.