A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: for loop n combobox

  1. #1
    Senior Member
    Join Date
    Apr 2009
    Posts
    117

    delte this topic plz

    plz delete this topic
    Last edited by glassfairy; 11-16-2009 at 02:49 PM.

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    addItem requires a capital "I"

    alternate code (Flash 8, AS 2 componenet, instance name - yearCombo )

    PHP Code:
    yearArray = [];

    for (var 
    n=1910;n!=2010;n++) yearArray.push({label:n});    

    yearCombo.dataProvider yearArray;

    var 
    cbListener:Object = new Object();
    cbListener.change = function(event_obj:Object) {
     
    trace("Selected year: "+event_obj.target.selectedItem.label);
    };
    yearCombo.addEventListener("change"cbListener); 

  3. #3
    Senior Member
    Join Date
    Apr 2009
    Posts
    117
    sorry i had found the error hence had asked to delete the topic,...but thanx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center