Same trace,two results,why?

//.....................
trace(channelbtn[channellistnum+channelshownum]);//line1
programtween_y.onMotionStopped = function(){
trace(channelbtn[channellistnum+channelshownum]);//line2
//line1,trace right result,but line2 trace undefined,why???
"channelbtn[channellistnum+channelshownum]" is a button
object, "channellistnum" and "channelshownum" are two
numbers,they've been defined above line1,so line1 trace right
result,but why line2 trace undefined?what's the different between
these two function ways below:
1. function a(){}
2. a = function(){}
Thank you for reply.......

thank Osh_it,now i know where the problem is:
In AS2.0,function like this way need Delegate!!!!This is very
important,because the object is undefined in this function way.
programtween_y.onMotionStopped = function(){
trace(channelbtn[channellistnum+channelshownum]);//line2
so,we should use this function like this:
programtween_y.onMotionStopped = Delegate.create(this,aaa);
private function aaa(){
trace(channelbtn[channellistnum+channelshownum]);//line2
It's ok,now!!!

Similar Messages

  • Compare two results from the same table

    i have two results from the same table that i would like to compare. below is my query and the results i want to compare
    SELECT tblItemRoutingBOM.ItemRevID, tblItem.ItemID, tblItem.PartNum, tblItem.ItemName, tblItem.ManufacturerPartNum AS [Mfg Part#], tblItemRoutingBOM.Quantity
    FROM tblItemRouting
    INNER JOIN tblItemRoutingBOM ON tblItemRouting.ItemRoutingID = tblItemRoutingBOM.ItemRoutingID
    INNER JOIN tblItem ON tblItemRoutingBOM.ItemID = tblItem.ItemID
    WHERE tblItemRoutingBOM.ItemRevID in (61,70)
    as you can see i am returning two records using the where clause
    ItemRevID, ItemID, PartNum, ItemName, Manufacturer, Mfg Part#, Quantity
    61,121,331503,.233 Aluminum Sheet,,1
    70,121,331503,.233 Aluminum Sheet,,3
    now what i am looking for is to combine these two together into one row with the following added.  two columns for each QTY, QTY1 = 1 and QTY2 = 3 with a third column added that is the difference between the two QTY Diff = 2
    Any thoughts?

    Here are the two statements that i want to combine, results for each are attached
    SELECT tblItem.ItemID, Sum(tblItemRoutingBOM.Quantity) AS SumOfQuantity, tblItem.PartNum AS [Part #],
    tblItem.ItemName, tblManufacturer.ManufacturerName AS Manufacturer, tblItem.ManufacturerPartNum AS [Mfg Part#]
    FROM tblItemRouting
    INNER JOIN tblItemRoutingBOM ON tblItemRouting.ItemRoutingID = tblItemRoutingBOM.ItemRoutingID
    INNER JOIN tblItem ON tblItemRoutingBOM.ItemID = tblItem.ItemID
    INNER JOIN tblUnits ON tblItem.UnitID = tblUnits.UnitID
    LEFT JOIN tblManufacturer ON tblItem.ManufacturerID = tblManufacturer.ManufacturerID
    WHERE tblItemRoutingBOM.ItemRevID=61
    GROUP BY tblItem.ItemID,tblItem.PartNum,tblItem.ItemName,tblManufacturer.ManufacturerName,tblItem.ManufacturerPartNum
    SELECT tblItem.ItemID, Sum(tblItemRoutingBOM.Quantity) AS Quantity, tblItem.PartNum AS [Part #],
    tblItem.ItemName, tblManufacturer.ManufacturerName AS Manufacturer, tblItem.ManufacturerPartNum AS [Mfg Part#]
    FROM tblItemRouting
    INNER JOIN tblItemRoutingBOM ON tblItemRouting.ItemRoutingID = tblItemRoutingBOM.ItemRoutingID
    INNER JOIN tblItem ON tblItemRoutingBOM.ItemID = tblItem.ItemID
    INNER JOIN tblUnits ON tblItem.UnitID = tblUnits.UnitID
    LEFT JOIN tblManufacturer ON tblItem.ManufacturerID = tblManufacturer.ManufacturerID
    WHERE tblItemRoutingBOM.ItemRevID=70
    GROUP BY tblItem.ItemID,tblItem.PartNum,tblItem.ItemName,tblManufacturer.ManufacturerName,tblItem.ManufacturerPartNum
    114,11,55002,Pepsi Blue Cap,NULL,
    117,5,331501,Marigold Yellow For ABS,NULL,
    121,1,331503,.233 Aluminum Sheet,NULL,
    125,2,331504,Velvet Vinyl .008,NULL,
    114,33,55002,Pepsi Blue Cap,NULL,
    117,15,331501,Marigold Yellow For ABS,NULL,
    121,3,331503,.233 Aluminum Sheet,NULL,
    125,6,331504,Velvet Vinyl .008,NULL,
    my returned result should combine above with two extra columns (two extra columns because i have two results to combine)
    114, 11, 33, 22, 55002, Pepsi Blue Cap, NULL,
    117, 5, 15, 10, 331501, Marigold Yellow For ABS, NULL
    121,1, 3, 2, 331503, .233 Aluminum Sheet, NULL
    125, 2, 6, 4, 331504, Velvet Vinyl .008, NULL
    Columns go as such, ID, QTY1 (for 61), QTY2 (for 70), Diff (QTY1-QTY2), PartNum, ItemName, Mfg, Mfg Part#
    IF the results from one of those two are empty then i would see something like this
    114, 11, 0, 11, 55002, Pepsi Blue Cap, NULL,
    117, 5, 0, 5, 331501, Marigold Yellow For ABS, NULL
    121,1, 0, 1, 331503, .233 Aluminum Sheet, NULL
    125, 2, 0, 2, 331504, Velvet Vinyl .008, NULL

  • I have time machine saving onto two usb drives.  The backup is 4.6TB.  Each drive is 6TB.  Why is time machine only updating one drive?  (The other has been the same for two weeks.)

    I have time machine saving onto two usb drives. 
    The total size of the files being backed up is 4.6TB. 
    Each external USB drive is 6TB.   So I have 12 TB of space for Time Machine.
    Why is time machine only updating one USB drive?  (One drive has been the same for two weeks.)
    I have selected both drives in the Time Machine settings panel.
    My understanding was that it would do a full backup, and then incremental backups of changed files, getting rid of old copies as needed, and alternate between the two drives.
    But it looks like drive A has one complete backup, dated two weeks ago, and drive B is the only one getting action.
    There is a red icon on drive one that says the drive needs 120GB more space to do a backup -- which is strange since the whole backup set is only 4.6TB in size, and the drive is 6TB in size...

    You could try a clone instead.
    Clone  - Carbon Copy Cloner          (Often recommended as it has more features than some others)
    Clone – Data Backup
    Clone – Deja Vu
    Clone  - SuperDuper
    Clone - Synk
    Clone Software – 6 Applications Tested
    Time Machine Versus Clones and Archives
    Commonly Used Backup Methods

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • If column2 is same for two different column1 data

    I have a table say XYZ like this
    COLUMN1 COLUMN2
    A     B
    C     B
    N     X          
    HJ     X
    I want to print if column2 is same for two different column1 data
    I want to print that rowids
    Please help me in this

    That's the same as I thought, but then I realised that this might result in some false positive rows.
    What if column1 has also the same value for some of the rows in which column2 is the same?
    If the following is your data set, what rowid's should be displayed?
    row  column1 column2
      1        A       S
      2        B       S
      3        C       T
      4        C       T
      5        D       U
      6        D       U
      7        D       V
      8        E       W
      9        F       W
    10        F       W

  • SAPCL Having more than one DB2 use the same trace directory.

    Hello,
    Looking at the DBACOCKPIT SAP Collector settings panel, we have all of the DB2 subsystems that run in a given LPAR use the same trace directory.  (HFS path of trace directory.)
    In our case, that directory is /usr/sap/saposcol/traces.  This means that we have trace files called db2cl* from all of our alert routers running on an LPAR in the same directory.  It is a little confusing, but we can handle it.  The question I have is that there is a cmds.alr file in that same directory.  The contents of that file seem to change occasionally.  At times throughout the day, the file seems to be contain information related to the five alert routers using that trace directory.  Is it OK for the contents of this file to change?
    Another question I have is related to the sapcl file that is in this directory.  The timestamp on this file seems to change periodically.  Sometimes the file size changes.  Note 958252, the SAPCL FAQ says "The trace directory is required to save errors or trace files and to start the alert router. To start the alert router, the system loads the executable SAPCL from the database, saves it temporarily in the trace directory and starts it in USS."
    With 5 alert routers, sharing the same trace directory, you could end up with 5 sapcl executables that get changed around based on what a particular alert router needs.
    Would it be better to point each alert router to a different trace directory?
    Thanks,
    Ron Foster

    Hello,
    There are two configuration parameters in transaction DBACOCKPIT -> u201CSAP Collector Settingsu201D to determine the SAPCL directories.
    HFS path of collector:
    This is the directory, where the files u201CDBRM.db2cldbu201D and u201Csapdb2clu201D are located. The two files are used during installation of SAPCL and u201Ccopiedu201D into two targets:
    A) Linked into DB2 Load library to be used as the stored procedure SAPCL.
    B) Stored into a database table to be used as Alert Router.
    This directory is accessed during installation only. Not during runtime.
    HFS path of trace directory:
    This is the directory, where trace files are stored of the stored procedure SAPCL and the Alert Router. In addition, this is used during startup of the Alert Router. Startup of the Alert Router is done by the following steps:
    1. Unload the Alert Router executable out of the database table into the file u201Csapclu201D.
    2. Creating the Alert Router parameter file u201Ccmds.alru201D. E.g. it contains the SSID.
    3. The executable sapcl is started and the name of the Alert Router parameter file is used as the input parameter of sapcl to determine the behavior. E g.  /u/sapr3/s12run/trace/sapcl /u/sapr3/s12run/trace/cmds.alr
    To keep the input parameters files separate for each SSID, it is recommended to have a trace directory for each SSID. It is also recommended to have a trace directory for each DB2 member of a data sharing group. However, this is just a recommendation. Every time, an Alert Router is stared, the files u201Csapclu201D and u201Ccmds.alru201D are recreated and overwrite the existing files. After startup of the Alert Router, the two files are no more used.
    In the case, where you are using different patch levels or versions of SAPCL and you are using the same trace directory for all SSIDs, it is very likely, that you see different sizes of the file u201Csapclu201D. This is because different patch levels or versions of SAPCL have different sizes and you always see the file size of the most recent stared Alert Router.
    In case, that two Alert Routers are stared at the exactly same time, it could end up in problems.
    Here is an example of the contents of cmds.alr of a two way data sharing group with the SSIDs SGC1 and SGC2 with a shred directory /u/sapr3/jotrun:
    ssid=SGC1 sqlid=SAPJOT planname=CSAPCL FKTID=13 ACE=0 DBTRACE=0 TRACE=0 TRCDIR=/u/sapr3/jotrun/traceSGC1 GUID=4D0685A211780174E10080000A11C971
    ssid=SGC2 sqlid=SAPJOT planname=CSAPCL FKTID=13 ACE=0 DBTRACE=0 TRACE=0 TRCDIR=/u/sapr3/jotrun/traceSCG2 GUID=4D0685C411780174E10080000A11C971
    You can see, that almost all parameters are the same, except u201Cssidu201D and u201CTRCDIRu201D. TRCDIR come from the SAP Collector Settings parameter u201CHFS path of trace directoryu201D. Please note that there is not slash between u201Ctraceu201D and u201CSGCu201D. The directory name is u201CtraceSGC1u201D and u201CtraceSGC2u201D.
    Regards
        Dirk
    Dirk Nakott, IBM, DBACOCKPIT development

  • In iPad 1 ios 4 may have two ipad Apps the same from two accounts itunes

    In iPad 1 ios 4 may have two ipad Apps the same from two accounts itunes one free other paid account, hence one free App and another paid App the same App?

    If both accounts are authorised on your computer's iTunes (Store > Authorise This Computer) then you can download the books from both accounts to there (download the books from one account, then sign out of it via Store > Sign Out, log in with the other account via Store > Sign In and download the books from the other account), and sync them over to the iPad's iBooks app via the Books tab.
    Or you might be able to sign out of your account on the iPad by tapping on it Settings > Store and sign in with the other account and download the books from that account - I think that it should work, but it's not something that I've tried so I'm not 100% sure that it will

  • My mac, ipad and apple tv share the same itunes account.  Why do movies rented from itunes on my ipad or mac not show up in my apple tv?  is there a way to get them there?

    My mac, ipad and apple tv share the same itunes account.  Why do movies rented from itunes on my ipad or mac not show up in my apple tv?  is there a way to get them there?

    Rentals are one-time only downloads, they will not show on other devices/computers for redownloading.
    If you rent a film on your iPad or Apple TV then you can only watch it on that device. If you rent it on your Mac then you can move it from there to your iPhone or your Apple TV (if it's a first gen Apple TV) : FAQs about renting movies from the iTunes Store :
    If you rented the movie on your computer, you can move it to an iOS device or Apple TV (1st generation). To do this, connect the devices and sync using USB. When you move a rented movie from your computer, it will disappear from your computer’s iTunes library. You can move the movie between devices as much as you want, but you can only have it on one device at a time.
    If you rented the movie on your iOS device or Apple TV, you can’t move it to any other device.
    Renting and moving rentals from a computer : How to rent a movie from the iTunes Store on your computer.

  • How to add one edge in same page two times?

    Please help me for this i want to add same edge two time in page, one edge while onload and another also should load but it will show in popup. thanks in advance.

    Hi Kobe,
    Thanks for listening me.
    I agree 11g have some issues unlike 10g. I've tried the same by creating a measure rcount(1) and name it as Page in RPD. I just pulled column Page in pivot table section 'Pivot Table Prompts' it is working but this may not answer your requirements.
    I would suggest to use the column in Prompt and go by between operator to allow user to select the rows between.
    In the report make Page as prompted.
    If you are okay with this can look forward to tweak it further, like values in the prompt multiple of 5 or 10s some thing like that.
    let me know updates on the same.

  • How to arrive same day two difference prices for same material/customer

    how to arrive same day two difference prices for same material/customer.pls give the solution
    thanks in advance
    Aravinthan.K

    Hi
    This is possible through some careful customization
    In your condition table you need to bring the field PRICE LIST
    That is customer/ Material/ Price list
    That is customer  ABCD / Material X / Price list 01---Price is Rs 10
    That is customer  ABCD / Material X / Price list 02---Price is Rs 20
    The condition records to be maintained like this
    So same material and same customer with price list 01 price is Rs 10 and with  price list 02 price is Rs 20
    Now in sales order you will find  price list field in item details SALES B tab
    Through incompletion log you can make this field as an mandatory field
    Now in sales order same material and same customer according to the price lists different price is picked
    In img-sd-basic functions-Maintain Price-Relevant Master Data Fields--here you can define different price lists
    Regards
    Raja

  • I am Using Apple iPhone 4g 32gb and i have Updated to iOS 6.0 but in Maps i am not able to change the angle with two finger why so ?

    I am Using Apple iPhone 4g 32gb and i have Updated to iOS 6.0 but in Maps i am not able to change the angle with two finger why so ? I have also restored it but not getting

    I have an iPhone 4 also.  If you are referring to the flyover view, its unavailble for the iPhone4.  If you want to rotate the map, hold two fingers on the map for 2-3 seconds and rotate them in opposite directions.
    Hope this helps

  • Imput - Is it possible to have the same live edit result

    Is it possible to have the same live edit result with a xml
    fiel on client side than :
    http://www.peoplesdns.com/ajax/?edit=2
    Thank for your reply.

    No.
    OT

  • How can I get these two results in two different columns?

    SELECT COUNT(attr_id)
    FROM pv_attribute
    WHERE port_id = 322;
    SELECT COUNT(attr_id)
    FROM pv_attribute
    WHERE port_id = 323;
    How can I get these two results in two different columns?
    Thanks

    So Jens made a tiny mistake with the column name... shame you couldn't be bothered to research Pivoting so you could have corrected the mistake (possibly it was deliberate *{:-) ) and learnt something.
    with pv_attribute as (select 16123 attr_id, 322 port_id from dual union all
                          select 16123 attr_id, 322 port_id from dual union all
                          select 19223 attr_id, 322 port_id from dual union all
                          select 11193 attr_id, 323 port_id from dual union all
                          select 13163 attr_id, 323 port_id from dual)
    -- end of test data setup
    select sum(decode(port_id, 322, 1, 0)) cnt_322,
           sum(decode(port_id, 323, 1, 0)) cnt_323
    from   pv_attribute
    where  port_id in (322, 323)

  • HT204022 I have iPhoto, iOS, etc. all up to date.... however my iPad, iPhone, and Mac PhotoStreams all contain different pictures and aren't the same. Any ideas why? I'd rather not reset the whole thing if I don't have too.

    I have iPhoto, iOS, etc. all up to date.... however my iPad, iPhone, and Mac PhotoStreams all contain different pictures and aren't the same. Any ideas why? I'd rather not reset the whole thing if I don't have too.

    OK, restart in Safe Mode, this will clear some caches. It's possible one or more is corrupt. To restart in Safe Mode when you hear the start up tone hold down the Shift Key until you see a progress bar. Let it fully boot then restart normally and test.
    Also I am assuming you have checked Finder - Preferences  - General and see what boxes are checked in "Show these items on desktop." You can also mount an item in Disk Utility, simply highlight it and then look in the File menu for Mount.....

  • Two questions: Why is it made so difficult to simply download a library book and read it? More immediately important, I have DeepShadow 9781101181188 on my computer and cannot get Adobe Digital Editions to recognize or allow me to read it.

    Two questions: Why is it made so difficult to simply download a library book and read it? More immediately important, I have DeepShadow 9781101181188 on my computer and cannot get Adobe Digital Editions to recognize or allow me to read it.

    What is the error code ?

Maybe you are looking for