Cannot extend mx.core.Application

I am trying to create a AS3 only project with no mxml but I
would like to use the mx.controls
I created a simple class
package {
import mx.core.*;
import mx.containers.*;
import mx.controls.*;
import flash.display.*;
public class Test extends Application {
public function Test(){
The code compiles fine but generates errors during runtime
TypeError: Error #1006: Call attempted on an object that is
not a function.
at mx.core::Container/mx.core:Container::createBorder()
at mx.core::Container/styleChanged()
at mx.core::Application/styleChanged()
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::addingChild()
at mx.managers::SystemManager/::initializeTopLevelWindow()
at mx.managers::SystemManager/::frameEndHandler()
thanks
cheers :)
firdosh

We've made subclassing components in AS straightforward, but
subclassing Application isn't trivial. There is some support code
that an Application needs thatI the MXML compiler sets up. think
you're running into the problem that you don't have a global CSS
selector. (The MXML compiler parses default.css and creates
ActionScript that sets up the CSSStyleDeclarations that the
application needs.) We can probably make this easier in the next
release, but it's unlikely to get better for Flex 2. Is there some
particular reason why your app can't be an MXML file, or it is just
a preference?
Another possibiliy is to turn on the
keep-generated-actionscript option, compile an empty
<mx:Application/> app, look at the subclass of Application
that the MXML compiler produces, and copy any relevant -looking
autogenerated code you find there.

Similar Messages

  • Cannot open repository for application

    Hi experts,
    I am getting the following error while deploying the application in the server..
    Cannot open repository for application
    can any boby plz tell me why this error is coming and how to over come this..
    regards,
    viswa

    HI fazal,
    this is the complete error trace i am getting...
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot open repository for application 'com.sap.demo.month_report.month_report.Month_report'.
         at com.sap.tc.webdynpro.serverimpl.core.um.AbstractClientUserFactory.isAuthenticationRequired(AbstractClientUserFactory.java:140)
         at com.sap.tc.webdynpro.serverimpl.wdc.um.ClientUserFactory.checkAuthentication(ClientUserFactory.java:190)
         at com.sap.tc.webdynpro.serverimpl.core.um.AbstractClientUserFactory$1.checkAuthentication(AbstractClientUserFactory.java:151)
         at com.sap.tc.webdynpro.services.sal.um.api.WDClientUser.checkAuthentication(WDClientUser.java:214)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.checkAuthentication(RequestManager.java:713)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:237)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:202)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:127)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:92)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:104)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:54)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:466)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
         at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:240)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:425)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
         at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Caused by: com.sap.tc.webdynpro.repository.utils.RepositoryException: Did not find application 'com.sap.demo.month_report.month_report.Month_report' in repository.
         at com.sap.tc.webdynpro.serverimpl.core.repository.AbstractServerRepository.getApplicationInternal(AbstractServerRepository.java:182)
         at com.sap.tc.webdynpro.serverimpl.core.um.AbstractClientUserFactory.isAuthenticationRequired(AbstractClientUserFactory.java:134)
         ... 51 more
    regards,
    viswa

  • Source code for "Creating an Extended Web Dynpro Application"?

    Hello!
    I'm a rookie in the field of SAP Netweaver and I'm justing getting started with some tutorials. My problems with "Creating an Extended Web Dynpro Application" are to massive to be posted on this forum in this stage. What I want to have some help with is to find the source code for that tutorial so I can get som guidence from there.
    Following text is cut out of this page:
    http://help.sap.com/saphelp_nw70/helpdata/EN/5d/f42fef2eec724597a03b6bcc670c2c/frameset.htm
    Creating an Extended Web Dynpro Application
    You can download the Web Dynpro project for the current tutorial from the Software Developer Network SDN (http://sdn.sap.com -> Web Application Server -> Web Dynpro -> Sample Applications and Tutorials) in two versions: one skeleton version you can use for exercises and one final version (solution) for an immediate build, deployment and run on the Java engine of the SAP Web Application Server.
    How hard I try I can't find the specific source code on sdn.sap.com
    Does anyone have a clue where it is?
    Thanks!
    Best regards
    /Johan Månsson Lindströ

    Hi!
    I did what you said but I seem to miss the IDE folder. This is what it looks in my Explorer
    C: > Program Files > SAP > IDE > CE > eclipse > (no folder called "examples")
    I also did a search in this eclipse folder for "examples" but I did'nt find the example I'm looking for
    I am running a newer version of NWDS:
    SAP NetWeaver Developer Studio
    SAP NetWeaver 7.1 Composition Environment SP03 PAT0000
    Maybe that's why things don't look the same?

  • Extending a web application to port 80

    Hello -
    I have a web application running on port 80.  The associated IIS site is http://sharepoint
    I want to extend the web application to port 80 and use a different URL:  http://isharepoint
    The authentication schema will stay the same (classic NTLM).
    I assume I enter http://isharepoint as the host header and use port 80, correct?
    Do I need a new IP address and a new DNS entry, or do I just set up a CNAME that points to an existing name?
    thanks

    Assuming that sharepoint is the current host header then yes you can extend to isharepoint on port 80 with isharepoint being the new host header.  You don't need a new IP address, but will need a new DNS entry and it should be an A record not a CNAME.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Desktop Software 6.0 (PC) does not show OS 6 system software and core applications

    I have installed DM 600_b047 on my PC (running WinXP w/ SP3). I have also installed both OS 6.0.0_rel862 and 5.0.0_rel1385 on the same PC. When I connect my Bold 9000 to the PC, DM shows everything that is installed on the device. However, when disconnect the Bold and I connect my Torch 9800, DM shows only the third-party apps installed on the device. DM does not show the System Software, Core Applications, Phone, etc. that are installed on the Torch.
    On another PC (also WinXP w/ SP3), I have installed the same DM and OS software. DM on the latter PC shows all System Software, Core Apps, 3rd-party apps, etc. of both the Bold and Torch.
    I would appreciate any suggestions how to get my other PC to show all BB software installed on the Torch. I have already uninstalled and reinstalled the DM and OS software on the one PC. It did not resolve my issue.
    Thank you.

    Here's how I resolved my issue:
    1. On the DM's Applications page, click the "Import files" button.
    2. Drill down to the folder containing the .alx files of the BB OS. In my case, that would be "C:\Program Files\Common Files\Research In Motion\Shared\Loader Files\9800M_v6.0.0.284_P6.4.0.120"
    3. Select the alx files shown.in the files window..
    4. Click the "Open" button of the dialog box.
    5. Wait for DM to finish processing the selected files.
    Voila! Now I see all the apps.
    Maybe RIM's software and/or system engineers can explain how the DM software got into the condition where it apparently had not selected the .alx files.

  • Error while creating new employee in CAF Core application

    Hi
    I am novice to the CAF, this is my first CAF Core application which I have created and deployed in J2EE engine successfully. It’s ready for Testing, here  I am trying to create a  new employee but while saving it, giving error like:-
    ERROR. Exception thrown in method createEmployee. The transaction is marked for rollback.: Exception thrown in method create. The transaction is marked for rollback.: com/sap/caf/rt/exception/CAFIllegalAccessException
    Anyone can help out me.
    Regards
    Srikanth

    Hi Cindy Herrman,
      FYI , that check box already unchecked, while setup the employee entity only that Permission check box unchecked, still I am getting same problem.
    -Srikanth

  • Cannot extend package Error while saving changes in Query

    Dear Gurus
    When i am trying to save changes made in the query i get an error message Cannot extend package YBW. kindly help me in resolving this as the changes are required in multiple queries.

    thanks for your relpy Jaya..i checked the properties...the check box package not extendable check box is unchecked and the main package checkbox is also unchecked.
    i check the below post...not exactly related to my issue
    creation of package(Package can not be extended)
    Edited by: SAP Learner license on Mar 30, 2011 9:16 AM

  • Cannot extend package in ABAP 7.1 (new installation)

    Hi everybody,
    sorry for this question, but how can i extend a package in ABAP 7.1. I have created a structure package (ZSP_Test). In this package i try to create a program but without success. I get the message: Cannot extend package ZSP_TEST.
    My Package Properties:
    - allow adding new objects: (is disabled, read only)
    - Type of Package: Package
    - superpackage:
    - Encapsulation level: Not encapsulated
    - Alias for enhancement:
    - Dependency Control list: Checked
    - Allow Enhancement: Checked
    regards,
    Sid
    Edited by: Sid on Nov 6, 2009 6:01 PM

    Sid,
    congratulations you are on 7.1 - I am not yet. As far as I understand the package concept, you must have everything in the package interface, what you want to use but do not define in the package.
    Look at any existing standard packages: Probably they have something very basic in the interface that will allow you to create a program and use some basic statements.
    At least thats what I exspect to be the reason for your error.
    Regards,
    Clemens

  • Adobe Flash Player, version 10.1.102.64 installed, but I cannot access FP dependent applications

    Adobe Flash Player, version 10.1.102.64 is installed, but I cannot access FP dependent applications (such as those on Facebook.)
    I used the link you previously  provided  http://www.adobe.com/products/flashplayer/fp_distribution3.html
    to  download the FP .exe and it worked for 2 days, but is no longer working and I'm getting the same message for both  Mozilla & IE. The only things I recall doing prior to FP not working again was 1) sign up for G Mail & 2) I used Save As to dwld a number of Images from Google.  I also rolled back my PC a day, but that has not fixed the issue.  I get the error both in IE & Mozilla.
    I've reviewed HK Local Machine/Software/Adobe, but there is no file folder for Flash Player under HK  HKEY_LOCAL_MACHINE/Software/Adobe {though there are folders for Shockwave, etc.)  Does anyone know the KEYS for Flash  Player, that I could add manually?
    System Information:
    Win XP Home, SP 2
    IE 8.0.6001.18702
    Mozilla 3.6.12
    Flash Player 10.1.102.64
    Thanks for any & all help!
    Sidney

    Can you see the Flash animation at http://www.adobe.com/software/flash/about/ ?
    Does it show some version information under it?
    Is Shockwave Flash object enabled in IE and FF?
    What files do you have in C:\Windows\system32\Macromed\Flash?
    Do you know that XP SP2 is no longer a supported OS?

  • I cannot open my iphoto application.  The minute I double click on the icon I get the rainbow which spins forever.  I've used Applejack to repair the hd, but even that didn't work.  I've getting into iphoto preferences..can't.  Help!

    I cannot open my iphoto application.  The minute I double click on the icon I get the rainbow which spins forever.  I've used Applejack to repair the hd, but even that didn't work.  I've getting into iphoto preferences..can't.  Help!

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • HT1338 I cannot access my iphoto application on my imac as it says I have made changes in Iphoto using a newer version. We have recently purchased a Macbook Air and this has Lion (as opposed to leopard on the iMac) and we are sharing photos between the 2?

    I cannot access my iphoto application on my imac as it says I have made changes in Iphoto using a newer version. We have recently purchased a Macbook Air and this has Lion (as opposed to leopard on the iMac) and we are sharing photos between the 2.  I am awaiting the upgrade discs for snow leopard and then to Lion for the iMac but is there a way to access my photos until this arrives?

    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • TS1368 Cannot connect to/open application to ITune.  Message states "because another user has it open.  Ask them to quit and retry."  However, there is no other user.  Help!

    Cannot connect to/open application to ITune.  Messages states that it cannot open "because another user has it open.  Ask them to quite and retry."  However there is no other user???  Thanks for any help.

    You Windows must have different user profile where iTunes is open in that profile.  Switch windows user and close the iTunes, then return to your own user profile to open again.

  • DiskUtility  cannot repair Permission difference: applications/Safari and freezes

    DiskUtility  cannot repair Permission difference: applications/Safari and freezes.
    The message I receive is:
    "Permissions differ on "Applications/Safari.app/contents/Resources....sources/index-html"
    should be: lrwxr-xr-x
    They are: -rwxr-xr-x.
    This is a brand new computer.
    DiskUtility keeps running for hours and then just freezes the PC
    Please I need assistance
    Sally

    Although it’s immensely popular, repairing permissions is a waste of time unless you have a specific indication of a permission error involving system files, which is rare, or a startup failure. It is not a universal rite of healing for computers. It has traditionally spewed bogus warning messages that mean absolutely nothing.
    The built-in help for Disk Utility reads in part:
    If you see an alert or a message that says your permissions are set incorrectly, you can correct the disk’s permissions by clicking Repair Disk Permissions.
    It’s justifiable, though rarely necessary, to repair permissions after running a third-party software installer, as defective installers have been known to damage the permissions of system files.

  • HELP!!! i need help on how to update the core applications and system software.

    can anyone help me update my software for a blackberry curve 9300. i need to updat the core applications and the system software but i dont know how to do so. do i do it by my desktop or device

    Hi and Welcome to the Community!
    The simplest way is this:
    KB16068 How to update the BlackBerry Device Software through the web
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • MAC OS:Word cannot locate the server application for AcroExch.Document.7.objects

    In MAC OS,installed Adobe reader ,When I double click a pdf file in Word2011,it shows"Word cannot locate the server application for AcroExch.Document.7.objects".what can i do to fix it?

    I found out through someone else. The "how to" find the place to add it was more challenging.
    Instructions:
    1. Take the Webarchive file and save it on your computer (anywhere is fine).
    2. Open MacMail and go to preferences>signatures and create a signature with any name and filler text. Close Macmail.
    3. Open your finder, go to the "Library" folder. If you cannot view your Library folder, open up "terminal" and simply paste in: chflags nohidden ~/Library/
    (this will allow you to view your Library folder from now on)
    4. In your library folder, go to Mail>Mail Data>signatures
    5.Copy the name of the signature file that is already in the signatures folder. It should look something like "079ADD83-A19F-4597-BBFC-4F35858894DE" After copying that name, delete the file.
    6. Go to the webarchive file you saved and rename it the name of the file you just deleted. Then paste that into the library>Mail>Mail Data>signatures folder.
    7. Open your macmail and see if it worked!
    If my directions are not clear, you may find the following article helpful from step 5:  http://code.coneybeare.net/how-to-make-an-html-signature-in-apple-mail-f
    Now here's how I managed to find my Library/Mail in OSX 10.7.3:
    Menu: Go
    Choose: Home
    Library
    Mail
    Vs
    Mail Data
    Signatures
    Hope this helps!

Maybe you are looking for