Adobe Dreamweaver Forums



Last 10 THreads :         PS CS4 "Save As ..." format choices appear in duplicate (Last Post : Dan_Dill@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : g_ballard@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: SFW and date created (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: sRGB vs. Adobe (1998) RGB (Last Post : Neil_Keller@adobeforums.com - Replies : 0 - Views : 1 )           »          help my flash site opens pop ups? (Last Post : Awebus - Replies : 2 - Views : 3 )           »          Flash IDE randomly creating Symbols (Last Post : MediaMackenzie.com - Replies : 0 - Views : 1 )           »          Wishing I could make Sprite Symbols using F8 (Last Post : MediaMackenzie.com - Replies : 0 - Views : 1 )           »          3 overlapping background images on same page (Last Post : brad_goldstein - Replies : 8 - Views : 9 )           »          help me with adjustments layers in CS4 (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 4 - Views : 5 )           »          Re: Help authenticating installer (Last Post : Awebus - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-19-2008, 12:24 PM
ridgeback1105
 
Posts: n/a
Diggs:
Default Confusion in Flex Tilelist highlight

Hi,

I'm noob in flex. I have problem in flex tilelist highlight. I have a tilelist
inside a tilelist. I rendered the xml properly but the problem is when I select
an item. Whenever one item is selected and I've select another item the
highlight in the first selected item remains and the other item that I've
selected have a highlight too. In other words two item in the tilelist have a
highlight. Another thing is the number of rowcount have excess. How can I
prevent that since they have different number of child node. Please help.
Thanks.



<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="sailing.send()">
<mx:HTTPService id="sailing" useProxy="false" resultFormat="e4x"
url="{'xml/category.xml'}"/>

<mx:Canvas width="169" height="313" backgroundColor="0xd6001b" y="10" x="57"
id="red">

<mx:TileList width="150" id="filmstrip" backgroundAlpha="0" x="7" y="4"
paddingBottom="0" paddingTop="0" paddingLeft="0" paddingRight="0"
dataProvider="{sailing.lastResult.image}" useRollOver="false"
selectable="false" >
<mx:itemRenderer>
<mx:Component>
<mx:VBox verticalGap="-1" verticalScrollPolicy="off"
horizontalScrollPolicy="off" autoLayout="true" height="100" >
<mx:Canvas id="head1" width="150" height="18" borderStyle="solid"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
backgroundColor="#6b000d">
<mx:Label id="category" text="{data.@category}" width="135" height="17"
fontSize="12" color="#ffffff" y="-1" x="6" fontFamily="Arial" fontWeight="bold"
fontStyle="italic"/>
<mx:Label text="{parentApplication.sailing.lastResult.image. (@category
== category.text).subcat.length()}"/>
</mx:Canvas>

<mx:TileList width="150" id="filmstrip2" backgroundAlpha="0" x="7"
y="4" paddingBottom="0" paddingTop="0" paddingLeft="0" paddingRight="0"
dataProvider="{parentApplication.sailing.lastResul t.image.(@category ==
category.text).subcat}">
<mx:itemRenderer>
<mx:Component>
<!--<mx:VBox verticalGap="-1">-->
<mx:Canvas width="150" height="18" borderStyle="solid"
horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Label text="{data.@cats}" width="135" height="17"
fontSize="12" color="#ffffff" y="-1" x="6" fontFamily="Arial" fontWeight="bold"
fontStyle="italic"/>

</mx:Canvas>
<!--</mx:VBox>-->
</mx:Component>
</mx:itemRenderer>
</mx:TileList>

</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
</mx:Canvas>


</mx:Application>


category.xml

<?xml version="1.0" encoding="utf-8"?>
<gallery>
<image category="SAILING">
<subcat id="1" cats="-OFF"/>
<subcat id="2" cats="-ON"/>
<subcat id="3" cats="-SHOE"/>

</image>

<image category="SPORTS">
<subcat id="4" cats="-MALE"/>
<subcat id="5" cats="-FEMALE"/>
<subcat id="6" cats="-UNKNOWN"/>
</image>

<image category="GOLF">
<subcat id="7" cats="-OFF"/>
<subcat id="8" cats="-ON"/>
<subcat id="9" cats="-SHOE"/>
<subcat id="9" cats="-SHOE"/>
<subcat id="9" cats="-SHOE"/>

</image>

</gallery>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2008, 12:56 PM
SujitG
 
Posts: n/a
Diggs:
Default Re: Confusion in Flex Tilelist highlight

Hi,

Since all three TileList are different, user can definitely select items from
all these three TileLists at the same time. Why don't you use AdvancedDataGrid
and use the grouping collection option. Event a Tree component should solve the
purpose.

Please find more details regarding these controls at the URLs below.

http://livedocs.adobe.com/flex/3/lan...rols/Tree.html
http://livedocs.adobe.com/flex/3/lan...dDataGrid.html

Hope this helps.

Reply With Quote
  #3 (permalink)  
Old 11-21-2008, 12:56 PM
SujitG
 
Posts: n/a
Diggs:
Default Re: Confusion in Flex Tilelist highlight

Hi,

Since all three TileList are different, user can definitely select items from
all these three TileLists at the same time. Why don't you use AdvancedDataGrid
and use the grouping collection option. Event a Tree component should solve the
purpose.

Please find more details regarding these controls at the URLs below.

http://livedocs.adobe.com/flex/3/lan...rols/Tree.html
http://livedocs.adobe.com/flex/3/lan...dDataGrid.html

Hope this helps.

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:16 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk