Accessing a button in a Component from other component

I have a two components Test_Interface.mxml & teacher_fullscreen. I called teacher_fullscreen.mxml from Test_Interface.mxml by
              private var tfull:teacher_fullscreen = new teacher_fullscreen();
              tfull.title = "Teacher Window";            
              tfull.maximizable=true;             
              tfull.systemChrome = 'none';
              tfull.minWidth = 800;
              tfull.minHeight = 600;             
              tfull.open();              
Now I created an instance of Test_interface in my 2nd mxml by
public var par:Test_Interface=new Test_Interface();
Actually, I wanted to disable a button in Test_interaface.mxml with id = "b1" from my 2nd mxml using the object created above.
So I gave par.b1.enabled=false; It did not give any compile errors but during run time cannot access object or method of null reference sandbox error was returned for the statement par.b1.enabled=false. So how do I change the property of a button in one component from other. Please Help me.

We need more information.
1) Is this an AIR application?
2) What is the name of the main app MXML file??
3) Please boil this down to a minimal yet complete set of code files and post the entire code here for all files.
I think based on what you mentioned you should be able to boil it down and post just a few lines of code for each file and the answer to your problem should come soon. But with the error you are getting it is too easy to make assumtions that may not reflect your situation.

Similar Messages

  • How to access ejb jar in ear package from other war web package?

    How to access ejb in jar packed in ear package from other war web package?

    Typically you would just look the EJB Home up in JNDI. If you're
    looking for example code, the medrec example in WLS 8.1 or petstore has
    plenty of webapps calling EJBs.
    -- Rob
    CottonXu wrote:
    How to access ejb in jar packed in ear package from other war web package?

  • Move (or access) Aperture library to new mac from other mac (over the air)

    I had Aperture 1.5.6 on my iMac. I upgraded to snow leopard and now Aperture will not work. Apple says the old version does not work with the new. Now I cant get to any of my pics. So I loaded my copy of Aperture on my Macbook air which still has leopard. No probs with the install but I cant move my library. I can see the Aperture library file on the iMac over the air from my macbook. I want to either import over the air or access over the air. I tried to chance the location of the library in aperture on my MBA but when I drilled down to the library on my iMac it said "not writable". I "got info" to make sure my MBA had read and write permissions for all the files on my Imac (and it does) but still no joy. Any help?
    Matt

    You can't access it "over the air." Aperture cannot edit a library over a network share point.
    Copy the library to the MacBook Air and you can use it from there.

  • Ios 6 have some bugs on ipod touch 4g like appstore search bug and accessibility which i cant go out from and crashes every where and imassages that the massge i send goes up and stick to the other messages plz help or do ios 6.1

    Ios 6 have some bugs on ipod touch 4g like appstore search bug and accessibility which i cant go out from and crashes every where and imassages that the massge i send goes up and stick to the other messages plz help or do ios 6.1 can i change my a4 chip plz i swear when i pressed done to submite this safari crashed

    Try to do a hard reboot (no data is lost) by holding down the home and power buttons at the same time untilyou see the Apple logo. Then, let go of both buttons. If that doesn't work, try restoring your iPod and do NOT restore from a backup. This will erase your data, but you can sync back everything except app data and settings from iTunes.

  • I am unable to redeem iTunes cards from my iPhone 5 or my PC using my account.  I am able to use mmy PC to access and purchase from other's accounts.  I get a temporary unavilable to redeem message or an iTunes unknown 5002 error.

    My iPhone 5 and my PC (Windows 7) will not allow me to redeem cards or make purchases.  I get an unknown iTunes error 5002 on the PC and when using the iPhone it goes blank after a code is entered and does not return.  It recovers when the home button is pressed.  The software is up to date and this has been tried by USB and Wi-Fi from different netwroks.  This matter has persisted for more than five days without a resolution from Apple support.  The same PC allows purchases from iTunes from other accounts belonging to others who use the same PC with their IOS devices (iPhone 5, iPod Touch, iPod Shuffle).

    Hello jaybearden,
    Thanks for the question. After reviewing your post, it sounds like you are not able to restore the iOS device since you get an error 9. I would recommend that you read this article, it may be able to help the issue.
    Resolve iOS update and restore errors - Apple Support
    Check your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006. Sometimes security software can prevent your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't preventing a connection to the Apple servers.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • How do I access open tabs from other devices in Firefox 4 for desktop (windows version)

    I want to see the open tabs from other devices but I can't find how to access it.
    Where do I find them in firefox 4?
    I use the windows version.
    Thank you!

    This is for all versions (image attached below):
    1. In the top navigation (you might have to press the ALT key to reveal the menu), navigate to '''History - Tabs From Other Computers'''
    2. Alternatively; open a new tab and type '''about:sync-tabs''' then press enter.
    NB: When you open a tab in the 'Tabs From Other Computers' window it '''WILL NOT''' remove that tab from the other device.

  • Access Address Book from other applications

    Hi there,
    How can I access Address Book information from other applications (notably the command line, OpenOffice, etc.)?
    In particular, is there a command line utility to access and edit the Address Book?
    Thanks!
    Brian

    One of the best answers would have been the CPAN module: Mac::Glue. Cheers.

  • I am not able to access the application from other PCs in network

    Hi Friends,
    I am a newbie in this field and building an internal application for employees of my org. The HR will enter all the informations regarding a particular employee and it will get stored in the Oracle DataBase(10g).When the admin users will want to know information about a particular emp they will put the emp_code and it will retrieve all the information of that particular emp.For that I am using Oracle AS(10g).After the deployment of the apllication(.war file) in the AS(10g), when I access the URl- http://10.0.37.51:7777/emp/... from my machine (where 10.0.37.51 is the IP Address of my system where server is installed) the application runs properly but when i give the same url from other pcs the whole application does not run properly it gives an error msg http://d6z5sb1s:7777/...not accessible.. can any of my forum friend help me out to solve the problem.I will be thankful to you..
    Regards,
    Prasenjit Biswas
    [email protected]

    Here I am using Java Type IV for database
    connection.
    So,there was no necessity of creating DNS.How your app communicates with db shouldn't matter for the end user. Still, you may want to use a functional network name also for the thin client driver connection string.
    So,is there any other way to solve this problem.What is the problem really? Do you not use dns for network naming? Maybe you have to manage the hosts file on every client then.

  • Put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    i just purchased a file that had videos in it. i put them in the itunes library on my pc where i first downloaded them. i was able to transfer them to my other pc, a laptop, through my home network. i am now trying to get them on my mac pro desktop and my ipad2. my mac pro can see the other computers on my home network but i cannot get it to connect to them. i know the operating systems are different but was hoping i could transfer pictures and files from pc to mac this way. haven't been able to get it to work yet. the videos i am trying to get my mac to see came in a folder with both mac and pc versions. i thought if i got the videos i purchased into itunes that i would then be able to get them to my mac pro and my ipad2. i am new to mac/apple and have always been pc-centric so trying to marry it all has been difficult. i speak pc pretty well but am just learning apple. am i trying to do things that are not possible? i sure could use a knowledgable friendly soul to walk me through my issues of having pc and mac on the same network. i have been able to get all computers and ipad to print on my network. thanks.

  • Tables stored in memory but may be accessed from other sessions

    Dear Oracle experts,
    it may be a stupid question but I'm searching for the best possibility to create a kind of temporary table which may be accessed from other sessions.
    Could you provide some hints/ catchwords to speed up my recherches.
    Thank you very much,
    Daniel

    danielwetzler wrote:
    danielwetzler wrote:
    I fear that the caching is not suitable for my case because of the reasons decribed in my other postings...First of all I don't think that you need to worry about the effectiveness of the caching in your particular case. In addition Oracle is very clever at when to actually write the dirty blocks from the buffer cache to the disks, so if your amount of data written to the result table is fairly small and no other activity is going on your system it won't get written to disk immediately anyway but stay in memory until any of the conditions are met that trigger the database writer to flush the blocks to disk.
    But there are options you could consider if you want to avoid as much of the overhead as possible and to write the results of your calculation to the result table as fast as possible.
    You could use direct-path inserts (INSERT /*+ APPEND */) and set the result table to "NOLOGGING". This way no undo and minimum redo is generated.
    Note however that there are certain caveats and restrictions to consider when using such an approach, e.g. your result table won't be recoverable (which you say is OK), only one direct-path insert is allowed simultaneously (it blocks the table exclusively, no other DML possible until you commit/rollback the transaction), and the direct-path insert has some restrictions. If any of these apply that prevent the direct-path operation then it silently falls back to "conventional" insert mode which generates undo and redo. One of the more annoying restrictions is that you can't read from a table that has been written to in direct-path mode within the same transaction, you first have to commit the transaction, otherwise you get "ORA-12838: cannot read/modify an object after modifying it in parallel". This means by simply adding the APPEND hint you might break existing logic.
    Finally the direct-path insert never re-uses free space in blocks below the current high-water mark, which means if you perform a direct-path insert and afterwards delete rows from the table and repeat again a direct-path insert operation your segment will grow and the empty space in the already used blocks won't get re-used. Best way would be to truncate the table rather than deleting rows from it.
    There are workarounds available to overcome some of these direct-path insert limitations (exclusive lock, truncate instead of delete etc.), like using a partitioned table (if you have a suitable edition/license), because direct-path inserts can be restricted to partitions. In this case you can do simultaneous direct-path inserts if you use different partitions, but you need then some kind of logic that determines which partition to use.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • HT5958 This new closed Library system stinks. Now you can't access media from other programs. Any work around?

    Let me start by saying I have been using FCP X for a year now and really love it.  We produce a half hour weekly TV series so I put it through its paces on a weekly bases.
    I was horrified to return from the holidays to find out that an automatic update yielded a whole new file system.  By packaging all of the Final Cut Event and Project folders into a single library file you can no longer access the original media from other programs such as Photoshop and After Effects without making two copies of all of the media.  This really cuts into the pipeline.  In the past we were able to recreate new show opens and transitions quickly from within After Effects by linking to the original media in the event folders to use them as source files in compositions.  The same was true of grabbing frames from Original movies for use in Photoshop for promotional materials.  With the use of the Libraries, ALL OF THE LINKS ARE BROKEN.  Yes I know you can right click on a library and still view the files, yes they are still there, but you can't do that from within another program. 
    This Library system doesn't make any sense.  Its a step back from the old system.  It was much easier, quicker, and efficient to move large event libraries and projects off and on the system and backup using Finder.  Now you have to open up Final Cut to do everything and its a lot slower.
    I want to appeal to any Apple developers who monitor this to return to the old system of file management. 

    Media does not have to be stored inside the library. Use the Consolidate library or event to move it to an external location.

  • Button Actions are not working -invoking task flow from other project regio

    Hi
    I have a project using a mani.jspx file having a regions and the region is updated with different views based on a router condition in my bounded task flow. Everything working fine with in the project. I have a seperate project in my application having an index.jspx and region in it. I created the ADF lib jar file of the first project and imported to this project. I could invoke the task flow in the first project to the region in the index.jspx file in the seconed project.But none of the action managed bean method attached to the buttons in this view are working.The methods are not getting called on clicking on button and no error in the backend console of Integrated weblogic server.Any body can help what could be the issue ?
    Thanks
    Suneesh

    The issue that is happening when I refreshed the region with task flow from the project I imported.If I load the taskflow from the imported project on first time rendering all my managed bean actions are executing but if I load a different flow initially and change the taskflow Id imported from other project none of the managed actions are working.
    Thanks
    Suneesh

  • How to disable save button on selection screen (1000) run from other report

    Hi Experts,
    Can any one let me know how to disable save button on selection screen (1000) run from other report.
    Say I am running from report R1 which submits report R2, but the save button should be disabled on
    report R2(selection screen 100).
    Thanks in advance.
    Regards
    RP.

    Hi RPReddy16 ,
    Try this:
    DATA :BEGIN OF t_extab occurs 0,
                     fcode like rsmpe-func,
                 END OF t_extab.
    REFRESH T_EXTAB.
    MOVE 'SAVE' TO T_EXTAB-FCODE.
    APPEND T_EXTAB.
    CLEAR T_EXTAB.
    SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
    Regards,
    José

  • Why can't I access my mac pro from other computers

    I can't seem to access files from my Mac Pro from other computers on our network.  It asks for a username and password, which it says is always incorrect.  Any ideas on how to fix this?  We have two main workstations that need to access a single Fire Wire 800 DRobo array that's connected to the Mac Pro tower.
    Thanks!

    File Sharing must be enabled on the Mac Pro. in System Preferences > Sharing
    System Preferences > Accounts > Guest account must be present and must allow File Sharing, but need not allow guest login.
    Although the login pane appears on the screen of the second computer, the login it is asking for is an account and password that is valid on the Mac Pro (the computer whose files you want to share). The number of bullets in the password field is fixed -- it has no idea how long the password is. Passwords are case sensitive.

  • Create a button in one component and use it in other component

    Hello, I have a problem(is not the first time but I don't have very clear that problem and I'm asking again). I'm creating a button in one component doing that
    Comp1:
    public var btn=Button;
    override public function main(args:IParams):void{
         var btn = new Button
        btn.label = ....
    And now I want to use this button in another component:
    Comp2:
    private var dia:Object; //It's my own object, it's a Dialog but with my properties,a dn the dialog need (button,string,boolean)
    private function onClick(event:Event):void{
                    dia = new Object(HERE I HAVE TO PASS THE BUTTON , "Tittle", false);
    I want know how can use the button that I have declared in the first component in my object. It's much more complicate but I have tried simplify my code.
    I hope that somebody can help me.
    Thanks!

    I'm sorry, probably I'm explainign wrong, I don't know if it's for my english or because I don't know how to say, but this is not the problem. I will put the code because I think that ou could understand better. Forget the buttons, the problem is the window parameter
    I'm very sorry because you're wasting time with me, but I hope that you can do the last try now with the code. If you don't understand something ask me before start thinking.
    MyModule
    <?xml version="1.0" encoding="utf-8"?>
    <AbstractVisualModuleExecutable
        xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                private var win:ITopComponent; //MY window
                private var dia:Dialog; //My Dialog
                override public function main(args:IParams):void{
                    win = initContext.environment.createTopComponent();
                    win.title = "Prueba Dialog"
                    win.contentPane = this;
                    win.visible = true;             
                private function onClick(event:Event):void{
                    dia = new Dialog(win, "Title", false); ((Here I use the window, because I have to say to the dialog who is her father. Win is the father or the dialog, the dialog will create when I do click in one button of my window(the father).
                    var btn2:Button = new Button();
                    btn2.label = "Cerrar";
                    btn2.addEventListener(MouseEvent.CLICK, function(event:Event):void{
                        dia.dispose();
                    dia.contentPane.addChild(btn2);
            ]]>
        </mx:Script>
        <mx:Button id="btn" click="onClick(event)" label="Dialog" />
    </AbstractVisualModuleExecutable>
    Now I want to divide this applicatión in one module and one component.
    MyNewModule (something like this):
    <mx:Script>
            <![CDATA[
                private var win:ITopComponent;
                private var dia:Dialog;
                //Here I create the window
                override public function main(args:IParams):void{
                    win = initContext.environment.createTopComponent();
                    win.title = "Prueba Dialog"
                    win.contentPane = this;
                    win.visible = true;               
    </Script>
    MyNewComponent (something like this):
    <Script>
              private var dia:Dialog;
             Here the instance of win I supose, but I don't know how. I have tried more than one thing
              private function onClick(event:Event):void{
                    dia = new Dialog(here the win, "Title", false); //here I want to use the win that I have created in MyNewModule, but I only get a null when I execute the module. I don't know how can I do, instance.top or something like this I suposse it.
                   //This part is not important
                    var btn:Button = new Button();
                    btn.label = "Cerrar";
                    btn.addEventListener(MouseEvent.CLICK, function(event:Event):void{
                        dia.dispose();
                    dia.contentPane.addChild(envio); //here I add the content of the dialog
                    //dia.contentPane.addChild(btn); //here I add only a button without content, but don't worry about that, like I said later this is not important. The import thing is how can I use win when I create the dialog.
                    dia.visible = true;
    </Script>
    <mx:Button id="toOpenDialod"  label="Open"  click="onClick(event)"/>
    THANKS!

Maybe you are looking for

  • Finally managed to install Windows 8.1 Enterprise on MBP2010.

    Hi. After several hours of tweaking, I finally managed to install Windows 8.1 - or ANY Windows, for that matter - on my old MacBook. Bootcamp has a few major flaws right now. I do no longer have an internal optical drive, so I had to use a usb flash

  • Cap7: Problems with Publishing .mp4 file on Mac

    Hello, Using Captivate 7 for the Mac, i imported a Power Point PPTX file, added audio tracks to the slides, and then tried to Publish it for YouTube. It did not work. After trying many different ways to publish, I realize that the published .mp4 file

  • Mail Inbox on Ipad

    When I go into mail on the Ipad, i am only able to see approx 20 email messages, yet i have 100 or so in my inbox on exchange. I changes the settings to show 200 messages, yet the inbox still only shows 20 or so on the Ipad. How do i see more? Thanks

  • Does anyone know how to import an existing mp3, edit, bounce back to iTunes

    I have created many songs in Logic Express and have successfully bounced them as mp3 files to iTunes. However, now I'm trying to import a pre-existing mp3 file, edit the length of the track, and export, or 'bounce' it back into iTunes. All seems to w

  • Mail sync with gmail is extremely slow

    I have a mail.app installation that's part of 10.7 and it holds three accounts, all of which are hosted by google. Two do exactly what you might hope - i.e. turn the spinner for a few seconds once mail.app starts and then be fine; but the other one..