Method of access in the application of a component

I need to access a public method in actionscript by a component that is a child of the application.mxml file.

How can I do?
Ive tried this.methodName (but 'this' refers only to the parent container)
Ive tried "Application.methodName", but that does not work either.
Ive tried super.method name = no job

Ive tried to refer to the application to import, but I don't know what Im supposed to do?
Application to import?

My component is loaded into the main application when running.

Any ideas?

Make sure that the component has an ID in the main application.

Let's say you give it an id of "myComp". Then, if you want a function public theat component, you can use

Application.application.myComp.myFunctionName ();

Provide import you mx.core.Application

Tags: Flex

Similar Questions

  • 10.11.6 not have access to the applications or browsers, slow Finder & sparadic

    Had the unfortunate experience of strike updates pending popup and el capitan starts automatically updated at 11.6.

    With the update lost access to all applications with a pop - up indicating that the file is incomplete or does not properly.  Preferences system and spot light do not work.  Finder is sparadic and often extremely slow.

    I tried the reboot via safe mode does not work.  I tried the other update through safe mode does not work.

    Downloaded the update manually and I tried to update regular and safe mode with manual down load the file.  No change.

    Used the r command to download a copy of stand-alone 11.6 and entrust the fresh.  Did not work.

    Have not been able to try to use timemachine as finder has problems with external drives where the timemachines resides. Only, it no longer responds. Refreshs after several minutes, but has yet to show the contents of the folder.

    What can we do?  Use of end 2012 mini mac.  (any experience with el capitan has been extremely negative, first upgrade to 11.4, then upgrading to 11.5 and now 11.6 were overly long and extremely difficult if manually or auto-update. None have worked smoothly)

    Can you start in recovery mode? https://support.Apple.com/en-us/HT201314

    If so, check the drive with disk (since the recovery mode) utility.

  • Can't access to the application data Windows 7

    I am logged on as administrator, but cannot access the Application Data folder. It shows that the folder as being locked (padlock). I have the security settings for this workstation, but cannot access many files? Where can I change the settings?

    Bruce

    The application data folder is just a re - direct to the new version of the short name.  It is only there for compatibility, and since he is not a real file, you cannot open it.

    To get the files you want, you must do this:

    1. Press +R to display the race.
    2. Type %AppData% , and then click OK.
  • How to lock access to the application user interface?

    Hello

    Our user interface application is configured to start automatically in the background when the BlackBerry is turned on.

    We have a configuration property (ShowUserInterface) in the application that will allow users to access the user interface by clicking on the application icon.

    Application continues to run in the background regardless of whether or not the ShowUserInterface configuration setting is 1 or 0.

    If the device is configured with ShowUserInterface = 1, the user interface does not appear to the user until the user clicks on the icon of the application. If the user closes or closes the application then it will continue to run in the background and maintain its condition.

    By clicking on the application icon again will open the application in its state of the screen.

    If the device is configured with ShowUserInterface = 0, then the user interface does not appear even when the driver click on the application icon.

    Please help how to achieve this?

    A code snippet

    public class MyApplication extends UiApplication
    {
        private Configuration config;
    
        private BackGroundThread _thread;
    
        public static boolean fromService = true;
    
        // Boot
        public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui")) {
                // code to initialize the app by icon click
                fromService = false;
                MyApplication app = new MyApplication();
                app.enterEventDispatcher();
            } else {
                MyApplication app = new MyApplication();
                app.enterEventDispatcher();
            }
        }
    
        public MyApplication() {
            if (fromService) {
                _thread = new BackGroundThread(); // create a new separate thread
                _thread.start(); // start the thread
    
            } else {
                if (config.isShowUserInterface()) {
                    pushScreen(new LoginScreen());
                } else {
                    // what to do here?
                }
            }
        }
    }
    

    When the user clicks on the icon of the application and config.isShowUserInterface () = false in this case I'm not pushing any screen of the application. It is for me only IU lost Focus error.

    Any help will be appreciated.

    Thank you

    Look at acceptsForeground().  I think that you can simply return config.isShowUserInterface ().

  • Access to the applications of Builder Websheets

    Hello

    I want to give the developer role to one of our users, so it can develop a specific websheet of applications

    Problem is this setting a user as a developer still requires access to or another builder or sql application workshop

    I wouldn't give any of that, because they could access the application builder page and remove applications without any problem

    In the Web application sheet there is a button Builder, is possible to hide it somehow?

    I don't see any possibility to do, I tried with the chrome, definition of the element plugin: visibility: hidden and it works, only problem, is that I have no idea where to add this attribute to make it permanent

    Thank you!

    Hello

    To allow a developer to 'create' applications they need the privilege of Application Builder.

    I'm no expert with Websheets, but I'm sure that all 'development' is from the front-end of the application, so the user does not require access to the APEX server.

    If you have two options:

    (1) you will need configure a new application Websheet to this person whenever they need to reapply; OR

    (2) create a new area of work/drawing away applications, you don't want him to have access to and they have access to full development.

    Amanda.

  • Use the ADF security to grant access to the application

    Hello

    One of our customers has to move their forms ADF application. The customer also wants to implement SSO using Kerberos. I could implement the ADF to the application security.

    The Application has two types of users whose information is stored in the USERS table in the database-

    1. Users of the application (not a domain user)
    2. Active Directory/domain users.

    What the clients want to do, is that if the user belongs to the domain, while the user must be able to view the home page directly. If the user is not a domain user, then the login page must be displayed and the user must be authenticated before the redirection to the home page.

    The first part, i.e. to implement SSO for users in domain works. But I don't know exactly how to proceed with the Application users.

    Can I create a custom authenticator that connects to the database and authenticate users of the Application?

    Any suggestion and pointers will be helpful.

    Thanks and greetings

    Tinto

    You probably don't need to create the custom authenticator.

    WLS provides already ReadOnlySQLAuthenticator: Configuration of authentication - 11 g Release 1 (10.3.6) providers

    Define "control indicator" for two suppliers of "SUFFICIENT".

    I guess within the Web.XML you have something like:

    CLIENT-CERT

    ?

    WLS supports several methods of connection in the element for you can use something like:

    CLIENT-CERT, FORM

    Login

    errorPage

    (no doubt simpler is to configure the security of form based in the ADF Security Assistant and then manually add CLIENT-CERT in the web.xml file)

    Dario

  • question on "How to call a method once when starting the application"

    Hello everyone.

    I'm trying to implement that article "How to call a method once when you start the application" by Frank suggests.
    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_invoke_a_method


    Suppose I want to have a single entry point, so in my login.jpsx I have the below:
    <f:view beforePhase="#{login.onBeforePhase}">
    In the 'onBeforePhase' method, I have to pass the phaseEvent, since the signature is as follows:
    public void onBeforePhase(PhaseEvent phaseEvent)
    But how do I know the phaseEvent during the call to the login.onBeforePhase? How the call should be?

    Thank you very much!


    PS. I use jDev 11.1.2.1.0

    You must not pass something to this method, this method is called before each Phase except view restoration
    Just write logic as Frank suggested to the phase in which you want the code to run. You can get the PhaseId analogues

    PhaseId.RENDER_RESPONSE

    public void onBeforePhase(PhaseEvent phaseEvent) {// from Frank's doc
     //render response is called on an initial page request
      if(phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE){
    ... etc
    
  • Access to the applications of R12 error

    Hello
    EBS 12.0.4
    DB 10.2.0.3

    A particular user is not able to get the page of connection of EBS test1 (cannot display page), but able to get EBS login page on the other asks to test2 that is installed on the same server. Other users are able to connect to test1. Verified the intellectual property entry in etc/hosts, they are all ok, cleared cache on the client side. Can someone let me know how to get the question of evil.

    Thanks in advance

    If you can access other servers on the same machine and you can access this specific instance of other machines, it is nothing to do with the application and it is a question of specific machine.

    Please delete the browser cache and history and then check. And, if possible, use a different browser and test.

    Thank you
    Hussein

  • Creative cloud icon has disappeared off the coast of my office.  Now, I don't have access to the applications. Now, I don't see if my current CC files are up to date.

    Hello world

    For some reason, my CC (20141) icon has disappeared off the coast of my office.

    It doesn't seem to be anywhere else (Start menu, system files).

    Without this icon, I have access to my other Apps that I might need to download, or I can check to see if my current applications are up to date.

    Could someone tell me how to get this icon on my desktop it please?

    I use Windows 7 Professional OS, which is necessary for the College.

    Thank you

    Concerning

    Maureen (student)

    Hi Maureen,

    If you go to control panel > programs and features is it recognized as installed there?

    It normally should appear in your Start Menu. You may need to use this uninstaller: https://helpx.adobe.com/creative-cloud/help/uninstall-creative-cloud-desktop-app.html

    After which must be able to reinstall it from here: https://creative.adobe.com/products/creative-cloud

    Hope that helps,

    -Dave

  • Method Property set on the application class get

    Hi mates,

    Please help about this.

    I am self-taught on the peoplesoft application class.

    And I found that it is different from JAVA for property get method.

    Test cases, see the screenshot:

    http://note.Youdao.com/share/?ID=becfc6c74793a12e468d3f2b195a1816 & type = note

    When I create the class instance in record application peoplecode, messagebox, then the x property.

    then shows MessageBox (0, "", 0, 0, "herehere111") and the x is 1, stands for her running the get method, not run the set method and the value of z is not set at 222.

    How to call the set method?

    Reference on peoplebook:

    Set

    Syntax

    SetPropertyName StatementList End-Set

    Description

    Use the construction of the language during the implementation of the properties in an application class. All of the properties in an application class must be named uniquely. The new value for the property is available in the & parameter NewValue to the Set method.

    Note. You cannot create a property only. You can create only the get - set properties.

    Parameters

    The value PropertyName

    Specify the name of the property that you are implementing.

    StatementList

    Change the value of the property to be & NewValue.

    Returns

    None.

    Example of

    Set FruitCount &Fruitcount = &MyFruit[&NewValue].ActiveRowCount();

    End-Set;

    How the method to be called and the value & NewValue to pass?

    Appreciate it for any guide.

    Thank you.

    Set method is called when you assign a value to the property of the object.

    for example:

    & myFruitObj.FruitCount = 10;

  • Best method of communication between the Application LV

    Hello together,

    I'm looking for the best way of communication between two Applications LabVIEW. As VI is clear, I can use a queue or a global variable and so on.

    But what is the best, when I compile the screw later for DLLs or Applications. So far, we always use the TCP/IP Protocol, but I think that there must be a better way instead.

    So if someone has an idea - he is welcome.

    Thanks in advance

    Markus

    TRAXX wrote:

    What I don't like with TCP/IP you still need a second thread (looped) who manages the TCP/IP communication. I thought that there must be an easier way.

    I also thought that shared variables are always limited to a single application. Thanks for the ideas...

    This second loop is a loop that YOU control. If you go with shared variables you are a slave to what they can or cannot do. In addition, they work over TCP/IP is not out of the picture.

    Its your call.

    Ben

  • Apple TV is a bad product for the Canada - we have no access to the applications we

    as we are unable to download HBO now or appropriate streaming services...  Seems a waste of money right now...  Good experience of Apple TV for Canadians

    You realize that all this is governed by copyright agreements and restrictions of content provider, right?

  • A method that runs when an application is called in the foreground?

    Just back to Java after a year of Action Script only and trying of don't forget do not put "var" in front of my variables. In any case, I remember to do that just do not remember how. My application runs in the background, how do I run a power supply... uh... method every time that the application is in the foreground? I use a right headphone?

    Yes, that's correct.

  • How to restrict access to the service web application deployed on weblogic for user group only

    I built the web service application in jdevelopler 11.1.1.7. Their security policy applied in the web service of the default Oracle policy which is (policy: Wssp1.2 - 2007-Https-UsernameToken - Plain.xml)

    Now all want to access the web service application must provide the name of user and password in the header section of the SOAP request to meet the requirement of the policy.

    the following steps I'm trying to restrict access to the application of web service with a specific group of users among users of weblogic:

    Connect to the weblogic administration console

    Create user or group of users

    Click on the links of deployments

    Select your web service

    Click the Security tab

    Click the sub-tab political

    Choose your authorization provider in the menu drop-down (looks like by default)

    Choose Add Conditions-> Group-> Type in the name of the Group

    Finishing

    But access is always available for all weblogic users (IE users not in the group specified in the above security configuration). How can I restrict access to only authorized group? Any thing lacking in my approach?

    There is nothing wrong with the steps mentioned in the question. In addition, you must do the following

    At the time of the application deployment with regard to the security part, there is a list in the title of the question (which security template you want to use with this application?)

    You must select (Advanced: use a custom template that you have configured on the page of configuration of the Kingdom) a configuration mentioned in the question will be work

  • If I had to cancel my membership I would still be able to access the applications?

    If I cancel my subscription I would still be able to access the applications I already downloaded on my computer? Or I won't be able to use them? I thought I read somewhere that if you have cancelled, you would be able to always have access to the applications that you have downloaded through the cloud when you had the membership? Is this fair? Anyone know?

    Hi wharton89,

    You will continue to free member benefits creative cloud, and if you have saved your work on your computer, you will continue to have access to these files. Is no longer, you'll have access to creative cloud desktop applications or most of the services which are components of a creative cloud membership.

    If you purchased an annual individual membership plan and you cancel after the first 30 days, but before meeting the date of 12-month commitment, you will be charged 50% of the amount remaining on your contract.

    Kind regards

    Romit Sinha

Maybe you are looking for