listening in the main application for event from custom component

I have a component that custom im using an identifier.  I watch videos and tutorials on how to pass variables between applications and custom components. the problem im having is that tutorials or explanation you put the event on the custom component and then it refers to a function in the main application.

Is a fair way to listen on the main application at the event begins? Ive been tempting for hours and I know there must be something im missing may not be so difficult. any help, I would be really grateful.

Thank you

Miguel

Hello

The following example has been done as a simple demonstration of States, but the connection (state1) component, is a simple custom event which is sent by the ok button on the connection, the event could be extended to transfer the information to connect to the main application, in this case because the login screen is always public vars or fields of the box would be available for the main application anyway.

http://gumbo.flashhub.NET/Wizard/ source included

David.

Tags: Flex

Similar Questions

  • The main Application of loading and unloading component

    I want to load in my main application 2 components. Right now I have load with this:

    < components: loadProject id = "loadPrj" visible = "false" click = "loadPrj_clickHandler (event)" red = horizontalCenter '7' = "0" / > "

    and I put only visible to true. Inside this component, there is a canvas.

    But is there another way to do it using a class AS file? I want to load/unload on click, not only the value true or false visible.

    You might miss the import instructions.  Code hinting will offer classes

    that you have not imported.

  • Is it possible to have a common accessible file location for the main application in the sandbox and its extension app plugin

    I'm trying to launch an app on the app store for mac. The bundle of the main application and everything inside it is on sandbox.

    The main application Bundle identifier is com.xxx.core.app . The identifier for the internal Plugin Finder Extension application Bundle is com.xxx.core.app.extensions .

    Now the problem is the extension inner finder is also available in sand and trying to read a file written by the main application.

    The main application writes the file location depending on mac OS X, for example temp/var/folder/jv11743453495593/T/com.xxx.core.app

    But the internal Plugins try to read/var/folder/jv11743453495593/T/com.xxx.core.app/extensions

    Because of the different bundle identifiers, they have different containers.

    Can someone let me know how to limit the same application and its plugins to the same folder location. Does perform a work around for this problem.

    Hello yuktikapahwa,

    See the Sandbox Apple Guide under the ApplicationDirectory group container

    You must create a group that your container can access. I'm not 100% certain that this will work with extensions of Finder, but it seems the most logical place to start.

  • Best practices with regard to adding list SkinnablePopUp from the main application file from A Mobile

    Hello

    I want to display a SkinnablePopUp when the user presses the back key when the current view is the first view to ask if he wants to quit.

    Logic (check if the key pressed is the previous key & & the current view is the first) is in the main file of the application and if these two conditions are true, then the exit() method is called.

    I want to show the confirmation popup. Can I move everything in the first pane view mxml or is - it OK to instantiate the SkinnablePopUp in the main application file?

    Thank you.

    its probably best to do principal in the view

    using mvc or mvp you would hold a script to a minimum in sight, just inject the presenter

  • Execution of function in the main Application component

    Hi all.

    I have my main.mxml application, with a component inside.  The component is called < ns1:record / > wearing the id "rec".

    This component has a function named doConnect(event:MouseEvent) inside.

    Now, I want to be able to add an event listener to a button on the Main.mxml that will perform the function inside the item when you click on it.

    I managed to add an event listener to the Main.mxml that triggers a function which is held in the Main.mxml when a button clicked inside the element is clicked.

    I did it using this code.

                <ns1:record id="rec" x="9" y="6" camera="{camera}" microphone="{microphone}" creationComplete="makeEvent()">
                </ns1:record>

     

                //Event listener
                public function makeEvent():void {
                    rec.backbtn.addEventListener(MouseEvent.CLICK,swapstate);
                }
                protected function swapstate(event:MouseEvent):void {
                    viewstack1.selectedChild=config;
                }

    No matter what I try you can't get do this the other way around.

    I need help what - by clicking on a button in the Main.mxml to perform a function within the Record element.

    If anyone can help that would be great!

    Thanks in advance.

    Hi djh88ukwb,

    From your post if I understand you correctly, you want to listen for an event by calling record when a main mxml button is clicked... on this basis

    hypothesis, I propose you a solution...


    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" onCreationComplete () ">"

        
    private void onButtonClicked(event:MouseEvent):void
    {
    Rec.swapstate (Event);
    }
    ]]>



    public void swapstate(event:MouseEvent):void {}
    viewstack1.selectedChild = config;
    }

    Please try this and let me know...

    Thank you

    Jean Claude

  • Receiver 907 cod invalid after UpdateJad on the main application and library

    Hello world

    To distribute my BlackBerry live app (OTA) in the past, I would pack my main application, MyApp, and package a linked library application, MyLibrary, containing the main application resources separately.  I then copy the JAD/COD in demand for library files in the same directory as the JAD/COD of the main application files and run UpdateJad.exe on MyApp.jad and MyLibrary.jad.  At this point, I would download all the files on my web server (with the correct .htaccess file) and I could download my application on devices without problem.

    It was some time ago (one or two years).  Now, I'm updating my app and try to do it again.  However, I noticed that when I have my main application, Eclipse generates files JAD/COD for BOTH the application of the library AND the main application in the same directory of the main project of the application (deliverables > Web > 7.1.0).)  I don't think what happened in the past.  This directory contains now:

    • COD for MyApp files
    • Files of COD to MyLibrary
    • MyApp.jad
    • MyLibrary.jad
    • MyApp_full.jad (I don't remember this being produced in the past, either)

    Now, I tried to download my application in several ways, and each way gives an invalid "907 COD: error

    • Download the generated directory-is (and trying to download MyApp.jad AND MyApp_full.jad)
    • UpdateJad.exe running on MyApp.jad and MyLibrary.jad
    • UpdateJad.exe running on MyApp_full.jad and MyLibrary.jad
    • Only copies files from the generated directory MyApp and combining them into a new directory with the generated files to the separate project MyLibrary, packed (and UpdateJad.exe running on MyApp.jad and MyLibrary.jad)
    • etc... I tried practically all combinations.

    But nothing works!  However, if I install the application via MyApp.alx via BlackBerry Desktop Manager, it works.  Anyone know what could be going on here?

    Thank you!

    Hi peterstrange,

    I think I solved the problem.  I realized that I had problems downloading files on my Web server over the last two days with my standard FTP clients.  Once I downloaded the JAD/COD files to another web server, the download and the installation worked without problem (using MyApp_full.jad).

    I appreciate your prompt response to help!

  • I've lost the main screen for photoshop! I don't know what I did, but now when I open photoshop, I get only the tool bar at the top and a little on the sides. How can I go back to the normal screen?

    I've lost the main screen for photoshop! I don't know what I did, but now when I open photoshop, I get only the tool bar at the top and a little on the sides. How can I go back to the normal screen?

    Hi renaeb,

    Would you go to the Windows menu in Photoshop and check the option framework application from the drop-down list.

    Concerning

    Sarika

  • Is the main application "placement?"

    I'm working on a login / my request timeout article. It works very well where clicking on the person of a connection box if they are inactive, but I can't seem to get the application to recognize activities. I am trying to register for these events, but they do not seem to work.

    The main application is always the scene? Something like:
    public void initApp(): void {}
    If (stage! = null)
    {
    stage.addEventListener (MouseEvent.MOUSE_MOVE, handleUserActivity);
    stage.addEventListener (MouseEvent.CLICK, handleUserActivity);
    stage.addEventListener (KeyboardEvent.KEY_DOWN, handleUserActivity);
    }
    }

    The scene must be non-null when the applicationComplete event is dispatched, so try:

    TS

  • What is the main reason for the use of SERIALLY_REUSABLE in your package?

    Hi Experts,

    What is the main reason for the use of SERIALLY_REUSABLE in your package?

    At first glance, the most popular reason seems that some developers forget to close cursors. Therefore, it is a good way to close automatically when your code is stopped during the same session.

    Second, if your business rules require that package variables still need to put the SERIALLY_REUSABLE default values is good for this.

    So, what's your reason?

    Thanks in advance.

    From http://docs.oracle.com/database/121/LNPLS/packages.htm#LNPLS99924:

    After the unit of work (call Server) a SERIALLY_REUSABLE complete package, Oracle database performs the following operations:

    • Closes all open cursors.
    • No free memory (for example, memory for collection and long VARCHAR2 variables)
    • Returns the instantiation of the package to the collection of reusable instantiations kept for this package.

    Explicit cursors in SERIALLY_REUSABLE packages:

    http://docs.Oracle.com/database/121/LNPLS/packages.htm#LNPLS99923

    I would not support using SERIALLY_REUSABLE instead of programming and the cursor's lifecycle management practices.

    > What is the main reason for the use of SERIALLY_REUSABLE in your package?

    If your package uses large amounts of memory in the State, especially in a multiuser environment heavy wherever the memory usage adds up and memory will not clean until the session is closed and the State is not held beyond the call to the package, then there's your use case.

  • What are the original applications for the iPhone 6 s. I had to sync to my iPhone 3g to my new 6s in order to maintain my contacts. can someone please send screenshots of an iPhone running 6s with applications shown. I need pages outside the home page.

    What are the original applications for the iPhone 6 s. I had to sync to my iPhone 3g to my new 6s in order to maintain my contacts. Unfortunately, I lost a lot of these new applications. can someone please send screenshots of an iPhone running 6s with applications shown. I need pages other than the home page. Thank you!

    'Stock' apps are part of the installation of iOS and cannot be removed, so there is nothing to verify or prove.

    When you move to a new phone, just need restoring your old backup phone and compatible applications will be synchronized to the new.

  • I installed iLivid and now FoxTab media but cannot listen to the live football for a reason any.

    Need help with streaming pls

    I installed iLivid and now FoxTab media but cannot listen to the live football for a reason, get really really bored, I wud appreciate all help pls, thanx

    I installed iLivid and now FoxTab media but cannot listen to the live football for a reason, get really really bored, I wud appreciate all help pls, thanx

    Hello

    You must contact that third party software developers and check for known issues or updates for compatibility to the version of Windows you are using.

    Concerning

  • Can I disable the F1 key for help from Adobe? I want to use the F1 key to open a script that I wrote. I don't want the F1 key to open the Adobe help.

    Can I disable the F1 key for help from Adobe? I want to use the F1 key to open a script that I wrote. I don't want the F1 key to open the Adobe help.

    Edition > keyboard shortcuts

  • How to stop the bridge.exe active as to install the new application for example. Flash CC?

    How to stop the bridge.exe active as to install the new application for example. Flash CC? Help, please?

    I can not install any new demand every time.

    Please see:

    http://helpx.Adobe.com/Creative-Suite/KB/error-installation-cannot-continue-bridge.html

    Kind regards

    Ashutosh

  • How can I talk to an application for assistance from Adobe?

    How to talk to an application for assistance from adobe?

    Hi captn skully,

    You can contact Adobe customer (http://helpx.adobe.com/contact.html ) or join our chat support at http://adobe.ly/yxj0t6

    Our support number is: http://www.adobe.com/uk/elicensing/licensemanagement/alm/contact.html

  • Set the main application of labels preloader

    Hello

    Is there a way to change the label on the main application preloader that says "Loading" and "init"?

    Thank you.

    Yes it was!

    It is not easy to see.

    Thank you!!!

Maybe you are looking for

  • Bluetooth audio compression with W1 chip?

    Hello I recently ordered the new iPhone 7 more and was wondering about different options for headphones, now that I can not connect the iPhone to power at the same time, I plug my headphones. I know that there are already third-party links, which sho

  • Bookmark icons (favicon) most are blank FF4.0 - 6.0

    Why are all of a sudden all my blank Favorites, (for imported most of IE) instead of display the sites by default favicon. It was ok before I'd rather have it loaded automatically for all existing bookmarks (in addition, fixed once can that be stored

  • How can I delete megabackup and mackeeper to my iMac?

    I found MacKeeper, MegaBackup, and Justcloud on my new iMac and I don't need them, how to remove?

  • The right side F4140 printing line

    When I print something on my printer HP Deskjet F4140 on my Mac computer (running 10.9.4) I sort of dotted line on the right side of the page.  See photo. A few times the points are longer, sometimes (as in this picture) they are shorter.  But the st

  • Synchronization between desktop and mobile Outlook

    I would like a place to work from and synchronize with my laptops and desktop.   It was a challenge that I travel a lot.  There are 2 of us who would use a calendar and tasks, maybe 3.   We want to use Outlook and share contacts and calendar as well.