Excerpt:
Development of the next version of Flex, codenamed Gumbo, is well underway. I’d really encourage everyone to go grab a build and give it a whirl. I did because I wanted to see how I could take a sample I built with Flex 3, Degrafa, and AnimateColor and build the same thing with Flex Gumbo.
05/18/2009 - 09:08
Any sample that would show how an Advanced DataGrid works using Gumbo?
07/28/2009 - 04:29
First
Start--> Programs -> Adobe -> Flex Bulder 4
Click on that . Flex 4 SDK wil open. Select
File -> new Project from Menu.
Give suitable name and click ok.
In the design mode select the components tab and choose Advance data grid Control. It will automatically generate the code for the component. Search in internet for any sample for ADC. Copy that and paste in your code. press f11 or debug to see the output. Thats all folks.
Regards
sudar
01/25/2010 - 02:59
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
trace(int("3.14")); // 3
}
}
}
01/25/2010 - 03:02
private var _data:Object;
override public function set data(value:Object):void
{
_data = value;
var rating:Number = Number(value.rating);
removeAllChildren();
var ratingStar:RatingStar;
for(var i:uint = 0; i < 5; i++)
{
ratingStar = new RatingStar();
if(rating > 1)
{
ratingStar.currentState = "fullStar";
rating -= 1;
}
else if(rating > .5)
{
ratingStar.currentState = "halfStar";
rating -= .5;
}
else
ratingStar.currentState = "noStar";
addChild(ratingStar);
}
}
override public function get data():Object
{
return _data;
}
05/18/2009 - 21:14
What are you specifically trying to do in Gumbo? It should still work as normal, the skinning would be different.
01/25/2010 - 03:00
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
viewSourceURL="src/ItemRendererDefault/index.html"
width="450" height="140"
>
<mx:Model id="artwork" source="model/artwork.xml"/>
<mx:DataGrid rowCount="4" dataProvider="{artwork.piece}"/>
</mx:Application>
01/25/2010 - 03:00
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
width="530" height="405">
<mx:Panel x="0" y="0" width="530" height="405" layout="absolute"
title="Item Renderers">
<mx:DataGrid x="0" y="0" width="510" height="365">
<mx:columns>
<mx:DataGridColumn headerText="Song"/>
<mx:DataGridColumn headerText="Rating" width="125"/>
<mx:DataGridColumn headerText="Favorite" dataField="isFavorite" width="75"/>
</mx:columns>
<mx:dataProvider>
<mx:ArrayCollection>
<mx:Array>
<mx:Object title="Stairway to Heaven" artist="Led Zepplin"
art="/files/led_zep.jpg" rating="4.5" isFavorite="true" />
<mx:Object title="How to Save a Life" artist="Fray"
art="/files/fray.jpg" rating="4" isFavorite="false" />
<mx:Object title="Sinnerman" artist="Nina Simone"
art="/files/nina_sim.jpg" rating="5" isFavorite="true" />
<mx:Object title="Take On Me" artist="Aha"
art="/files/aha.jpg" rating="3.5" isFavorite="false" />
</mx:Array>
</mx:ArrayCollection>
</mx:dataProvider>
</mx:DataGrid>
</mx:Panel>
</mx:Application>
01/25/2010 - 03:02
If i resize collum datagrid and in sequence i use slider to filter datagrid the error ocurred
-------------
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at DataGridFooter/updateDisplayList()[C:\inetpub\wwwroot\webserver\rarus_admin_flex_2\src\DataGridFooter.as:103]
at mx.core::UIComponent/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6214]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
07/28/2009 - 09:06
What exactly is this?
01/25/2010 - 03:04
02/13/2008 - 05:26
Hi there. I'm trying to accomplish something with Item Renderers that I just can't figure out. Hopefully you can shed some light on it as I'm fairly new to Flex and AS3.
I have an XML file which details a list of resources. Each piece of resource has a series of audience tags which detail what audience the resource is intended for. Something like:
no
yes
yes
What I want one of the columns to display is a list of all the audiences that the current resource has a "yes" value to. So for the above resource the column should display "audience2
audience3" in a text box or similar.
I've tried several different ways to accomplish this. Writing code in the tag of the renderer doesn't seem to allow me to access the "data" variable that the renderer gets sent. Overriding the set data function gives me a #1009 error whenever I try to access the object it gets passed. I just can't figure it out. Any help you could give would be greatly appreciated.
Thanks.
reply
Add Comment
[language] [/language]
Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]
See here for supported languages.
Javascript must be enabled to submit anonymous comments - or you can login.