A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: there is no property with the name 'text'

  1. #1
    Senior Member
    Join Date
    Aug 2009
    Posts
    113

    there is no property with the name 'text'

    My code is not working.. I want command_quiz (5, whatever number is chosen) to operate. The javascript is working fine with textinput for page numbers.


    PHP Code:
    var quiz_links:mx.controls.List;
    quiz_links.addItem({data:"5"label:"5"});
    quiz_links.addItem({data:"10"label:"10"});
    quiz_links.addItem({data:"15"label:"15"});
    quiz_links.addItem({data:"20"label:"20"});
    quiz_links.addItem({data:"25"label:"25"});
    quiz_links.addItem({data:"30"label:"30"});

    mem_links.setStyle("themeColor""0xCCCCCC");


    purple.onPress = function() { 
            
    getURL("javascript:command_quiz{5," quiz_links.text ")","_self");


  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    There is no property of text in your list. You have data and label, you need to use one of those.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    Senior Member
    Join Date
    Aug 2009
    Posts
    113
    .label and .data is also working.

    I changed it to .value and it's working. thanks

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