[flexcoders] Content overflow problem in a Box

2007-06-06 Thread Artur Kordowski
For days I am looking for a solution how to realize a content overflow for a box that uses percent width/height or constraints. I will try to describe it a bit detailed. OK, I create a VBox that uses constraints to set the position in a component. The VBox contains other children, which can be

[flexcoders] Create Controls like in the FlexBuilder Design mode

2007-03-15 Thread Artur Kordowski
For a current project I have to create an dynamic formular designer, with which the User can create it own formular. The prototype work well, but when I create a new control and add it's into the stage, it is full accssesible. I would like to suppress in this case the user interaction for the

[flexcoders] Get the reference of a DataGrid cell in a itemRenderer

2006-07-26 Thread Artur Kordowski
In Flex 1.5 there was a way to get the reference of a DataGrid cell by using listOwner.rows[1].cells[1]. The same I try to do in Flex 2. I've tried to get the reference in my itemRenderer by using listData.owner.indexToItemRenderer(1). But in a itemRenderer the owner variable haven't any

RE: [flexcoders] Get the reference of a DataGrid cell in a itemRenderer

2006-07-26 Thread Artur Kordowski
in a itemRenderer Na Kollege :) You probably only have to cast listOwner to DataGrid to make it work, i.e. DataGrid(listData.owner).indexToItemRenderer(1); Cheers, Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Artur Kordowski Gesendet: Mi 26.07.2006 11:56

[flexcoders] Create variables dynamic in Flex 2

2006-07-26 Thread Artur Kordowski
How can I create in a loop variables dynamicly? Like this: for (var i:uint=0; i == 10; i++) { var myVar_i:String = new String(); } Any idea? Artur Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email.

RE: [flexcoders] Create variables dynamic in Flex 2

2006-07-26 Thread Artur Kordowski
] Create variables dynamic in Flex 2 - Original Message - From: Paul Andrews [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, July 26, 2006 3:04 PM Subject: Re: [flexcoders] Create variables dynamic in Flex 2 - Original Message - From: Artur Kordowski [EMAIL

[flexcoders] How to pass optional arguments to a function in Flex 2?

2006-07-25 Thread Artur Kordowski
In Flex 1.5 there was a way to create a function and pass optional arguments to it, and get them in the function using arguments[0]. private function foo():Void { var arg = arguments[0]; } When I try it to do in Flex 2 I've got still an 'Inccorect number of arguments' error. Have

RE: [flexcoders] How to pass optional arguments to a function in Flex 2?

2006-07-25 Thread Artur Kordowski
in Flex 2? you need to use the 'rest' parameter its an ellipsis (...)details here:http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1834.html On 7/25/06, Artur Kordowski [EMAIL PROTECTED] wrote: In Flex 1.5

[flexcoders] How to remove DataGrid itemRenderer top Bottom spaces

2006-07-19 Thread Artur Kordowski
I've created an itemRenderer for a DataGrid and set a backgroundColor. But when the DataGrid is rendered I have still top 1px and bottom 2px white space (look at sample image). Can any one tell me how I can remove it, so that the background fill the cell without spaces? Artur __._,_.___

RE: [flexcoders] How to remove DataGrid itemRenderer top Bottom spaces

2006-07-19 Thread Artur Kordowski
: Re: [flexcoders] How to remove DataGrid itemRenderer top Bottom spaces have you tried to set paddingTop, paddingBottom to 0 ?another possible reason is the rowHeight of DataGrid is just too high, try shorten it.Jeremy. On 7/20/06, Artur Kordowski [EMAIL PROTECTED] wrote

[flexcoders] How to set object type coming from a webservice?

2006-07-06 Thread Artur Kordowski
For set a object type coming form a webservice we've created in Flex 1.5 a objectToClass function: public static function objectToClass(obj:Object, constructorFunction:Function):Void{ obj.__proto__ = constructorFunction.prototype; constructorFunction.apply(obj, []);} The function call

RE: [flexcoders] Handle result/fault from webservice call in Cairngorm 2

2006-07-05 Thread Artur Kordowski
@Tom Why not use a delegate ? The delegate class is not longer available in the flex framework, so I can't use it. @Jester I've got still an error. Here my code how I've build it. Service.mxml - subclass from ServiceLocator ?xml version="1.0"

RE: [flexcoders] Handle result/fault from webservice call in Cairngorm 2

2006-07-05 Thread Artur Kordowski
@Tom Why not use a delegate ? The delegate class is not longer available in the flex framework, so I can't use it. @Jester I've got still an error. Here my code how I've build it. Service.mxml - subclass from ServiceLocator ?xml version="1.0"

[flexcoders] Handle result/fault from webservice call in Cairngorm 2

2006-07-04 Thread Artur Kordowski
I setup an new Project in Flex 2 using Cairngorm 2 and now I'm trying to handle result/fault coming from a webservice. I created a subclass of ServiceLocator for the webservice. When I debug the call it works and I get data: var call:AsyncToken =