header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Gim
Points:0
Posts:0
Answered

7/3/2010 8:33:49 AM

Title: Dataprovider problem


I have a code as given below.tbl_ is the SQlite table.
I am loading all data in column_name in a combobox.
But its loading as object.
but if it is res.data[0].column_name it will load the first value in column_name.
Please solve this problem.



  stat.text = "SELECT column_name form_name FROM tbl_";
  stat.execute();
  var res : SQLResult = stat.getResult();					
  combo.dataProvider = res.data;	




1
Holinix
Points: 0
Posts:0
7/3/2010 11:01:16 PM



you can try casting your data to array collection then apply it to your combo

dataProviderForCombo = new ArrayCollection(res.data);

2
MaxFlash
Points: 580
Posts:0
Accepted Answer
7/3/2010 11:24:50 PM



comboBox will accept the data as array or arraycollection , so u need to convert the object data from sqlresult to array or array collection.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 8+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions