How do I get "Application.application" to work

In my continuing quest to solve a print problem, I keep getting other errors.
the lastest is "Application.application.addChild(someObject)" not working.  Here is the 1st message:
1119: Access of possibly undefined property application through a reference with static type Class.
Here is the 2nd message:
1195: Attempted access of inaccessible method validNextPage through a reference with static type
mx.printing:PrintDataGrid.
Here is the 3rd message:
Multiple markers at this line:
-1119: Access of possibly undefined property application through a reference with static type Class.
-AS3
(note "AS3" is one of the code assist options - application is not an option)
Here is the code:
<?xml version="1.0" encoding="utf-8"?>
<options:OptionContent
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:options="gov.il.dhs.wvs.view.options.*"
    xmlns:cust="cust.*"
    creationComplete="_init();"
    show="showHandler(event)">
                var numNotes:int = model.dpCASENOTES.length;
                if (numNotes > 0)
                    var dataSource:ArrayCollection = new ArrayCollection();
                    for (var i:int = 0; i < numNotes; i++)
                        var dataHolder:Object = new Object();
                        dataHolder.NoteNum = (model.dpCASENOTES[i] as CaseNotesVO).notes.toString();
                        dataHolder.UpdatedBy = (model.dpCASENOTES[i] as CaseNotesVO).updatedBy.toString();
                        dataHolder.PostedDate = (model.dpCASENOTES[i] as CaseNotesVO).postTs.toString();
                        dataHolder.Description = (model.dpCASENOTES[i] as CaseNotesVO).shortDescription.toString();
                        dataHolder.Notes = (model.dpCASENOTES[i] as CaseNotesVO).notes.toString();
                        dataSource.addItem(dataHolder);
                    var printJob:FlexPrintJob = new FlexPrintJob();
                    if (printJob.start())
                        var myGridPrint:PrintDataGrid = new PrintDataGrid();
==>                        Application.application.addChild(myGridPrint);
                        myGridPrint.dataProvider = dataSource;
                        myGridPrint.width = printJob.pageWidth;
                        myGridPrint.height = printJob.pageHeight;
                        printJob.addObject(myGridPrint);
==>                        while (myGridPrint.validNextPage())
                            myGridPrint.nextPage();
                            printJob.addObject(myGridPrint);
==>                        Application.application.removeChild(myGridPrint);
                        printJob.send();
This is a component (CaseNotes.mxml).  There might be a scope of names thing going on.

Hello,
If You are using Flex 4
Application.application has changed to FlexGlobals.TopLevelApplication

