[flexcoders] Sharing an Image instance in multiple datagrid item renderers.

2007-05-09 Thread sergio_trejo_r
Is it possible in Flex to load an Image from a URL once and display it in multiple datagrid item renderers without reloading the image? I have the following scenario: + In a datagrid control we display images for certain items. + In the datagrid item renderer we use an Image control. + If the it

[flexcoders] Re: setStyle(styleProperty, null) or setStyle(styleProperty, undefined)?

2006-08-14 Thread sergio_trejo_r
--- In flexcoders@yahoogroups.com, "Sergey Kovalyov" <[EMAIL PROTECTED]> wrote: > > Hi All! > > How to reset one particular style property? Do I need to call > setStyle(styleProperty, null) or setStyle(styleProperty, undefined)? > Or any other solution is suitable in this particular case? > > Tha

[flexcoders] Extending CSSStyleDeclaration

2006-08-14 Thread sergio_trejo_r
Is there a way to extend the CSSStyleDeclaration class in such a way that I can store/calculate the style values in my application? For example, I want to create a style CSS1 that depends on a different style CSS0. If a style property is not assigned to CSS1 then it should get the value from the

[flexcoders] Re: Drawing in a Canvas subclass

2006-05-24 Thread sergio_trejo_r
subclassing UIComponent instead of Canvas. That should avoid the > problems of having a background child. > > - Gordon > > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of sergio_trejo_r > Sent: Tuesday, Ma

[flexcoders] Drawing in a Canvas subclass

2006-05-23 Thread sergio_trejo_r
Hi, I ran into a problem while trying to use the drawing API in a subclass of the Canvas container.  See the code include below. The class TestCanvasDrawing extends the Canvas container.  I attempt to draw a line in the updateDisplayList method.  However when I see the output only a small porti

[flexcoders] Re: Array filter method

2006-05-22 Thread sergio_trejo_r
ample, I create an instance of Sprite and pass that as the > thisObject, so that the "this" reference points to the instance of > Sprite named mySprite. > > Francis > > > -Original Message- > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] >

[flexcoders] Array filter method

2006-05-16 Thread sergio_trejo_r
Hi, two questions regarding the filter method in the Array class. 1) In a two dimensional array the filter method seems to convert the input array into a single dimension array by concatenating the elements of the second array into a CSV string. Is this the expected behavior? 2) Has anyone us

[flexcoders] Re: Drwaing API inside an AS based component - not working

2006-05-09 Thread sergio_trejo_r
Using Flex 2 Beta 2 I don't see a draw() method in the UIComponent class.  Can you confirm which version of Flex are you using? and which is the method where the drawing should happen? thanks! Sergio --- In flexcoders@yahoogroups.com, Mark Wales <[EMAIL PROTECTED]> wrote: > > Not sure which

[flexcoders] Measure multiline text

2006-05-05 Thread sergio_trejo_r
Is there a way in Flash to measure the height of multiline text assuming that the width is fixed.  I need a procedure to autosize a TextArea control where the width of the control is fixed but the height is resized to fit the contents. I read about the measureText method but it is documented to

[flexcoders] XML attribute "class"

2006-05-02 Thread sergio_trejo_r
I noticed that XML statements (based on the E4X specification) can have compilation issues when an XML attribute is also a reserved keyword in the language. For example, if the XML contains an attribute named "class", then the _expression_ '[EMAIL PROTECTED]' will not compile because the wor

[flexcoders] Flex 2.0 Beta 2

2006-04-28 Thread sergio_trejo_r
A general question on Flex 2.0.  Is it true that anything that you can do in MXML you can also do it using Action Script?  As I understand it, you should be able to build an application using only Action Script.  However, most examples I see out there use MXML with embedded Action Script so