Re: [flexcoders] Re: Lightweight framework

2009-04-18 Thread dnk
On 18-Apr-09, at 10:07 PM, zuurl8 wrote: Flex is a lightweight framework. Do you need more then what Flex provides in interface, events, and modules? Well I think that I am talking about things more like code structure, methods of doing things, etc. There are obviously benefits from these

[flexcoders] Re: Lightweight framework

2009-04-18 Thread zuurl8
Flex is a lightweight framework. Do you need more then what Flex provides in interface, events, and modules? --- In flexcoders@yahoogroups.com, Dnk wrote: > > Go there, > > I know there have been a billion topics regarding frameworks on here. > I have been using cairngorm for a while and do

[flexcoders] Lightweight framework

2009-04-18 Thread Dnk
Go there, I know there have been a billion topics regarding frameworks on here. I have been using cairngorm for a while and do like it. Now after doing a few projects, I have come to the realization that pretty much all projects I do are small - med with remoting. Cairngorm when looking ba

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread wubac1
Well, there is magic in ActionScript. MXML doesn't have the item renderer mojo. -W --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > Yep, no magic here. :) > > -TH > > --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > > > Hah, Tim, your spell didn't quite do it, huh? ;)

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread Tim Hoff
Yep, no magic here. :) -TH --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > Hah, Tim, your spell didn't quite do it, huh? ;) Container-based renderers > are problematic. For anything even slightly complex, extend UIComponent. > > > > I copy ListItemRenderer, it is a great starting p

RE: [flexcoders] Reoading a view from a viewstack

2009-04-18 Thread Tracy Spratt
No, a rendered component is rendered and there is no way to "'reload" it. I suppose you could use a Module or SWFLoader, but that is a heavy-duty architectural change. Duplicate the init functionality you need in a "show" event handler. Tracy Spratt, Lariat Services, development services

RE: [flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread Tracy Spratt
Hah, Tim, your spell didn't quite do it, huh? ;) Container-based renderers are problematic. For anything even slightly complex, extend UIComponent. I copy ListItemRenderer, it is a great starting point. It is pretty easy to see where to add your special incantations. Tracy Spratt, Laria

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread Tim Hoff
Hi, Yes, after playing with it a little, you're correct; my suggestion only works in AS. Sorry, I always extend UIComponent for itemRenderers that need to have a variableRowHeight. BTW, in the future, please sign your posts; so that we can put a name to your warm and positive comments. -TH --

[flexcoders] Re: Need Suggestions for database application.

2009-04-18 Thread raja_s_patil
Thanks Lee, > > I have been searching around for a while on different setups for flex and > have recently been using the following: A Flex UI with symfony framework on > php5.2.8 on MySQL database. Although I have only been trying out the symfony > framework for a while it appears very powerful a

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread wubac1
Tim, I have been using the variableRowHeight (see my original example). Also, one should not need to replicate the measure of mx:Text. Your example disregards internal padding elements of the Text component. I did try setActualSize combined with getExplicitOrMeasuredHeight, but that only work

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread wubac1
Tracy, I have to agree. I was able to get a fully functional item renderer based on ListItemRenderer. However, in theory, one should be able to do it in MXML. With that in mind, I replaced the UITextField with mx:Text. It's probably not surprising to many that the renderer does not behave as

[flexcoders] Tradeoffs

2009-04-18 Thread Mike Oliver
What are the tradeoffs between creating a flex project with the J2EE type vs None type? The J2EE type is about 10% larger from what I can tell, but the None type seems to work just fine in the browser. If we start with None type, and then add ActionScript calls to the Remote interface it seems t

[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-18 Thread reygeek
Here's another method that would allow you to pass in the whole UIComponent. Below is an example usage: public function getUIComponentBitmapData( target:UIComponent, w:Number, h:Number ) : BitmapData { // scale down (or up) var scaleX:Number = w / target.width; var scaleY:Number =

[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-18 Thread reygeek
He shared all you need. Just pass in bitmap data of your image which I believe is the source attribute. var newImg:Image = new Image(); newImg.source = scaleBitmapData(originalImage.source,width,height); --- In flexcoders@yahoogroups.com, "stinasius" wrote: > > hi, please share the whole class

[flexcoders] Reoading a view from a viewstack

2009-04-18 Thread Wally Kolcz
My application uses a ToggleButtonBar with a viewstack as it's dataprovider. When the app is first loaded and each component is called in the stack, it loads the component and runs it's initApp() on the creationComplete. However when you go back it's already loaded and doesn't run the initApp()

[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-18 Thread stinasius
hi, please share the whole class please.

[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-18 Thread aphexyuri
I knew I had a class I wrote to do this... If you have the large image, get its bitmapData, feed it to this function with target's dimensions, and boom...you'll get the resized 'thumbnail' as Bitmap. You can also change the return type and return the bitmapData "newBmd" (sorry about the formatti

Re: [flexcoders] Need Help

2009-04-18 Thread riacoding
Hi Heman I not sure if you are already generating the CSV file from the datagrid? if not this should help http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php regards Lee riaCoding heman babu wrote: > > > i need the excel file generated from the datagrid t

Re: [flexcoders] Need Suggestions for database application.

2009-04-18 Thread riacoding
Hi Raja, I have been searching around for a while on different setups for flex and have recently been using the following: A Flex UI with symfony framework on php5.2.8 on MySQL database. Although I have only been trying out the symfony framework for a while it appears very powerful and would meet

[flexcoders] Alternatives to ILOG Elixir (Diary and Resource Planner) components

2009-04-18 Thread randc5849
Hi there - does anyone know of any good alternatives to two of the ILOG Elixir components, specifically the Calendar component and the resource chart (URLs below). My company only needs these two pieces of functionality for the application but the cost I've been quoted for ILOG is over £10k. h

[flexcoders] how to convert Html pages or text(html text) into a pdf document.

2009-04-18 Thread Hasain Sab
Hi Friends, can anybody suggest me how to convert Html pages or text(html text) into a pdf document on the fly . I have already used AlivePdf but did not got the desired results. please reply soon if any ideas. Thanks in Advance. Hasain

[flexcoders] Date data type in DataGrid

2009-04-18 Thread srinuguda
Dear Friends, In a data grid, how to identify that a field is of type "DATE"?. I am assigning datagrid.COLUMNS to combo box data providers (for search). For date field I have a separate search method. To call this I need to identify the "DATA TYPE" of column. Thanks in Advance. Regards, Srini

[flexcoders] Re: Custom List ItemRenderer / Recycling troubles (height incorrect)

2009-04-18 Thread Tim Hoff
Hi, Set the List's variableRowHeight="true" and use something like this in the itemRenderer: override protected function measure():void { var textLineMetrics:TextLineMetrics = comment.measureText( comment.text ); // should add paddingTop, paddingBottom and verticalGap to this too

[flexcoders] Re: Need Suggestions for Reporting In Flex Applications.

2009-04-18 Thread raja_s_patil
Thanks Dean, > I have no idea about the dot matrix printers. But generally I do > all my reporting using PHP. At the end of the day flex is in a > browser and you are going to be limited by that. I'm sure PHP > can produce a format that would work well for a dot matrix printer. > If not, you coul