Similar Messages

  • After installing the latest version of ITunes I get an error message that says this application has failed to start because MSVCR80.dll was not found.  how do I get Itunes to start working again?

    After installing the latest version of ITunes I get an error message that says this application has failed to start because MSVCR80.dll was not found.  how do I get Itunes to start working again?

    See... Unable to install or open > http://support.apple.com/kb/TS5376
    Also See this User Tip by turingtest2
    https://discussions.apple.com/docs/DOC-6562

  • 'Renew your subscription' appears when using my CS6 program. How do I get my applications to work?

    I canceled my Creative Cloud subscription last year when I chose to purchase a copy of CS6. CS6 worked fine until I went to open up InDesign and a pop-up appeared saying 'Renew your subscription'. I do not wish to renew my Creative Cloud license, and I just want to use my CS6. Any help on how I can get my applications to work? I'm on a Mac, if that helps. Thank-you!

    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Mylenium

  • I have a new Macbook Pro but it does not have iDVD. How can I get this application?

    I have a new Macbook Pro but it does not have iDVD. How can I get this application?

    I have a new Macbook Pro but it does not have iDVD. How can I get this application?
    If you are still within your 15 day return period.  Call Apple they will sent out iDVD at no charge.  (There are no realistic substitutes.)
    Nicely explain that you may return the computer without iDVD. That usually does the trick.  You MUST speak to a senior advisor to get a free copy. The first tier people cannot do it.
    408-996-1010
    800-692-7753
    If that doesn't work you can purchase iLife 11  (includes iDVD) on disk.
    IDVD is a wonderful piece of software and well worth the low cost of $40.
    http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?ie=U
    http://dealmac.com/lw/artclick.html?1,527850,1872219

  • I have installed Adobe packages and cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?

    I have installed Adobe Creative Cloud for teams CC Packages which says that Acrobat XI Pro is installed. Your support page says it does not install Acrobat and I have to look in the Extensions folder for an MSI file.  I have run a number of searches and  cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?
    Also I now administer the teams and have accepted the invitation to I received to be a team member and download the apps.  The admin page shows that I have been sent an invitation but does not show my account as "ACtive" unlike my other team members.  I tried to use the link in the invite to accept it become active but the link displayed an error saying I had already accepted the invite... why is no account not active?
    Finally what other product downloads in Creative Cloud do not actually download as part of the Creative cloud Packager for downloading the apps? e.g. acrobat and what else?

    My apologies Eadeszoo I believe our support agents are unavailable on January 1.
    Are you able to copy the contents of the DVD to your computer?  Are you receiving any particular error messages when you are trying to install?  Finally which operating system are you using?

  • I have an ipod touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    I have an Ipod Touch 2 and rebuilt my laptop.  Reinstalled ITUNES and can't find my applications on ITunes after login.  I tried to activate Itunes again but it didn't.  How can I get my applications to display on ITUNEs?

    It sounds like you essentially have a new computer and unless you restored from a backup your iTunes library would be empty.  You can transfer your iTunes purchases from your iPod to the computer by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    SInce you changed syncing computers. after you move the stuff you need to restore the iPod to factory defaults and sync the stuff back to your iPod.  If you had the iPod backup file you could restore from backup.
    If you have non-iTunes pruchases you can copy them to your computer by using one of the third-party programs discussed in this previous discussion:
    Best iPod to PC

  • How does one get open applications to reappear on desktop when they have disappeared?

    How does one get open applications to reappear on desktop when they have disappeared? They disappeared by something I did but don't know what.

    Try clicking on their Dock icon. Or you can use the task bar: COMMAND-TAB.

  • How can i install AppRadio application...i am in Tunisia and the application is not found in the Tunisian AppStore...it's essensual for piloting my Pioneer SPH-D01 AppRadio....please how can i get this application ...thanks

    how can i install AppRadio application...i am in Tunisia and the application is not found in the Tunisian AppStore...it's essensual for piloting my Pioneer SPH-D01 AppRadio....please how can i get this application ...thanks

    If it's not available in the store in which you have your account, you're pretty much out of luck. In order to purchase from the U.S. iTunes Store you need a)a valid billing address in the U.S., b) a credit/debit card billed to that address or an iTunes prepaid card purchased in the U.S. and c) to be physically located in the U.S. at the time of purchase.

  • How can I get my application Context Path?

    How can I get my application Context Path via webdynpro code?
    Let say I'm accesing my application with URL
    https://myapp:8443/webdynpro/dispatcher/local/MyApp/App, how can I get
    the value 'https://myapp:8443' from webdynpro code? In J2EE, this is
    equivalent of HttpServletRequest.getContextPath() method. Do we have
    this method call in webdynpro object?

    Hi John,
    Yes you can achieve that in Web Dynpro.
    Try the following -
    // USE THIS FOR GETTING THE SERVER NAME AND IMPORT WEBLOGIC.JAR FILE IN THE JAVA BUILD PATH PROPERTIES
    HttpServletRequest request = (( com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
    //GETS THE HOST NAME OF THE SERVER
    String strHostName = request.getServerName();
    Thanks,
    Sam

  • How do i get my application folder out of the trash

    I was deleting some files from my computer and accidentally put my applications folder in the trash. Now I can't get it out. I still have my application folder visible in my finder but it doesn't have the Application Folder icon. It has a normal folder icon. All my apps are visible in both the trashed folder and the application folder in my finder, however, when I do a Spotlight search for a specific application, it says it's only location is in the trash.
    How do I get my applications back?
    Rimoeng

    Click on the Trash icon which swill open the Trash window. Select the Applications folder and drag it to its original location which is the root directory of your hard drive. You may be asked to authenticate by entering your admin password.

  • How do you get the applications folder on mac book pro

    How do you get the applications folder on mac book pro?

    To access it, you open the Finder (blue face at bottom left of dock) and click the Applications shortcut you'll find there.
    Matt

  • How can I get the Application DVD for IMAC Late 2009?

    How can I get the Application DVD for IMAC Late 2009?

    Disk 2 of the original disks that came with the computer?
    Call Apple, give them your computer serial number, and they will ship you disks for a small charge if disks are available. Go to the Apple Store for your country, then to the bottom of the page//Contact Us for the correct telephone number.
    If that isn't what you ant, can you provide more information?

  • Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Hi I have just upgraded my computer to Mac OSX 10.6.7 now I cant open my FCE 4. Message reads, Hardware missing -AGP Graphics card. How can I get my FCE 4 working on the new computer? Cheers

    Thanks, just so I know we are talking about the same items please let me know - When you say "run Prokit" do you mean downloaded? Which I did. I dont have Prokit 4.0.1 if you are referring to that, do I need this first? Please explain what application name I am looking for if other than Prokit which is sitting in my "download folder" do I need to manually put it into the apps folder? Sorry if the questions are layman but this area is not a very strong point for me. Thanks for your help so far.

  • My Iphone keeps crashing since the new update.. how do I get my phone to work right

    My Iphone keeps crashing since the new update 7.1.. how do I get my phone to work right

    First, create a separate login on your computer for your friend. Do this BEFORE you do anything else. Next, make sure iTunes is up to date. Then:
    1. Disable auto sync when an iPod/iPhone is connected under Preferences>Devices in iTunes.
    2. Make sure you have one contact & one event in the supported applications(Address Book, iCal) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect her phone, iTunes running, do not sync at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on her phone will be in her itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore her itunes content, which you select from the various tabs, You'll get a popup regarding her contacts & calendars asking to merge or replace, select merge.
    You should be good to go.

  • How do I get my scanner to work (Epson Workforce 845) with Maverick

    How do I get my scanner to work (Epson Workforce 845) with Maverick

    Have you checked the Epson web site for an updated driver?
    Try using Applications/Image Capture.
    Another application is VueScan.
    VueScan
    VueScan FAQ

  • I updated to Mavericks and a bunch of my info deleted.  I tried opening a previous iDVD I made, but when I click on it, it says to look for themes.  How do I get my movie to work?  Thanks.

    I updated to Mavericks and a bunch of my info deleted.  I tried opening a previous iDVD I made, but when I click on it, it says to look for themes.  How do I get my movie to work?  Thanks.

    Did you do an erase and install of Mavericks?  If not look in the HD/Library/Application Support folder for an iDVD folder.  There should be a Themes folder in it. If it's not there look in your Home/Library/Applications Suport folder for the iDVD folder.
    NOTE: In Mavericks, 10.9,  the Home Library is invisible so go to your Home folder and use the View ➙ Show View Options menu to bring up this window:
    Select Show Library Folder.  Now you can check to see if the iDVD folder in there.
    If you find the iDVD folder launch iDVD, go to its Advanced preference pane and point iDVD to the Themes folder:
    If you can't find the Themes folder you'll need to reinstall iDVD from the source you installed it from originally, i.e. the disks that came with your Mac or an iLife 09 or 11 disk.
    OT

Maybe you are looking for

  • How do you change the highlight color for the day of the month?

    *Does anyone know how to set up iCal so that the "Today" in the month view will show up better?* It is such a really faint color of light blue that I can barely tell what day it is at a glance. Thanks in advance for any help on this. Jess

  • Pro TAC display not working?

    My Pro TAC (ink measurement) does not seem to be working properly. Does not see whole image. Anyone else seen this?

  • How to update NPSWF32.dll

    As I understand the file c:\WINDOWS\system32\Macromed\Flash\NPSWF32.dll is part of the Flash? When updating flash I expect this file to be updated as well as the Flash10*.ocx file? (my current version is that latest -  Flash10l.ocx) For some reason t

  • Kewl Feature (difference) Discovered in Win 10

    I had several such links as per the example below.  Someone how they could be played & saved as MP4s and had mentioned several browsers but, not IE.  Said if they used IE they got Quick Time Player window. I said, "Oh these will just start playing in

  • Firefox is extremely slow. Why can't you get a human being???

    Firefox is extremely sluggish and won't even open pages like Facebook and if it does the wheel will spin and spin and nothing loads. The problem is definitely Firefox because the problem does not exist in Internet Explorer, Chrome, or Safari. I also