Say in your component alpha.mxml
public var mapevent_mapready:Boolean=false;
<!-- Beta.mxml -->
private function init():void
//Now you can access the mapevent_mapready property of Alpha Component as below:
var bool:Boolean = alphaComp.mapevent_mapready;
<alpha:alpha id="alphaComp" />
i tired but doesn't work
i want access to mapevent_mapready propriety from an istance of component
<GoogleMaps:GoogleMap id="map" height="100%" width="100%" mapevent_mapready="click(event)"/>
You may need to do this (initialize & construct your component), like so:
var myAlphaComp:alphaComp = new alphaComp;
var bool:Boolean = myAlphaComp.mapevent_mapready;
I usually have to use the "new" keyword to access properties from other MXML components.
it seems that "mapevent_mapready" is a property set to a function. I wouldnt do that, I would declare the function as public/shared and access the function directly that way.
doesn't work and i don't understand why...
My problem is how override a method of a component from another component?
Not sure if you realize this, but mapevent_mapready is used to assign a handler to catch the mapready event that fires from the Google Map. If you want to check if the map is ready from another component, you would use mapInstanceName.isLoaded() method.
You should probably go back and learn the basics of events.