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

Tags: Flex

Similar Questions

  • The best practices with only 4 cards network network

    I'm used to esx with fiber channel without configuration.  This will be my first experience connecting esx to an iscsi san.

    I just have 4 network cards on the server and wonder what is the best practice.

    I think that 2 of the 4 network cards will be dedicated to the San for HA.

    But the other 2 types of throw me a loop for.

    I know I want to console, vmotion and trunk for VLANs, but I don't think I can have all 3 on the same vswitch?

    Am I stuck with having the console and vmotion on a network card and the trunk of the other?  IE - no failover?

    Is there anyway to get console, vmotion and trunk at all exist together?

    Thank you in advance.

    If it were an election, I vote for Josh26

    Just a few additions to his recommendation:

    vSwitch0:

    2 natachasery connected to the ports of the trunk on the pSwitch (vmnic0, vmnic1)

    Service - VLANxxx - Portgroup (vmnic0, vmnic1 active standby) Console

    VMkernel Portgroup for vMotion - VLANyyy - (vmnic0 vmnic1 standby, active)

    Machine Virtual Network - VLANzzz - (vmnic0, vmnic1 active standby)

    vSwitch1:

    2 natachasery (vmnic2, vmnic3)

    VMkKernel Portgroup for iSCSI

    With the above configuration you separate iSCSI traffic, what is most important.

    SC and the VM network share a teddy and vMotion has its dedicated Teddy.

    Everything is redundant.

    André

  • Best practices with streams WCCP of WAAS

    Hello

    I have a module WAAS SRE 910 in 2911 router that intercepts packets this router with WCCP.

    All packets are received by the external interface (gi 0/2, connected to a switch with port configured in vlan WCCP) and are sent back to the router via the internal interface (IG 1/0 connected directly to the router):

    WAAS # sh interface IG 1/0

    Internet address: 10.0.1.1

    Subnet mask: 255.255.255.0

    State of the admin: to the top

    Operating status: running

    Maximum transfer unit size: 1500

    Entry errors: 0

    Entry packets dropped: 0

    Packets received: 20631

    Output errors: 0

    Output packets dropped: 0

    Load interval: 30

    Input rate: 239 bps, 0 packets/s

    Output: 3270892 bps, 592 packets/s

    Packets sent: 110062

    Auto-negotiation: on

    Full Duplex: Yes

    Speed: 1000 Mbit/s

    WAAS # sh interface 2/0 gi

    Internet address: 10.0.2.1

    Subnet mask: 255.255.255.0

    State of the admin: to the top

    Operating status: running

    Maximum transfer unit size: 1500

    Entry errors: 0

    Entry packets dropped: 0

    Packets received: 86558

    Output errors: 0

    Output packets dropped: 0

    Load interval: 30

    Input rate: 2519130 bps, 579 packets/s

    Output rate: 3431 bps, 2 packets/sec

    Packets sent: 1580

    Auto-negotiation: on

    Full Duplex: Yes

    Speed: 100 Mbps

    The default route configured in module WAAS is 0.0.0.0/0 to 10.0.1.254 (interface of the router).

    It would be better that the packets leave module WAAS of the external interface (instead of the internal interface)?

    Is there a best practice recommended by Cisco on this?

    Thank you.

    Stéphane

    Hi Stephane,

    That's right, internal interface means SM1/0.

    The best way is to have traffic at the start of the internal interface module so that we are sure, it hits the redirect exclude statement and that we do not have the crest of the loops because WCCP.

    Kind regards

    Nicolas

  • Best practices with the virtual directories CFIDE and Jakarta

    Right now I'm going through implementation of our new virtualized ColdFusion 10 Application/Web/database server, and I noticed that during installation, since I had 'Connect all IIS sites' selected, he created maps of handler for each, but each also gave a virtual directory for "CFIDE" and "Jakarta".

    Best practices guides told to restrict access to the "adminapi', 'administrator', 'componentutils' and 'wizards' records under the CFIDE directory, but is - it safe to simply remove these virtual directories (and leave the mappings Manager) so that sites can always treat the types of file associated with CF?

    1 the site we have is the default localhost is linked to, I felt I would just let these virtual directories, since to reach CF ACP this server, we'd have to goto: http://localhost/CFIDE/administrator/index.cfm

    I know that if a file from a site needs to access things like file CFScripts, CF will automatically take the virtual directory is there and create < script > tags use a src of "/ CFIDE/scripts" (which if I remove this virtual directory, would break the functionality, but assuming that I do not use this technology to other sites) It removes "CFIDE" and "Jakarta" is going to hurt anything?

    Look at the Guide of ColdFusion 9 Lockdown that Pete Freitag wrote.  A large part of it still applies to the 10 ColdFusion, especially security aspects of IIS.  There is an article on the creation of filters of aggregate demand which allows you to block access to most (or all) of the subdirectories in CFIDE.

    Regarding the Jakarta virtual directory, you need this one.  That's what allows the IIS connector to function.

    -Carl V.

  • Best practices with two natachasery

    Hello

    I'll put up a small environment Vi3 with two HP DL380 G5 machines ESX and NFS on NetApp for storage. This must be installed in a field of laboratory and serve as both a learning platform Vi3, we, the admins and a test environment for some of our customers run their own virtual machines with the test software and others. For this purpose, safety is a higher priority than redundancy, roughly equal performance. What is a decent way to implement the two natachasery for this configuration?

    vSwitch0 and pNIC1:

    -VMkernel (vMotion and NFS)

    -Console service

    vSwitch1 and pNIC2:

    -VM network

    This would obviously no redundancy (not counting the vMotion between hosts) but separate VM and non - VM traffic. Is there anything else I should be concerned?

    Thanks in advance,

    Daniel

    Hi Daniel,.

    Available seems very well, simply create a trade.

    (Depends on the load, you might want to consider making another Nic dual or quad). I have 2 natachasery for virtual machines and 2 for NFS...

    Here is a great link to the blog created by Texiwill: (best practices for up to 8 NIC explained)

    It was useful for me (thanks Texiwill..!)

    http://www.astroarch.com/wiki/index.php/Blog_Roll#Cisco_Subnet_-_Blue_Gears_-_Virtual_Networking

    Alex

  • What are the best practices for a new employee to learn inside the instance of their business of Eloqua as efficiently as possible?

    We have companies everything changed at some point in our lives. And we all go through the process in the first weeks, where you feel new and are just trying to figure out how not to get lost on your way in the mornings.

    On top of that, trying to familiarize yourself with your new company Eloqua instance can be a daunting task, especially if it's a large organization.

    What are the best practices for new employees to learn as efficiently and effectively as possible?

    I am in this situation right now. Moved to a much larger organization. It is a huge task trying to understand all the ins and outs not only society, but also of the eloqua instance, especially when she is complex with many points of integration. I find that most of the learning happens when I really go do the work. I spent a ton of time going through the programs, documentation, integrations, etc., but after awhile, it's all just words on a page and not absorbed.

    The biggest thing that I recommend is to learn how and why things are made the way they are currently, ask lots of questions, don't assume not that things work the same as they did with your previous employer.

    Download some base in place level benchmarks to demonstrate additional improvement.

    Make a list of tasks in the long term. As a new pair of eyes, make a list of things you'd like to improve.

  • Best practices for handling logic conditional dialogue/popup in the ADF?

    Here's the scenario:

    I have a page that shows a popup programmatically in a method of bean support. The popup asking the user a yes / no question and subsequent logical path is determined by their response. However, if the popup is visible or not in the first place is conditional. In addition, there is an additional logic in the original method, apart from the logic of popup, that must be met.

    The problem with this is that the ADF seems to spin off the popup in another thread and prevents the execution of logic in the original method at the same time, while you wait for the response from the user. However, the desired effect is that the program stops until the user has answered the question in the context menu.

    I was not able to understand in an elegant way to make this happen. Ideally, I think that the solution is to encapsulate the logic that occurs after the popup is displayed (or not shown) in the original method and call it from the popup action listener if the popup is displayed (if not call it the original method of). However, the logic should be encapsulated requires the use of some local variables that have been put forward for the popup to appear. There is no way to get these values to the popup action listener method to pass them on to the encapsulated logic (aside from the creation of global static variables in the bean, which seems to be a bad solution).

    Another idea I had was to get the logic ' show/do not see the popup' workflow. However, it seems that for every single popup would make the really complicated workflow.

    Is there a 'best practice' recommended to handle this situation? It must be a common problem, and it seems that I will talk all wrong.

    However, the desired effect is that the program stops until the user has answered the question in the context menu.

    This will not happen in any web environment, including ADF.

    You will have different events for each life cycle:

    1 - opening popup: popupFetchListener event

    2 - Click on OK, Cancel buttons: DialogListener event

    3 - Press the Esc button: popupCancelledEvent

    You can share data between these events on pageFlowScope, or viewScope.

    But if you use the ADF BC, you might be better to use transient attributes on the objects in view.

  • Added additional icons on the main screen

    Hey.

    I was wondering how to add additional icons to the main screen which calls in my application and limitations with this stuff. Limitation on the number of icons of an application, what kind of parameters can be passed in.

    Best regards.

    Each of the entry points serve a different function? If Yes, then there is no way to program hide the icon; It will be either hidden (module system) or visible.

    You can use the ApplicationManager to launch your application and use some value/info you must distinguish what entry point to run.

  • The list of all the names of files in a directory

    Hello everyone,

    I need to write a script in PL/SQL (oracle 10g) that lists all the names of files in a specific directory on a client computer and import the files into the database (xml files). After you import the file, they must be removed.

    I was looking for a solution for this because I've never met a challenge like this.
    What I found was that I could use the procedure dbms_backup_restore.searchfiles of the SYS schema.
    Now, I need to know how this procedure works. There is very little documentation available.
    Can I give the procedure to a folder name on my customer's computer that contains xml files and let the procedure from the list of these files?

    Can anyone help me please with this. I have no idea.

    Thanks in advance.
    Kind regards
    Mariane

    Stored procedures generally are running on the database server, so they can access only files that are visible on the database server. Unless you have a rather unconventional configuration where your server has mounted the directory of the client in question, no code that runs on the database server will be able to access the files on your client system.

    Is there a client application that runs on the computer client connection to the database server? If Yes, this client application could handle some file manipulation is necessary?

    Justin

  • E4200 with Win 7 - could not connect to the sharing of files on the USB storage device

    Hi, I tried several disks now, but am mainly interested in getting my Iomega 1 TB drive to work, but none of the 3 I tried to do. None of the USB drives I had when buying this router on the list of "approved" ridiculously short which is of course not noticed when buying the router, but the discs are recognized, I can FTP to one of them (Filezilla), format, create to-DOS, etc. via the web interface... the only thing that does not seem to work is to map the created actions. The error obtained net use is 'System error 1231' giving in 'Map network drive', 'Windows cannot access\\192.168.1.1' with 0x800704cf error code. I get what I pass credentials or not. Please advise, external storage has been the main reason that I bought this router and I need to know if I should return it. Thank you

    I know that sounds totally absurd given that FTP and what - not worked, but I swapped the USB cable I was using between readers and the router, and presto, it worked. I been in this business a lot of time and work with Cisco equipment all the time, so I know how ridiculous, this sounds like a solution, and perhaps in the context of permutation that cable thing happened I can't remember since I was a package 6 deep at the time... but it works now... now, if I can get just the AVI 1080 p files to stream to Xbox 360 without the video do rough I will be gold... but that's another thread. Thank you all.

  • Listed twice in the Solution Explorer, files exists once in the same folder.

    Running Win 7 with updates April 2010, I found, at any time in recent weeks, that sometimes when I copy and paste files, two lists of object appear identical to one another, when there must be a.  They have the same name, sometimes they are adjacent, other times there is a space between the two, as shown below.  Here, I just saved and renamed one or two items in the list (or combined items have been messed with since I have already saved/renamed them) and they would have been auto-triés, but it's weird that precisely two articles have been doubled, but not more.

    For now, I don't know how reproducible it is, but it took place after that it recharges.

    Hello

    Use a good anti-virus software and scan your computer for Trojans.

    Download the software from this link to remove all the duplicate computer files

    http://www.Moleskinsoft.com/

  • The folder list is not the WIndows shortcut files

    Hello

    Why the 'Folder list' vi does not have the Windows shortcut files? Short WIndows files have an extension of "*.lnk", I'm using Labview 2011 SP1 on a WIndows XP Professional computer, the shortcut files on a mapped network drive.  I can find the files of shortcut if an open one window cmd and use the dir command.

    A potential problem is that you might be looking at the wrong place. A shortcut to a file appears in the list of files, and a shortcut to a directory appears in the list of directories. However (at least LV2011) shortcuts to directories that don't exist - as a disconnected network drive - as highlighted in the list of files.

    Mike...

  • Problem with Audio when it is loaded on the main Clip

    Hi, I have this problem with a clip containing audio. I'm doing a website.

    The home.swf is the main element and when I want to go to the 'Audio' this audio.swf charge in home.swf , that the problem is that once it has loaded it plays the audio. The mp3s are inside audio.swf, it is not streaming. When I play just audio.swf by himself, it sounds good, but if it is loaded within home.swf it doesn't.

    I hope you can help me!

    Thanks in advance.

    If you are using as2, in audio.swf, whenever you have:

    var whateverS:Sound = new Sound();

    use

    var whateverS:Sound = new Sound (this);

  • Best practices with the sliders with loops

    I have the following code:

    Declare
    
        CURSOR c_contacts_cursor
        IS
          SELECT OUTLET_CODE,
            OUTLET_NAME,
            CONTACT_NAME,
            MOBILE_NO,
            ALT_NO,
            ADDRESS1,
            ADDRESS2,
            CITY,
            POSTCODE,
            EMAIL
          FROM SYNC_CONTACTS
          WHERE (source      = 'W' OR SOURCE = 'T') AND SURVIVAL_FLAG = 'Y';
    
        TYPE temp_string IS TABLE OF VARCHAR2 (2000);
            
        V_OUTLET_CODE  temp_string;
        V_OUTLET_NAME  temp_string;
        V_CONTACT_NAME temp_string;
        V_MOBILE_NO    temp_string;
        V_ALT_NO       temp_string;
        V_ADDRESS1     temp_string;
        V_ADDRESS2     temp_string;
        V_CITY         temp_string;
        V_POSTCODE     temp_string;
        V_EMAIL        temp_string;
           
    BEGIN
    
        OPEN c_contacts_cursor;
        FETCH c_contacts_cursor BULK COLLECT INTO
        V_OUTLET_CODE,
        V_OUTLET_NAME,
        V_CONTACT_NAME,
        V_MOBILE_NO,
        V_ALT_NO,
        V_ADDRESS1,
        V_ADDRESS2,
        V_CITY,
        V_POSTCODE,
        V_EMAIL;
        CLOSE c_contacts_cursor;
    
        FOR indx IN 1 .. V_OUTLET_CODE.count
        LOOP
          --xecutable statements on V_OUTLET_CODE(indx) and the like
    
        END LOOP;
    End;
    
    

    I used the above structure at length in many functions and procedures of all associated with an application and works very well. However, I began to review my code and I thought he might be better way to do it. One of the methods I've found is cursor for loop: http://www.techonthenet.com/oracle/loops/cursor_for.php

    and http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/cursor_for_loop_statement.htm#LNPLS1155

    I'm trying to understand the advantages and disadvantages of each method. I get the following (rating my approach is, and cursor for loop is B

    (1) A is faster because it uses in BULK COLLECT IN as opposed to B which is implicitly opens, fetch a row and close each round loop.

    (2) A is a bit messy, a lot more code as opposed to B which is readable, ranger.

    First of all, I would like to know, if my conclusions are correct or not?

    Second, what other differences might be between the two?

    Third, is there another approach, that I'm not aware? Or what improvement could be applied to my approach, if there is?

    Hawk333 wrote:

    Yes, I did. Executable statements are most HTTP POST and PUT request that write in MongoDB on a platform that does not write in BULK. So I have to write one record per HTTP request.

    Then pass PL/SQL to run multipe HTTP put and recorded at the same time. In which case manual removal bulk buys you no performance gain and zero scalability.

    Use DBMS_PARALLEL_EXECUTE to chunk the workload. Execute each thread (parallel work process) using a standard FOR cursor loop (for example for loop in(select...) end of loop; c...) --and inside the loop, make HTTP calls.

  • best practices with managed bean

    Hi, I have 7 jsf who listaschoice 4 and the check box use all the same.

    the difference is that when executing the button action, going to run another one, now I have one for the 7 jsf bean and the only thing that has changed is the action method of the button, I recommend, I say use each jsf by bean

    Well, use, you can run pl/sql procedures, but the question is why?

    ADF is not shapes. They are different.

    If you want to keep your logic in pl/sql, then apex might be a better choice.

    ADF is more for modern web applications. You have not dedicated connections that are necessary for most pl/sql logical basis.

    The next thing is that you should not put the pl/sql directly from a bean since it is a part that belongs to the model layer in MVC architecture. Do, if you call pl/sql, you create a method of the application module, expose this method in the client interface and call the method of the bean.

    Samples can be found here http://adfpractice-fedor.blogspot.de/2013/01/working-with-plsql-procedures-in-adf-bc.html and http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    Timo

Maybe you are looking for