Featured post
actionscript 3 - Combining a multiple strings and arrays to one dataProvider for a spark List -
i'm struggling one, need combine 5 arrays 5 individual strings (which have come json webservice) 1 single list item in flashbuilder burrito.
the web service returns data follows
title(string) array[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]] title_1(string) array_1[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]] title_2(string) array_2[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]] title_3(string) array_3[0[name, size, imageurl]][1[name, size, imageurl]][2[name, size, imageurl]]
and on. i've pulled these out , each 1 traces in debugger, although need them in same list i'm struggling establish them dataprovider together.
if push strings , arrays impossible read properly, main titles @ different level descriptors products in arrays. i'm sort of stuck!!
any advice on how best approach this?
cheers
really depends on design of application on how best approach this. if list going sortable on properties (name, size, price etc) instead of labels might want push "type" array , have way of showing in item renderer. if items supposed separated type, sortable might want @ using accordion type control , having separate lists.
anyhow want concatenate arrays single array , push "title" object property. way can @ least sort on title items appear in correct order in single list.
otherwise create custom control 5 different lists stacked on top of each other (with no scrollbars) , have custom control handle scrolling of 5 lists single scroll bar.
- Get link
- X
- Other Apps
Comments
Post a Comment