One Listener for multiple things?

Is is OK to use on listener for multiple events on the same object?
I have this for a FLV component and it seems to work. Is that legit?
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
    trace("End of this video!!!!");
myVideo.addEventListener("complete", listenerObject);
listenerObject.stateChange = function(eventObject:Object):Void {
    trace("stateChange just occurd!!!");
myVideo.addEventListener("stateChange", listenerObject);
Thanks a lot for any info!!!

Yup no problem. However I would group my listener object properties close together.
listenerObject.complete=function(e:Event){
// blah blah
listenObject.progress=function(e:Event){
// blah blah blah
And so on. If they end up separated you most likely will forget over the course of time and then when you come back you might delete the object after you use it for one event and forget that it has others.

Similar Messages

  • Use 1 listener for multiple database in a server

    hi guys,
    just want to check whether this is the right way to configure my Listener.ORA . I am using 1 listener.ora to listen for incoming request connection from remote client. There are multiple databases installed in a server.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )sorry i am reading about it so did not install another database to test out. Just thinking in the line that it mention that the list of SID is refering to the multiple database that is installed in a server and i am using 1 listener.
    Please further advice.

    Shivananda Rao wrote:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )Please use as above. You can have one listener for multiple databases.right right so it the pattern goes like this:
    SID_LIST_LISTENER =
         (SID_LIST =
              (SID_DESC =
              (GLOBAL_DBNAME = AAAA)
              (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
              (SID_NAME = AAAA)
              (SID_DESC =
              (GLOBAL_DBNAME = BBBB)
              (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
              (SID_NAME = BBBB)
         )thanks !

  • One TPV for multiple Countries

    Hi Experts,
    Could you pls share experirnce/knowledge around having one TPV for multiple countries together. The scenario is like below:
    1. There are mutiple Countries in Central America which are small islands for whom we need to roll out the Travel and Expense Solution.
    2. The Company code is only one which contains employees from all these Countries.
    Could you tell us how can we do the setup. Should we create one TPV at the company code level. OR should we rather use some other criteria for selecting the TPV maybe at the Personnel area or Personnel Sub Area level.
    Your help is much appreciated.
    Regards,
    Vijay

    Hi Kiron,
    These things I am aware about too. My real question is if I create only one TPV for the company code and assign the Country of the Company code then what issues would this cause. To name a few pls see below.
    1) The domestic Country would always be the Company code Country so would be treated as Domestic Country and show on the Form also as domestic Country even for the employees who are from other Countries.
    2) There are setting which SAP allows differently for Domestic and International like per diem, miles cumulations. So these necessarily have to be kept as same even though local laws are different in all these countries as Domestic is only the Company code Country.
    So I need detailed analysis of what impact I will have by having only one TPV as against making many TPV like one for each Country by using some other parameter like Personnel area/Personnel sub area etc.
    Appreciate your help!
    Regards,
    Vijay

  • Can i install itunes multiple times on one computer for multiple users?

    Can i install itunes multiple times on one computer for multiple users?

    Like most applications you only need to install it once for it to be available to all users. (That said it is possible to install an application and only make it available to the current user, but that's rarely needed.)
    tt2

  • How to create one delivery for multiple sales order

    Hi!! Friends,
    Can some one explain the steps to be followed in creating one delivery for multiple sales order in SAP SD.
    Regards
    AKASH
    Message was edited by:
            AKASH TAMBI

    Hi.,
                  You can combine different orders in to one delivery ,But for the customer Order combination should be checked in  the sales area data of the shipping tab,we can combine orders but the ship to party,Route,Inco terms,Shipping date,shipping point should be same,you can do in T.code VL04 & VL10
    REWARD if helpfull
    Thanks & Regards
    Narayana

  • How to create one TO for multiple TRs

    Dear All,
    how to create one TO for multiple TRs, kindly suggest me
    Regards,
    balu

    As for your question: it is discussed in sAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
    Sorry I misunderstood your question.
    The above mentioned solution won't create one single TO from multiple TR.
    Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM

  • One invoice for multiple deliveries

    Hi Gurus,
    Can any one tell how can i create one invoice for multiple deliveries.
    Regards,
    Vinod

    one invoice for multiple delivers we can do in vf04
    we can do in vf04
    reward points if it is help ful
    Thanks
    mubeen
    Edited by: mahammad mubeen on Mar 5, 2008 10:02 AM

  • One cheque for multiple vendors

    hi,
    is it possible to generate one cheque for multiple vendors ?
    cheque will be sent to bank and bank will deposit the amounts into vendor banks.
    Can you anybody help me?
    regards,
    kalyan

    Hi
    Yes. you can do it 
    First transfer the amount to bank and from there bank will transfer the amount to respective vendors through ther banks.
    Go for implementing automatic payment programme according to your client reqyuirement. Check  TCode F110 which is master transaction for APP.  Check at TCode F110-Environment-maintain Config.....
    Cheers
    Srinivas

  • One lockbox for multiple company codes

    Is it possible to have one lockbox for multiple company codes?

    No, I don't think so. Lockbox is 1:1 for a Company Code.
    You configure Lockbox for a Company Code.
    You can use one of the 2 available Lockbox user exits (not sure which) to write a piece of code that searches invoices against the customer posted to different company codes. You will have to have the intercompany setups.
    You may find an OSS notes for intercompany clearing.
    Hope this helps!

  • One delivery for multiple STO's

    Folks,
    I have multiple STO's for the same ship-to (plant). Items due for shipping would need to be combined into 1 delivery and not 1 delivery per STO.
    Would this be possible? And if yes, how?
    Thanks,
    MZ

    Hi ,
    Yes , We can create one delivery for multiple PO's .
    Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
    Select the STO's and click on background tab. Then it creates the log
    Select the item again and press shift +F4
    It will gives the log inforamation for the STO's and select the item and press on documents tab.
    It will creates only one Delivery for all the STO's.
    Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
    then press on " post goods issue "
    Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
    Only one document will be posted for all the STO's
    Regards,
    Usha.

  • One OCS for multiple Company´s ???

    Hello,
    It´s possible to install multiple "areas" on one OCS? We want to provide a OCS for our customers. They shouldn´t see other caledars or adress-book. Only ther own "area".
    KR
    Mathias

    Hi ,
    Yes , We can create one delivery for multiple PO's .
    Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
    Select the STO's and click on background tab. Then it creates the log
    Select the item again and press shift +F4
    It will gives the log inforamation for the STO's and select the item and press on documents tab.
    It will creates only one Delivery for all the STO's.
    Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
    then press on " post goods issue "
    Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
    Only one document will be posted for all the STO's
    Regards,
    Usha.

  • One inventory for multiple ORACLE_HOMEs ?

    RDBMS version:11.2, 10.2
    Platform : AIX
    In one server , we are going to install multiple ORACLE_HOMEs (both 10.2 and 11.2). I have been asked to configure separate inventory for each ORACLE_HOME (each inventory within its own ORACLE_HOME). But i came across OTN posts which advices one inventory for all ORACLE_HOMEs .
    1. How can i create 1 inventory for all ORACLE_HOMEs . Is it by specifying an inventory directory outside all ORACLE_HOMEs in OUI when you do the very first installation ?
    2. Which one is more professional : one inventory for each ORACLE_HOME or one inventory for all ORACLE_HOMEs ?

    When installing Oracle software for the first time, the OUI will create a "global" inventory under $ORACLE_BASE.
    Depending on you OS, to locate this inventory look at "/etc/oraInst.loc" (AIX+Others) or "/var/opt/oracle/oraInst.loc" (Linux+others).
    You can add/remove Oracle homes from this inventory by using OUI or command line ./runInstaller.
    Each Oracle home may also contain an "$ORACLE_HOME/oraInst.loc" file.
    HTH
    PS: +"One inventory for multiple ORACLE_HOME is a bad practice"+ -- Untrue. Perhaps only for those that don't know how to use it.
    :p

  • Shall I use one datasource for multiple connection pool?

    Hi,
    I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
    Thanks with regards
    Suresh

    No. If its transactions across multiple databases you should use different datasources.

  • How to schedule one report for multiple company code?

    How you can schedule reports in BW 3.5? Suppose I need to schedule one report for multiple company code, how can you do that and notify the users? I do not want to send multiple emails to the same user if the report runs for 20 times (for 20 different companies).
    points are given for ASAP replies.
    Thanks in advance
    Peter

    Dear Peter,
    Try to restrict the Company Code with  those 20 values and schedule.
    Regards,
    Ramkumar.

  • Using one library for multiple computers and accounts (not store accounts)

    Okay, we currently have four macs in the house. One was recently bought: i7 iMac (late 2009), another is dying: (mid 2005 iMac), another is going somewhere else: (late 2006 iMac) and another is a laptop: C2D MBP (late 2008). We might add another computer into the mix some time later.
    Anyway, what I want to do is have one iTunes library which all of the computers can access (even guest's/friend's computers). We have a Time Capsule, and as I have heard one can make the TC the HDD for the iTunes library, I thought it best for it to be there.
    The only thing is, how can each computer (and the possible multiple accounts) each access the same library, without duplicating and messing anything up? Is that possible? If it is too hard for multiple computers to do this, I would still want the (late 2009) iMac to be able to use the same library for the two accounts on it.
    Thanks.

    Make sure everything you want to share is on the centralized drive (music, video, and books, but if any of you have mobile devices, keep the apps on your local drive). Mount the drive on your computer. (Remember, from now on you must do this before starting iTunes.) If iTunes isn't running, start it now.
    At the moment iTunes thinks the library is on the local computer and has all the music on it so that has to be changed. Click on Music in the left window pane, select all, and delete. This deletes all the music from the library and, if you choose, from the computer too. (Until you are sure this set-up is to your liking, don't delete the music from the drive.) Now go to Preferences and select the Advanced tab. Set iTunes to look at the music folder on your shared drive. And finally, select File>Add to Library to repopulate your iTunes library. This could take a while if you have a large music collection.
    Since you changed the music location, anything that is added to one person's library will be saved onto the shared drive so it isn't too much of a hassle to manually add music. You'll have to rebuild playlists which is a minor hassle but it’s a one time deal.

Maybe you are looking for