So being the early adopter that I am, I ran out the other day and downloaded FF3 and so far I've been very impressed.
The only issue so far is when making very minor changes to websites under development the cache was keeping those updates from being displayed. By changing the cache size to 0 that issue has gone away.
Wednesday, March 26, 2008
Wednesday, March 12, 2008
Nested Repeaters In Flex 3 using XML
I've been working with .NET for the past few weeks (my latest excuse for not posting but thats a whole another subject...) so I've gotten attached to the idea of nested repeaters for display purposes.
I was looking for a simple example of doing the same if Flex but didn't find one so I figured I would post a little something.
It actually is very simple:
I was looking for a simple example of doing the same if Flex but didn't find one so I figured I would post a little something.
It actually is very simple:
<mx:XML id="myXML" xmlns="">
<root>
<company title="Company 1" code="1">
<office name="Location 1" />
<office name="Location 2" />
<office name="Location 3" />
</company>
<company title="Company 2" code="2">
<office name="Location 1" />
<office name="Location 2" />
</company>
<company title="Company 3" code="3">
<office name="Location 1" />
<office name="Location 2" />
</company>
</root>
</mx:XML>
<mx:VBox width="100%" >
<mx:Repeater id="primaryRepeater" dataProvider="{myXML.company}">
<mx:Label text="{primaryRepeater.currentIndex} - {primaryRepeater.currentItem.@title}"/>
<mx:Repeater id="nestedRepeater" dataProvider="{myXML.company[primaryRepeater.currentIndex].office}">
<mx:Text htmlText=" -- {nestedRepeater.currentItem.@name}" width="75%"/>
</mx:Repeater>
</mx:Repeater>
</mx:VBox>
Flex 3 and Multiline Text
Once again I'm proved an idiot =)
I spent about 45 minutes looking around for a clever way of creating a multi-line label or text block in Flex and was rewarded with a whole lot of nothing...
probably because the solution to the problem is dirt simple, instead of using the label tag with text="yadda yadda" use a text tag with htmlText="yadda yadda" and a set width...
I spent about 45 minutes looking around for a clever way of creating a multi-line label or text block in Flex and was rewarded with a whole lot of nothing...
probably because the solution to the problem is dirt simple, instead of using the label tag with text="yadda yadda" use a text tag with htmlText="yadda yadda" and a set width...
Subscribe to:
Posts (Atom)