Advice about my application's structure please

My applications usually have the following structure
A top level main application and multiple child components all having a singleton for global varaibles.
I usually add listeners to the main to listen to events from the components and then do stuff. I was thinking, mayby it would be better to fire the events from the singleton instead and add listenerers to the componetns instead of the main app. This would allow the main application not the need to know what methods to call from the varius components if it hears an event?
What do you think?

Its usually best to keep components self-contained so they can take care of themselves, better for reuse.
That said, MVC is a powerful architecture, and to use a simple MVC pattern with custom events, see my Flex cookbook post on the topic:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postI d=11246
Later you could use a more formalized MVC architecture, like Mate, PureMVC, or Cairngorn:
http://www.asfusion.com/blog/entry/mate-flex-framework-in-public-alpha
http://puremvc.org/
http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm;jsessionid=54025FEE98DFA8FA07 66E808EAA5285F
If this post answers your question or helps, please mark it as such.

Similar Messages

  • Time Machine, Superdrive.   What about my applications? help please

    So, I want to do a fresh install of SL because I have noticed a slight decrease in performance on my MPB since installing it. I have tried a number of things and maybe this will help.
    My question is how do I backup my applications, including applications other than the standard mac applications, so they work after I wipe the HD? I have applications I have no idea where the CD keys are and I want to make sure I can use these afterwords.
    From what I hear, superdrive is a good solution. Will it allow me to use the applications it backed up after wiping my HD?
    Also, will wiping the HD possibly fix any issues I am having with the OS that could be effecting performance?

    sorry, yes I meant superduper. It was late. haha.
    Basically, I see the spinning wheel of death way more than I should. I have like 2 login items, hardly anything in my dock, repaired my start up disk, verified permissions, and hardly any clutter on my desktop.
    I have the late 2009 MBP with 4 gigs of ram. I see people with the 2 gig version of what I have and their applications load faster.

  • Advice about an external DVD drive

    Hi there,
    Pardon the basic questions, a computer genius I am not.
    I have a rather elderly iMac G4 running 10.4.11 and it has never been able to even see DVDs. I am facing necessary software upgrades which come in a DVD format. Is an external DVD drive what I get? Will my poor iMac see a DVD coming from an external drive? I have always found it annoying that I have the DVD player software but I can't use it.
    Note: if a solution contains advice about replacing my hard drive, please know that particular drama happened this summer when the original hard drive died. After much angst, my iMac is working well; I just need to be able to load software in a DVD format.
    thank you!
    suzy

    Yes an external DVD optical drive will work. The cost needs to be considered, is it worth it.
    You could opt to go the cheapest way possible; search Ebay on the PC side(since a high % are not as overall savvy as Mac users) look for the older Sony CDR burners, these were blue external enclosures which housed CDR burners. You can purchase modern DVDR player/burners cheaply now a days and install the optical drive into one of those Sony enclosures. The reason I suggest Sony is way back when they were expensive but well made and work to this day all the way to Leopard. You should be able to pick one up for $25.00 plus a good optical drive for less than $50.00
    BTW "necessary software upgrades" if you don't mind what are the upgrades and why only on DVD media? There are other ways to skin this cat.

  • Advice about switching to the mba

    Only recently moved from windows to a mac and I'm ready to go MBA already!
    I need some advice about the new MBA though please... Usually I look for reviews, youtube vids etc but can't find anything about the new MBA.
    I read stories about problems with the old MBA and wanted to hear from people that have the new version.
    I'm particularly worried about the stories of overheating and non-stop fan noises, taking ages to reboot etc (have these been rectified with the new MBA?).
    I currently have the 2ghz and it's pretty fast, love how quickly it switches on and off and I'd hate to loose that.
    Also, the MBA would become my main laptop as I couldn't possibly afford to keep both! Obviously I realise the MBA is not as powerful as the MacBook or the Pro but I'm not a heavy user, only mail, internet, youtube, itunes, ical, Office for Mac, some basic photo editing and rarely some light video editing.
    I would really appreciate any insight from current new MBA users, I know things are quite subjective (ie: I think my MacBook overheats very quickly but maybe to others this would be the norm) so I wouldn't bite your head off!
    sorry if this is the wrong place to post this... I couldn't find a more relevant category.

    I bought the 2nd generation MBA (released last November). I purposely held off on buying the first generation because of the complaints about the overheating etc. I follow a lot of Mac forums and can tell you that any problems you heard about have been resolved.
    There are always a few people that have issues with their machine - not matter what generation it is - but I would recommend the new versions to anybody that wants one.
    Fan noise is very subjective. I use my MBA a for Audio Recording and production - so my fan comes on pretty fast on mine - as the software I use maxes out the processor right from the start. And here is the best way I can sum it up:
    If I take the MBA with fan on into a dead quiet room - yes - I can hear the fan - and to me it sounds like blowing air out of your mouth to cool down hot food....
    If I take that MBA with the fan on into the kitchen where the fridge is running - I cannot hear the MBA anymore. Or if the dishwasher is on, or the clothes dryer etc.....
    I can only hear it is a dead quiet recording room. Subjective as it may be - it's perfectly acceptable to me.
    I have almost never had to restart my MBA - usually only when a software update requires it - I just sleep my machine. OSX is rock solid. my MBA takes 27 seconds to load - every time. If i do need to shut down - it takes like 2 or 3 seconds.
    I paid top dollar for mine when it was released and even though I could get it for $1000 cheaper now - I don't regret the money I spent. The solid MBA build and solid OSX are worth a lot to me.
    If there's any more questions just post them and I'd be happy to answer.

  • Advice on splitting an application amongst projects; please.

    Advice on splitting an application amongst projects; please.
    Hi jDev Team. Please advise on how you envisioned a developer (or developer team) to split up a large scale enterprise application amongst projects. For example, a typical accounting system with AR, AP, Inventory, and Order Entry. I would be inclined to have each of these modules as a jDev project in the same workspace, but the problem is that you really need to further segment the project for the various tiers.
    On the other hand, is it possible to setup different workspaces and somehow relate the workspaces together, because its really one big intermingled application, where the end user needs simultaneous access.
    Please advise. TIA.
    -Nat

    Right now we just use workspaces to contain all projects for various tiers. We're working on a more hierarchial structure for the future, but for now we just put it all into one workspace.
    Rob

  • Need advice about making a application log over every task succsessfully done to a target

    Hi!!!
    I need an advice about how to make an application log over every task succsessfully done to a target with an unique ID.
    I have developed an application with several tasks on the menu which have to be done in a certain order to program and test a target board,
    and the user want a log about which tasks are done to the target, so it is easy to know which step is next on the menu (It is a very routinebased  job).
    Do somebody have any good advice on how this can be done in a cleaver way ?
    Best regards,
    A

    Also, now that I have an ethernet cable, if I go ahead and use migration assistant to transfer the account from my old computer, will Logic only be available through the new account I have set up on my new computer? Would I have to log out of one account and into the other and back and forth to access the different files/programs? Any help would be much appreciated

  • Please give me advice about....what is the best virus guard in store and is virus worked in iPhone (my English is not good sorry)

    Please give me advice about....what is the best virus guard in store and is virus worked in iPhone (my English is not good sorry)

    If you are gettin spammed via e-mail or text that your IOS has a virus (usually says call some 800 number) then these are a scam - do NOT contact these crooks

  • Please advice about fast reading/writing

    Hi All,
    I am building a custom system for Photoshop CS6 and Lightroom 4, I know this is not a PS forum but I think the hardware experts are here.
    The components I have already selected are:
    i7-3930k
    ASUS P9X79 PRO
    64GB RAM (GSKILL)
    WD Caviar Black 1TB
    Since I have enough RAM the scratch disk is not something to worry about, after reading this article about SSDs for PS:
    http://helpx.adobe.com/photoshop/kb/optimize-performance-photoshop-cs4-cs5.html#main_Solid _state_disks
    I think a SSD is useful only when starting the applications (having them in the SSD), which is not important for me (I do it twice or three times per day). What I would like to do (and is the matter of this post) is to open and save my large pictures (700MB to 1+ GB) as kickly as posibble, is the Caviar Black a good choice or should I consider a SSD? What about a WD velociraptor? Also, I would appreciate advice about other options.
    The last custom build I did was probably 8 years ago so I am not up to date with the hardware technology, I have learned a lot reading this great forum :-).
    Thank you,
    William Gonzales

    William,
    I use Photoshop CS5 and Bridge a lot and care particularly about how fast the PC can read since this dramatically impacts how fast you can process and rank lots of shots.
    Bottom line...
    Suggest in addition to whatever your boot drive is you configure a 2xRAID 0 7200rpm drive setup for your data. You have an extremely capable CPU and lots of RAM, so your disk speed is definitely a bottleneck.
    Another alternative, although more expensive and quite a bit smaller would be one of the latest, fastest SSDs that can finally deliver on the write side. (i.e. Samsung 840 Pro and its competitors). This would be a secondary drive to whatever you have for your boot drive.
    Another suggestion, is make sure you have a video card with good 2D speed. That is get one that can move lots of data; this spec. (Memory Bandwidth, often in GB/sec) is often buried since gaming and 3D features (cores, shading, memory size, etc.) are most important for most users. My video card, a GTX 480 has a memory bandwidth of 177.4 GB/sec, but probably any card with at least 80 GB/sec will probably work very well with your apps.
    Regards,
    Jim

  • Not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0

    Hi all,
    DB:11.2.0.3.0
    EBS:12.1.3
    O/S: Sun Solaris SPARC 64 bits
    I am not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0 after the forms upgrade 10.1.2.3.0 as per note:Upgrading OracleAS 10g Forms and Reports to 10.1.2.3 (437878.1)
    Java/jre upgraded to 1.7.0.45 and JAR files regenerated(without force option). Able to opne forms without any issues.
    A)
    $ORACLE_HOME/bin/frmcmp help=y
    FRM-91500: Unable to start/complete the build.
    B)
    $ORACLE_HOME/bin/rwrun ?|grep Release
    Report Builder: Release 10.1.2.3.0 - Production on Thu Nov
    28 14:20:45 2013
    Is this an issue? Could anyone please share the fix if faced the similar issue earlier.
    Thank You for your time
    Regards,

    Hi Hussein,
    You mean reboot the solaris server and then start database and applications services. We have two databases running on this solaris server.
    DBWR Trace file shows:
    Read of datafile '+ASMDG002/test1/datafile/system.823.828585081' (fno 1) header failed with ORA-01206
    Rereading datafile 1 header failed with ORA-01206
    V10 STYLE FILE HEADER:
            Compatibility Vsn = 186646528=0xb200000
            Db ID=0=0x0, Db Name='TEST1'
            Activation ID=0=0x0
            Control Seq=31739=0x7bfb, File size=230400=0x38400
            File Number=1, Blksiz=8192, File Type=3 DATA
    Tablespace #0 - SYSTEM  rel_fn:1
    Creation   at   scn: 0x0000.00000004 04/27/2000 23:14:44
    Backup taken at scn: 0x0001.db8e5a1a 04/17/2010 04:16:14 thread:1
    reset logs count:0x316351ab scn: 0x0938.0b32c3b1
    prev reset logs count:0x31279a4c scn: 0x0938.08469022
    recovered at 11/28/2013 19:43:22
    status:0x2004 root dba:0x00c38235 chkpt cnt: 364108 ctl cnt:364107
    begin-hot-backup file size: 230400
    Checkpointed at scn:  0x0938.0cb9fe5a 11/28/2013 15:04:52
    thread:1 rba:(0x132.49a43.10)
    enabled  threads:  01000000 00000000 00000000 00000000 00000000 00000000
    Hot Backup end marker scn: 0x0000.00000000
    aux_file is NOT DEFINED
    Plugged readony: NO
    Plugin scnscn: 0x0000.00000000
    Plugin resetlogs scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign creation scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign checkpoint scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Online move state: 0
    DDE rules only execution for: ORA 1110
    ----- START Event Driven Actions Dump ----
    ---- END Event Driven Actions Dump ----
    ----- START DDE Actions Dump -----
    Executing SYNC actions
    ----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
    Successfully dispatched
    ----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK'
    (SUCCESS, 0 csec) -----
    Executing ASYNC actions
    ----- END DDE Actions Dump (total 0 csec) -----
    ORA-01186: file 1 failed verification tests
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1:
    '+ASMDG002/test1/datafile/system.823.828585081'
    ORA-01206: file is not part of this database - wrong
    database id
    Thanks,

  • Advice about using the laptop with closed lid while connected to external display

    Hello all HP forum members!
    I have an ENVY 17 with Win8.1 64bit, a great laptop, but I need an advice about using it while connected via HDMI cable to an external display (TV).
    When I play heavy 3D games, the computer produces more heat than usual (of course this is normal), but doing so with closed lid, could this harm the  display in some way, as a result of the heat?
    Thanks!

    Hi @VVel ,
    Thank you for visiting the HP Support Forums and Welcome. It is a great site for information and questions. I have looked into your issue about your HP ENVY 17 Notebook and issue with keeping the Notebook on while closing the lid. Here is a document on changing the Power option.
    Control Panel - Power Options - upper left - Choose what closing the lid does.
    Change Plan Settings and also check Advanced Settings. Make sure you do this for both battery and power.
    Hope this helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Why do about 6 applications open when I turn on since Loin installed?

    After installing Lion, when I turn on my computer there are about 6 applications open onto the dest top - Why? Can someone please point me to where to make the necessary changes to stop it?

    Also
    System Prefs > General > Check the "Restore windows when Quitting and re-opening Apps" isn't selected.

  • I have restored my iphone and its saying time remaining is about 24 hours can you please help. can i switch the phone back on ? please help ??? :(

    after there being an error in trying to update the software it said i have to restore my phone which i have done but says time remaining is about 24 hours . can you please help ? i just want to switch my phone on again .

    Hello lyndsey1430,
    From what I can gather, it sounds like you're having issues restoring your device. After reviewing your post, I have located an article that can help in this situation. It contains helpful advice concerning recovery mode:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Use recovery mode
    You might need to use recovery mode to restore your device in these cases:
    iTunes doesn't recognize your device or says it's in recovery mode.
    You see the Apple logo onscreen for several minutes with no progress bar.
    You see the Connect to iTunes screen.
    Learn what to do if you see the progress bar onscreen for several minutes.
    To put your device into recovery mode, follow these steps:
    Turn off your device and leave it off.
    Plug in your device's USB cable to a computer with iTunes. 
    Hold down the Home button on your device as you connect the USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.
    When you see this screen, release the Home button. If you don't see this screen, try steps 1 through 3 again. 
    When your device is connected, iTunes will open. You'll see a message saying that iTunes has detected an iPhone, iPad, or iPod touch in recovery mode.
    Use iTunes to restore your device. Restoring in recovery mode will erase your device. If you previously synced with iTunes or iCloud, you might be able to restore from your backup.
    Get more help
    Learn what to do if you don't see your device in iTunes for OS X, or in iTunes for Windows.
    If you put your device into recovery mode by mistake, restart it. Or you can wait 15 minutes and your device will exit recovery mode by itself.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Get information about Weblogic Application Server knowing only port number.

    Hi.
    What kind of information about Weblogic Application Server can I get if I know only port which web application is deployed?
    If it is true, how can I get it?

    1, If you want a opportunity run your code at server instance started or restarted, please see:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs81/config_xml/StartupClass.html
    2, or you can package your code in a standard web application, deploy into the server instance.
    a servlet required to start you service.

  • Need advice about best characterset for XMLDB

    Hi,
    Oracle 9.2.0.5 Windows 2000
    Please, give me an advice about best character set
    configuration for XML DB.
    During installation Oracle istallator suggests
    charset =AL32UTF8 for multilingual data and ncharset=
    AL16UTF16.
    Is it good settings for database, which will be
    used for usual multilingual data and XML DB ?
    Thanks,
    Viacheslav

    Yes, we strongly recommend the use of AL32UTF8 for XML DB.

  • Where to keep new OA page(RN.XML in oracle Application Directory structure?

    I have created a new XML region which I want to use in page through Personalization.
    where should I copy this file into Application Directory structure?
    I am using this command to import -
    import C:\OA\jdevhome\jdev\myprojects\xbol\oracle\apps\ota\admin\enrollment\webui -jdk13 -mmddir "C:\OA\jdevhome\jdev\myhtml\OA_HTML\jrad" -rootdir C:\OA\jdevhome\jdev\myprojects -validate -username apps -password apps -dbconnection "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = xxxas.com)(Port = 0000)))(CONNECT_DATA = (SID = xxx)(SERVER = DEDICATED)))"

    I imported the XML file but when I am trying to refer the xml file through personalization by giving path
    'xbol\oracle\apps\ota\admin\enrollment\webui\XbolLearnerSearchRN'
    It is erroring out saying
    'Extends: Invalid value: xbol\oracle\apps\ota\admin\enrollment\webui\XbolLearnerSearchRN: the reference may not exist. (oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = xbol\oracle\apps\ota\admin\enrollment\webui\XbolLearnerSearchRN, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.)'
    My requirment is - I want to use this xml file in FlexLayout for the personalization.
    Please Guide me, where I am missing.

Maybe you are looking for

  • About line chart view

    1 how to set color of the axis. 2 how to remove the frame of the legend. 3 how to show the legend close to the end of the lines respectively. THANKS. Message was edited by: user535870

  • Finding the width of a JPEG loaded into a movie clip

    I will be loading a page of bio information. Next to the person's photo (photos will vary in width) I want to put a column of buttons about 20 pixels to the right of the photo. So after I load the photo into an empty movie clip, I'm trying to get the

  • Unable to send fax from pdf in XI

    How can I send a fax from a pdf in XI?

  • Mixed phone numbers and names after sinc N9 and ov...

    I have problem with my contact list. After i synchonised my previous N79 with N9, everything was fine. AFter adding new contacts to the new phone i wanted to synchronise it with ovi, i did so but it made completely mess with all my contacts. I cant s

  • Callback function module

    Hi Experts, What are callback function modules? Why do we use them and in what scenarios are we required to use them? What is their purpose and how are they helpful? Can anybody explain with an example. Regards, Sangeeta.