Label must be an Identifier and Expecting identifier before rightbrace?

Hi guys, i've become stuck, i'm trying to populate a list box with xml titles can you look at my code and see why i'm getting said errors (see title)
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
var xml:XML;
function onLoaded(e:Event):void
          xml = new XML(e.target.data);
          var il:XMLList= xml.channel.item;
          for (var i:uint=0; i<il.length(); i++)
                    lb.addItem({data:il.title.text()[i],
                              label:il.title.text()[i]}):
loader.load(new URLRequest ("http://www.skysports.com/rss/0,20514,12433,00.xml") );

you have a typo:
  label:il.title.text()[i]}):
ends with a full colon, and should be a semi-colon.

Similar Messages

  • Identifying and non-identifying relationships

    Hello, can some expert out there explain; what are identifying and non-identifying relationships in detail. An example will be much more helpful to understand the concepts. Thanks.

    I believe the different is:
    - identifying relationship means the child table has the parent table's primary key as part of its primary key;
    - non-identifying means that the child table has its own primary key and the parent's key is a separate column.
    Example:
    DEPT
    Deptno Number Primary Key
    Dname Varchar2(30)
    Identifying relationship with DEPT
    EMP
    Deptno Number Primary Key
    Seqno Number Primary Key
    Ename Varchar2(30)
    Non-identifying relationship with DEPT
    EMP
    Empno Number Primary Key
    Ename Varchar2(30)
    Deptno Number
    The advantage of non-identifying relationships we don't have to change the primary key when the employee moves from one department to another.
    Cheers, APC
    Cheers, APC

  • Surrogate identifier and Business identifier on Dimensions

    I understand that a surrogate key is useful to do loads/merges data on dimensions
    without affecting natural keys on these operations and to save space on fact tables.
    However beyond from this, I miss understanding about the two concepts above.
    Since in the doc is write: "Every level must have two identifiers: a surrogate identifier and a business identifier." -> Oracle® Warehouse Builder User's Guide
    10g Release 2 (10.2) -> 4 Defining Dimensional Objects
    1 - Why do I need obligatory a surrogate identifier on OWB10r2 ?
    2 - Either do I need specify the same surrogate key in each dimension level
    or ever level must be your own surrogate key ?
    3 - What would be the dimension behavior without them ? Moreover couldn't I have
    the same behavior using business identifier instead ?
    Thank you

    Right.
    However, what do you mean about "attributes that are on the lowest level of a hierarchy" ? This means high cardinality ? (A kind of Unique Key/PK ?)
    So, see this sample (originated from products table's Sales History sample schema )
    prod_id.prod_name........prod_subcategory..prod_category.supplier_id.min_price
    ........5.gurfield& murks...trousers - women....women....................170......137.02
    ......10.gurfield& murks...trousers - women....women....................170......155.93
    ......15.coin pocket twi....trousers and jeans..girls..........................30........12.47
    ......20.and 2 crosscour..shirts - boys...........boys.........................83........13.36
    ......25.and 2 crosscour..shirts - boys...........boys.........................83........13.36
    ......30.and 2 crosscour..shirts - boys...........boys.........................83........13.36
    ......35.kahala pleated ...shorts - men...........men........................125........24.48
    What would be the business identifiers ? (suppler_id ?) If yes, it isn't UK. Or aren't there business identifier here ?
    Now suppose that prod_id be surrogate key, ok ? What I undestand about OWB10g, it would put new keys on this table for every level from dimension
    Look the dimension:
    CREATE DIMENSION products_dim
         LEVEL product           IS (products.prod_id)
         LEVEL subcategory      IS (products.prod_subcategory)
         LEVEL category          IS (products.prod_category)
         HIERARCHY prod_rollup (
              product          CHILD OF
              subcategory      CHILD OF
              category
         ATTRIBUTE product DETERMINES
    (products.prod_name, products.prod_desc,
    prod_weight_class, prod_unit_of_measure,
    prod_pack_size,prod_status, prod_list_price, prod_min_price)
         ATTRIBUTE subcategory DETERMINES
    (prod_subcategory, prod_subcat_desc)
         ATTRIBUTE category DETERMINES
    (prod_category, prod_cat_desc)
    The table will look like:
    SQL> desc products
    Name
    PROD_ID_PROD_ID
    prod_name
    prod_desc
    PROD_SUBCATEGORY_PROD_ID
    prod_subcategory
    prod_subcat_desc
    PROD_CATEGORY_PROD_ID
    prod_category
    prod_cat_desc
    prod_weight_class
    prod_unit_of_measure
    prod_pack_size
    Why OWB do that ?
    Thank you very much for your assistance and you patience
    Marcelo Sinni

  • 1078: Label must be a simple identifier.

    I am trying to access the value of variable (which is written process function of Loc class in as file ) in text box, in my fla file I am trying to access that var action:int , but it is showing an error
    1078: Label must be a simple identifier.
    this is my code
    var loc:Loc = new Loc();
    myTxt.text=Loc.process.action:int;

    Loc:  public class Loc extends MovieClip
    process: is public function in Loc class
    action : is var in process function and its deta type is int
    Trying to display the valu of  action:int in text box 

  • Array: Label must be a simple identifier

    Hi,
    I'm getting the "Label must be a simple identifier" when trying to add to my array, any ideas why?
    thanks,
    // var roundOne:     set outside of function on main timeline
    // var allRoundWinners:Array ;    is declared outside of the function on main timeline
    // both reside where all the code is created.. frame 1 -> layer "actions".
    Here is the code with the problem? Am I spelling/doing something wrong?
    Line: 974   if(roundOne!="Blank"){
    Line: 975       allRoundWinners.push(roundOne):
    Line: 976    }
    Line: 975   1078: Label must be a simple identifier.

    I think it is because you have colon - not semicolon at the end of line:
    allRoundWinners.push(roundOne):
    Should be:
    allRoundWinners.push(roundOne);

  • Drag and drop to target simple errors, expecting identifier?

    im creating a drag and drop. moving a guitarest name to a target e.g draging a movieclip called slash to a dynamic text box called box_slash this is my code and i get 2 stupid errors but have been up all night and cant figure it out!
    flash cs5 actionscript 3, is this code for actionscript3 i found the base for it here: http://edutechwiki.unige.ch/en/Flash_drag_and_drop_tutorial any help would be incredible as it for an assignment and im new to flash
    var hits = 0;
    // Register mouse event functions
    slash.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    slash.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    clapton.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    clapton.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    hendrix.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    hendix.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    // Define a mouse down handler (user is dragging)
    function mouseDownHandler(evt:MouseEvent):void {
              var object = evt.target;
              // we should limit dragging to the area inside the canvas
              object.startDrag();
    function mouseUpHandler(evt:MouseEvent):void {
              var obj = evt.target;
              // obj.dropTarget will give us the reference to the shape of
              // the object over which we dropped the circle.
              var target = obj.dropTarget;
              // If the target object exists the we ask the test_match function
              // to compare moved obj and target where it was dropped.
              if (target != null)
                        test_match(target, obj);
              obj.stopDrag();
    function test_match(target,obj) {
              // test if either one of the four pairs match
              if ( (target == box_slash && obj == slash) ||
                 (target == box_clapton && obj == clapton) ||
                   (target == box_hendrix && obj == hendrix) || )
                        // we got a hit
                        hits = hits+1;
                        textField.text = "Correct! :)";
                        // make the object transparent
                        obj.alpha = 0.5;
                        // kill its event listeners - object can't be moved anymore
                        obj.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
                        obj.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
                        // Test if we are done
                        if (hits == 3)
                                  textField.text = "Well Done";
              else
                        textField.text = "wrong! :(";
    the errors are: i have highlighted the lines
    Scene 1, Layer 'Actions', Frame 1, Line 39
    1084: Syntax error: expecting rightparen before leftbrace.
    Scene 1, Layer 'Actions', Frame 1, Line 38
    1084: Syntax error: expecting identifier before rightparen.

    Thankyou very much that does get rid of that error now i get
    Scene 1, Layer 'Actions', Frame 1, Line 42
    1120: Access of undefined property textField.
    Scene 1, Layer 'Actions', Frame 1, Line 51
    1120: Access of undefined property textField.
    Scene 1, Layer 'Actions', Frame 1, Line 56
    1120: Access of undefined property textField.
    now im sure this is simple but im as im sure you have figured out im a complete noob to flash
    textField.text = "Correct! :)";
      textField.text = "Well Done";
    textField.text = "wrong! :(";
    is this something to do with an instance name?

  • Hi, im getting an error message, "expected identifier"  and another one, "expected expression" when i try a c   program in xcode

    hi, im getting an error message, "expected identifier"  and another one, "expected expression" when i try a c   program in xcode

    You have errors in your C code. If you want anyone to be able to help you, you need to post the code. You also should tell us the version of Xcode you're using and the type of Xcode project you created for the C program.

  • What is the best app for identifying and removing duplicates from iPhoto Libraries/Pictures?

    I have five iPhoto Libraries (original, default merged, etc.)  I've tried using iPhoto Library Manager, but I seem to be digging a deeper hole.  Also, question about the 15,000 faces:  Are these taking up space on my hard drive?  I gather I cannot easily remove them from libraries.  Taking photos at concerts, sporting events, etc. just creates more faces in iPhoto;  frankly, I could do without ANY FACE DETECTION!

    These applications will identify and help remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    DeCloner - $19.95 - can find duplicates in iPhoto Libraries or in folders on the HD.
    DupliFinder - $7 - shows which events the photos are in.
    iPhoto AppleScript to Remove Duplicates - Free
    PhotoDedupo - $4.99 (App Store) -  this app has a "similar" search feature which is like PhotoSweeper's bitmap comparison.  It found all duplicates
    Duplicate Cleaner for iPhoto - free - was able to recognize the duplicated HDR and normal files from an iPhone shooting in HDR
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: iphoto has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but there are only twp apps that detected the iPhone HDR and normal photos as being duplicates:  PhotoSweeper and Duplicate Cleaner for iPhoto.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have different file names.
    iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates.  IMO it's a must have tool if using iPhoto.

  • Iphone Carrier Search Buggy?  Takes 20 minutes to identify and connect?

    I work, live, and travel in Europe. My iphone is from T-Mobile netherlands - and I have another that is a US iphone (travel a lot). The most annoying thing about the phone is landing in a new country (travel 4-5 countries a week) and have to wait 20 minutes or longer in some instances for the Iphone to identify and connect to a new carrier. Also - if mobile (meaning in a taxi) it doesn't work at all - I have found I must be stationary for 20 minutes in order for the phone to connect. This is very annoying as first thing you want to do when you land is call colleagues to alert them to your arrival - plan a meeting spot - and call a client to the let them know you are on the way - none of which you can do till 1/2 hour after arrival. Is this a known bug? Are there known ways to fix this?

    And I thought I was the only one... so it is an iPhone issue. In my case, sometimes even after returning to "home" network, I cannot get connection. The second last time this happened, I did not manage to get the signal till the morning so Vodafone Ireland happily replaced the SIM which appeared to fix the problem. I've just returned from the UK and it took the phone over 1 hour to find the network. Crazy!
    I've tried all the usual tricks.. Restarting phone, resetting network settings, changing network type, taking out SIM card... it appeared to respond immediately after I connected it to the USB port, HOWEVER this has nothing to do with iTunes Carrier update - my box is happily running Linux. So... may be completely unrelated.
    I found few other posts of people complaining about this particular problem...
    Search on "Problem connecting to a carrier whilst on international roaming"

  • Expected Identifier

    I am in need of some serious help. I've got a website for a
    client, and I can't seem to fix an error that keeps showing up on
    my page. I'm new to Dreamweaver, don't read code, and am not sure
    where to look or how to fix this error.
    The error reads: Expected Identifier
    What does that mean? And can anyone look at the code on my
    page and tell me how to fix it?
    Here's the lines the error references:
    <body bgcolor="#FFFFFF" text="#000000" leftmargin="12"
    topmargin="12" marginwidth="12" marginheight="12" link="#00FFFF"
    vlink="#0099FF"
    onLoad="MM_preload../images('../images/mpo/button_funfacts_f2.gif','../images/mpo/button_ funfacts.gif')">
    or if you want to look for yourself --- here's the link to
    the page:
    http://www.broward.org/mpo/kidhomepage.htm
    I sure would appreciate it if you could point me in the right
    direction! thanks in advance!

    Overzealous find and replace.
    Someone did F&R replacing "Images" with "../images".
    The preload function is called MM_preloadImages, so naturally
    it got renamed
    to MM_preload../images, which is just gibberish. Fix that.
    "wlgoldie" <[email protected]> wrote in
    message
    news:e81bvq$f05$[email protected]..
    >I am in need of some serious help. I've got a website for
    a client, and I
    >can't
    > seem to fix an error that keeps showing up on my page.
    I'm new to
    > Dreamweaver,
    > don't read code, and am not sure where to look or how to
    fix this error.
    >
    > The error reads: Expected Identifier
    > What does that mean? And can anyone look at the code on
    my page and tell
    > me
    > how to fix it?
    > Here's the lines the error references:
    >
    > <body bgcolor="#FFFFFF" text="#000000"
    leftmargin="12" topmargin="12"
    > marginwidth="12" marginheight="12" link="#00FFFF"
    vlink="#0099FF"
    >
    onLoad="MM_preload../images('../images/mpo/button_funfacts_f2.gif','../images/mp
    > o/button_funfacts.gif')">
    >
    > or if you want to look for yourself --- here's the link
    to the page:
    >
    http://www.broward.org/mpo/kidhomepage.htm
    >
    > I sure would appreciate it if you could point me in the
    right direction!
    > thanks in advance!
    >

  • DVD Identifier and iDVD 6.0.2

    Okay, so I've been authoring DVDs in iDVD for work. They play fine and dandy in every device we've slapped them in. I could not be happier in that regard.
    Here's where the weird thing comes up: when we put the DVD in a Dell laptop with the PowerDVD DVD player software, it attempts to find the label art for the DVD. That would be okay, but it keeps bringing up the artwork for various commercial Star Trek DVDs. Two separate projects both came up with different Star Trek DVDs (one had Chekhov, and the other Harvey Mudd).
    I really would like to have that not happen. It's got to be something with the DVDs' identifier, but iDVD doesn't give us control over that.

    Every collection of files that is burned onto a DVD or a CD (or a CD-ROM, I believe) has a hidden numerical identifier that is burned onto every copy of that collection of data as part of the disk's total information. There is a very large database on the internet (called "Gracenote") that contains all of the album names, and the names of the songs on the tracks of those albums, for just about all of the commercially-produced CD's in the world. When you insert a CD into your computer, iTunes finds the CD's identifier, checks it against Gracenote's database, and then displays the album and track names on your computer screen. Those names are not encoded onto the CD itself. Years ago, the program called "Apple CD Player" would play your CD's on your computer, but you had to type in the album name and the names of the song tracks yourself at least once, and the computer would file that information away on your hard drive with that CD's identifier. When you played that CD in your computer again, the Apple CD Player program would read the CD's identifier, pull up the album information and display it on the screen. I have a recently-burned CD of the soundtrack of a scene that I originally recorded on video. I transferred the soundtrack of that video to a CD to archive it for later use with some effects processing. When I now put that CD in my computer, iTunes reads the CD's identifier and thinks that it is an album called "Deep Moody Progy Stuff" by a group called "Russian Max." I imagine that the Dell laptop mentioned above is doing a similar thing with the identifier of that DVD.
    iMac G5   Mac OS X (10.4.6)  

  • Expecting identifier before modulus.

    I have 2 files.
    I loaded img.swf to the main file and try to make preloader in main.fla file.
    But after compile i get error:
    1084: Syntax error: expecting identifier before modulus.
    Can anyone explaine problem and help?
    Code:
    var req:URLRequest=new URLRequest("img.swf");
    var myLoader:Loader=new Loader  ;
    function imgFileLoaded(event:Event):void {
         addChild(myLoader);
    function preloader(event:ProgressEvent):void {
         var percentage:Number=Math.round(event.bytesLoaded / event.bytesTotal *100);
         preloader_txt.text=String(percentage) + %;
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imgFileLoaded);
    myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, preloader);
    myLoader.load(req);
    Also attached the files.

    I'm not clear on what problem you're having.  After you start the test run, in the Flash Player menu bar select View -> Simulate Download.  If you want to slow it down, then select the Download Settings option to set the simulated download speed.
    And if the image you are loading is extermely small, then you should consider using a larger image for test pruposes, as even on a dialup connection, a small image can load fairly quickly.

  • I cannot go into iCloud because it always ask me for the password of my first identifiant and I do not have it and I am stock right there although I have registered with another identifiant and password it always bring me back to the first identifiant

    I cannot get into iCloud because although I have registered a new ID
    it always bring me back to the first identifiant
    and I do not remember the password
    so I am stock right there
    even if I have a new identifiant
    it ask me the password of the first identifiant
    it is insane
    thanks
    Lucien
    <Emails Edited by Host>

    It's a bad iddea to post your email addresses - it's an invitation to spam - and I've asked the Hosts to remove them.
    Go to http://appleid.apple.com , click on 'Reset Password', sign in with your 'gitanie' ID and proceed from there.

  • How can I stop iPhoto from reidentifying faces I have already 'crossed', while still being able to identify and sort new faces.

    iPhoto has detected faces of people I dont know, in my 'iPhoto faces' whenever I click the cross in the corner of the face (when sorting faces) the face temporarily disappears, but once I have uploaded a fresh batch of photos (and want to identify new faces) it automatically re-identifies the old photos that I don't want to have to sort again. How can I stop iPhoto from reidentifying faces I have already 'crossed', while still being able to identify and sort new faces.

    Thank you, that makes sense (I think!) However, I need to be able to tell iPhoto who the people identified in my photos are, does that make sense? How do I identify the people in my new photos without clicking 'find faces'. I know that button searches through my photos to find faces, but it also gets me to the place where I identify the faces as my friends and family, is there a shortcut to get to that place without clicking 'find faces'? That is what I really need, please help!!

  • How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    Hi ajoddo20,
    Welcome to the Apple Support Communities!
    You can use Home Sharing to import music and other media from one computer to another. Please use the instructions and information located in the attached article for information on how to complete the process. 
    iTunes 11 for Mac: Use Home Sharing to import items from another iTunes library
    Cheers,
    Joe 

Maybe you are looking for

  • Creating invoice through bapi

    Hi experts, I am creating invoice by using BAPI_INCOMINGINVOICE_CREATE. this is for Invoice with Planned Delivery Costs. Here i am giving the following data. header data INVOICE_IND = x DOC_TYPE = kr doc_date post-date reff-doc-no = 3006828 comp-code

  • Installing sun apps server 7 on redhat 7.3

    Firstly I have redhat 9 so can I install the sunapps server 7 on redhat 9 ? secondly can I install sun apps server 7 on atleast redhat 7.3? the document with sun apps says that I can install sun apps server 7 on 7.2 regards Mishra

  • Other free website publishers after demise of iWeb

    where can one go for similar support / experience after demise of iWeb?

  • Exp/imp

    Hi Regarding the schema level export/import. If I take a export of one schema, and import with standard exp/imp, I realized that user is not created and I have to create the user prior to import. However, if I take a export of one schema with datapum

  • Role - User Assignment

    I have assigned a New User - the New Role I created. When I logged in the user I do not see any top level Navigation or detailed Navigation folders. I gave the user Super Admin Role and the New Role I created and then when I log in as the New User I


HashFlare