Adobe Dreamweaver Forums



Last 10 THreads :         Load dynamic text into an embeded swf (Last Post : mikeyjray - Replies : 4 - Views : 9 )           »          Log email text (Last Post : Torgom - Replies : 0 - Views : 1 )           »          Properties > Flex Build Path (Last Post : kevxross - Replies : 0 - Views : 1 )           »          Can Anyone Help With Sub Menus (Last Post : Murray *ACE* - Replies : 8 - Views : 9 )           »          transferring DW license from crashed computer (Last Post : Sonjay - Replies : 1 - Views : 7 )           »          DIV in Table not working. (Last Post : Murray *ACE* - Replies : 13 - Views : 14 )           »          Variable for Loader Content (Last Post : Sea Crystal - Replies : 0 - Views : 1 )           »          left join won't work in query of query? (Last Post : Dan Bracuk - Replies : 5 - Views : 6 )           »          fireworks exports hundreds of files (Last Post : Rob Miller - Replies : 0 - Views : 1 )           »          Fireworks Color Selection Bug (Last Post : Linda Rathgeber - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-21-2008, 05:53 PM
c4kandy
 
Posts: n/a
Diggs:
Default Tilelist Item Renderer

I have an item renderer that I use with a Tilelist. I set height of all
components in the item renderer to 100%. But item renderer is height does not
expand when application is run. Please see the attached code.
Any help is appreciated.

-Thanks


<!-- Main.mxml -->

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
width="100%" height="100%"
xmlns:v="views.*">

<mx:Canvas
width="100%"
height="100%"
xmlns:v="views.*"
creationComplete="init()">

<mx:Script>
<![CDATA[
import valueObjects.AddressBook;
import valueObjects.contact.Contact;
import mx.collections.ArrayCollection;

[Bindable]
private var contacts:ArrayCollection;

private function init():void{
contacts = AddressBook.getInstance().contacts;
}
]]>
</mx:Script>

<mx:Panel id="viewContactsPanel" width="100%" height="100%" title="Contacts">
<mx:HBox id="viewContactsBox" width="100%" height="100%" horizontalGap="0">
<mx:TileList id="ccardsSimple" dataProvider="{contacts}"
itemRenderer="ContactRenderer"
width="100%"
height="100%"
useRollOver="false"
columnCount="7"
selectable="false"/>
</mx:HBox>
</mx:Panel>

</mx:Canvas>

</mx:Application>

<!-- ContactRenderer -->
<!-- ************************************************** *** -->
<?xml version="1.0" encoding="utf-8"?>
<mx:Box xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalGap="5"
verticalGap="5"
horizontalScrollPolicy="off"
verticalScrollPolicy="off"
width="100%"
height="100%"
creationComplete="formatAddress()">

<mx:Script>
<![CDATA[
private function formatAddress():void{
var s:String = data.address.addressline1 + "<br>" + data.address.city +
"<br>"
+ data.address.state + "<br>" + data.address.postalCode;
txtAddress.htmlText = s;
}
]]>
</mx:Script>

<mx:VBox id="vbox"
verticalScrollPolicy="off"
horizontalScrollPolicy="off"
width="100%"
height="100%"
verticalGap="0"
paddingLeft="3">

<mx:Canvas id="lblName"
backgroundColor="#D9BB42"
width="100%">
<mx:Label text="{data.person.firstName}{data.person.middleNa me}
{data.person.lastName}" fontWeight="bold"/>
</mx:Canvas>

<mx:Text id="txtAddress" textAlign="left" />
</mx:VBox>
</mx:Box>



Reply With Quote
Sponsored Links
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 11:21 PM.


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.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk