Make public property of a component and access it from another component?

Component "alpha.mxml"
propriety: mapevent_mapready
Component "beta.mxml"
<alpha:alpha mapevent_mapready="some_function()" />
how?

Hi leonapster,
Say in your component alpha.mxml
<!--alpha.mxml -->
<AlphaComponent>
     public var mapevent_mapready:Boolean=false;
</AlphaComponent>
<!-- Beta.mxml -->
<BetaComponent>
<mx:Script>
     private function init():void
          //Now you can access the mapevent_mapready property of Alpha Component as below:
          var bool:Boolean = alphaComp.mapevent_mapready;
     alphaComp.mapevent_mapready
</mx:Script>
<alpha:alpha id="alphaComp" />
</BetaComponent>
Thanks,
Bhasker

Similar Messages

  • Can I save documents from my PC to the icloud and access them from another computer?

    Can I save documents from my PC to icloud and access them from anywhere?

    This forum is for OSX users.
    Only within OSX you can store documents in iCloud, basically linked to iWork softwares.
    Please check Microsoft Office cloud solutions.

  • Accessing dataprovider from mxml component.

    Hi,
    I have a dataprovider and would like to access the data from mxml component.
    Basically I have
    Actionscript:
    Bindable]
    private  var dp:ArrayCollection;
    private  
    function dp_handler(e:ResultEvent):void
    dp = e.result as ArrayCollection; 
    I wanted to access dp from mxml component using
    <mx:script>
    <![CDATA[
    mx.core.Application;
    lbl.text = Application.application.dp.getItemAt(0).fieldname;
    ]]>
    <mx:Label  
    id="lbl" x="51" y="136" />
    It keeps telling me dp is unknow property.  Any idea what am I doing wrong?

    Thanks Greg.  That fixed it!

  • I don't have a wireless keyboard or mouse for my 2007 iMac, is there any way that can use remote desktop and access it from my 2010mbp.

    i don't have a wireless keyboard or mouse for my 2007 iMac, is there any way that can use remote desktop and access it from my 2010mbp

    Hi champrider,
    You can use an application such as Apple Remote Desktop to control your iMac remotely. See this article -
    OS X Mavericks: Allow access using Apple Remote Desktop
    This help page will provide you with some other useful resources for Apple Remote Desktop -
    Remote Desktop Help
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Can I connect an external hard drive to one of the ethernet port of the airport extreme and access it from my Mac or PC?

    Can I connect an external hard drive to one of the ethernet port of the airport extreme and access it from my Mac or PC?

    If this hard drive is part of a NAS device, then yes it should be accessable from either a Mac or PC while connected to the AirPort Extreme Base Station (AEBS) by Ethernet.

  • Creating Folder and Accessing Files from Folders in mobile phone

    Hello Friends,
    I am doing my project where I need to create folders and accessing files from those folders in java enabled mobile phones.But I do not know the required tasks for this.Any type of help is highly appreciated.
    Greeting
    Saadi

    You have to get the classname of the Items you receive from getitems.
    There you have only to look for Folder.CLASS_NAME. Example:
    ifsFol sorted by names in ascending order (names of folders and files)
    String[] sort_attributes = {"NAME"};
    //sort will be ascending
    boolean [] sort_orders = {true};
    oracle.ifs.common.SortSpecification sort = new oracle.ifs.common.SortSpecification(sort_attributes, sort_orders);
    ifsFol.setSortSpecification(sort);
    PublicObject[] contents = ifsFol.getItems();
    System.out.println("Here are the names of the items in folder: ");
    for (int i=0; i < contents.length; i++) {
    if (contents.getClassname().equals(Folder.CLASS_NAME)) {
    System.out.println(contents[i].getName());
    null

  • How can I store movies in the cloud and access them from my devices?

    Hello,
    I would like to store movies in the cloud and access them from my device without having to download them to the device because there is not enough space on the harddrive to store them on it. How would I do this? Would I have to download the movies to my PC or could I store them directly in the cloud?
    Thanks,
    Tyler

    Unfortunately I don't use sugarsync myself, I have a dropbox account and it works slightly differently.
    As I understand it you can upload files to a folder in sugarsync from your computer without having them sync to any of your devices. You can access that folder from any of your devices, and although you would need to download them in order to play the video file, you could then delete them without deleting the files in the sugarsync folder in the cloud.

  • HT5260 Hi, my name is Gerard and my iphoto library is getting very large I would like to know if I can store all or most of my photos in a external hard drive and access them from Aperture?

    Hi, my name is Gerard and my iphoto library is getting very large I would like to know if I can store all or most of my photos in a external hard drive and access them from Aperture?

    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • Can we place jsp pages on JAVA_TOP and access them from controllers

    can we place jsp pages on JAVA_TOP and access them from controllers from the same path?
    Soujanya

    Hi All,
    Can any one please resond to this thread for atleas discussion.We have folder on HTML top with all jsps.We want to move the folder from HTML top to some other TOP.We are planning to move them to JAVA_TOP.
    But we could not refer or call the file from JAVA_TOP.
    Any solution.
    Thanks
    Soujanya

  • HT201272 I'm having trouble downloading a previously purchase song to my iCloud so I can access it from another device.  The iCloud download button is not there.  Help?

    I'm having trouble downloading a previously purchase song to my iCloud so I can access it from another device.  The iCloud download button is not there.  Help?

    I agree. I don't rely on iCloud as a backup, that is what I have my portable hard drive for. Its 500 GB so I can hold my entire iTunes library several times over on it. I have all my movies on my hard drive, but somehow "The Mist" got deleted off of my hard drive, so I figured "Well, the option to redownload an already purchased movie is available through iCloud, I'll just do that!"
    And permissions and download availability have nothing to do with it, the movie's still there, it still allows me to redownload it. The only problem is when I click download, I get that message.
    And nobody else uses my computer, but I do have multiple accounts authorized on it. Even still though, I am attepmpting to download it through the account I purchased it under. :/

  • I just got tOhe iPhone 4Gs today and had contacts and photos uploaded from another phone synced new phone with iTunes for music and accidentally restored it so all my old iPhone stuff is on the new one is there any way to fix this

    I just got tOhe iPhone 4Gs today and had contacts and photos uploaded from another phone synced new phone with iTunes for music and accidentally restored it so all my old iPhone stuff is on the new one is there any way to fix this ?! Please help !!!!

    Could you be more specific about what exactly do you want to fix now?

  • Which option do I have to select If I buy the latest iPad with cellular feature for international use? If I choose verizon can I just change the sim card and insert one from another country?

    Which option do I have to select If I buy the latest iPad with cellular feature for international use? If I choose verizon can I just change the sim card and insert one from another country?

    I would guess you need the A1460 model
    see here
    http://www.apple.com/ipad/LTE/

  • Why am I seeing outgoing and incoming text from another phone number that is on my plan?

    Why am I seeing outgoing and incoming text from another phone number that is on my plan?

    That is why. If you take the time to go into Settings>Messages>Send and Receive. Then uncheck everything but the phone number for each particular device, you should be alright after that.

  • Can anyone help me with the commands to import and restore  backup from  another administrative server

    Dear all.
                         Can anyone help me with the commands to import and restore  backup from  another administrative server

    I tried, even with code tags it looks the same since the 2500 character limit is exceeded.
    Please post just the relevant parts inside tags as mentioned, and choose a descriptive subject line.
    I'm locking this thread.
    Thomas

  • Is it free to send and receive texts from another EE customer who is abroad?

    is it free to send and receive texts from another EE customer who is abroad?

    Hi 
    Welcome to the EE Community! Provided you're texting an 07 number, it won't cost you anything extra to text someone abraod (provided that's included in your package). It will cost the person abroad to reply (but not receive texts), unless again they have some sort of add on in the country they're present in. Cheers,
    Titanium
    Was my post helpful? Please take 2 seconds to hit the 'Kudos' button below

Maybe you are looking for