[flexcoders] Re: new Component() ?

2008-07-25 Thread Amy
--- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: Amy, and how would you add elements to the canvas?! or to the itemrender itself? because the myRenderer wont have addChild so i can add new elements. And how do you change the properties of the Canvas? You adding the

[flexcoders] Re: new Component() ?

2008-07-25 Thread Amy
--- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: Amy, and how would you add elements to the canvas?! or to the itemrender itself? because the myRenderer wont have addChild so i can add new elements. And how do you change the properties of the Canvas? You adding the

RE: [flexcoders] Re: new Component() ?

2008-07-25 Thread Alex Harui
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, July 25, 2008 6:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component() ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rafael Faria [EMAIL PROTECTED] wrote: Amy

RE: [flexcoders] Re: new Component() ?

2008-07-25 Thread Gordon Smith
instances of them. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Thursday, July 24, 2008 5:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component() ? I found

[flexcoders] Re: new Component() ?

2008-07-25 Thread Amy
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: i'm able to add a new class on the fly No, you're not adding a new class on the fly. You're creating a new instance of a ClassFactory subclass on the fly. A class is something that is defined at compile time by a

Re: [flexcoders] Re: new Component() ?

2008-07-24 Thread Josh McDonald
mx:Canvas .. From AS: myList.itemRenderer.newInstance() -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *rafaelrfc00 *Sent:* Wednesday, July 23, 2008 9:53 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: new

[flexcoders] Re: new Component() ?

2008-07-24 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If you've defined a component via mx:Component, the name is auto-generated as Josh says, but it generates an IFactory, so you can use the factory to get new instances mx:List id=myList

RE: [flexcoders] Re: new Component() ?

2008-07-24 Thread Alex Harui
] On Behalf Of Amy Sent: Thursday, July 24, 2008 7:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component() ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: If you've defined a component via mx:Component

RE: [flexcoders] Re: new Component() ?

2008-07-24 Thread Alex Harui
23, 2008 11:52 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: new Component() ? If you have: mx:Component id=inlineEditor className=MyClass mx:Canvas/ /mx:Component You get a subclass of Canvas named MyClass, and a local public scoped instance of an IFactory called

Re: [flexcoders] Re: new Component() ?

2008-07-24 Thread Josh McDonald
. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Wednesday, July 23, 2008 11:52 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: new Component() ? If you have: mx:Component id=inlineEditor className=MyClass

[flexcoders] Re: new Component() ?

2008-07-24 Thread Rafael Faria
Amy, and how would you add elements to the canvas?! or to the itemrender itself? because the myRenderer wont have addChild so i can add new elements. And how do you change the properties of the Canvas? You adding the Class but you aint adding the whole component i was talking about. Suppose that

[flexcoders] Re: new Component() ?

2008-07-24 Thread Rafael Faria
] On Behalf Of Amy Sent: Thursday, July 24, 2008 7:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component() ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: If you've defined a component via mx:Component, the name

[flexcoders] Re: new Component() ?

2008-07-24 Thread Amy
See my comments inline --- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: I found this class package modules.renderers { import mx.core.ClassFactory; import org.osflash.thunderbolt.Logger; public class InitFactory extends ClassFactory

Re: [flexcoders] Re: new Component() ?

2008-07-24 Thread Josh McDonald
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Thursday, July 24, 2008 7:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component() ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com , Alex Harui aharui

RE: [flexcoders] Re: new Component() ?

2008-07-24 Thread Alex Harui
McDonald Sent: Thursday, July 24, 2008 7:37 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: new Component() ? You can't really do what you want, without creating custom item renderer components or custom IFactories. You could possibly create one base component, and pass

[flexcoders] Re: new Component() ?

2008-07-23 Thread Rafael Faria
Hi Johannes, Thanks for your reply but my question isn't really about how to put the columns into the datagrid. It's actually how to create dynamically components to put inside the columns. See i don't want to create 4,5,6,7 different itemrenderes files so i can insert into the columns i would

Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
I don't see why you don't just use mx:component like in your first example? You don't need to make any extra files. Or are you building your entire datagrid programatically? -Josh On Thu, Jul 24, 2008 at 9:16 AM, Rafael Faria [EMAIL PROTECTED] wrote: Hi Johannes, Thanks for your reply but my

Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Pedro Sena
Hi Rafael, What do u think of put some getters in your object instead of create various item renderers that just have little funcionality ? Just my 2 cents On Wed, Jul 23, 2008 at 8:54 PM, Josh McDonald [EMAIL PROTECTED] wrote: I don't see why you don't just use mx:component like in your

[flexcoders] Re: new Component() ?

2008-07-23 Thread Rafael Faria
I would but i wan't to do it FROM actionscript and not from the mxml. Like i said i want it being created on the fly. How would you do that from actionscript? Rafael --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: I don't see why you don't just use mx:component like

[flexcoders] Re: new Component() ?

2008-07-23 Thread Rafael Faria
Hi Pedro, How do you mean about putting some getters? Can you give me an example? Thanks Raf --- In flexcoders@yahoogroups.com, Pedro Sena [EMAIL PROTECTED] wrote: Hi Rafael, What do u think of put some getters in your object instead of create various item renderers that just have little

Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
Well no, you can't do what you're asking :) When you use: mx:component canvas ... /canvas /mx:component It's creating a new subclass of Canvas with a generated name, and you can't create new classes at run-time without bytecode manipulation (which isn't really an option in Flex yet

[flexcoders] Re: new Component() ?

2008-07-23 Thread rafaelrfc00
Text was just an example. It can be date, text, textarea, some other customcomponents. I was just curious how i would create item renderes without creating a file. I thought if you are able to use mx:component you would be able to create it from actionscript as well. guess i was wrong. Flex

RE: [flexcoders] Re: new Component() ?

2008-07-23 Thread Alex Harui
mx:Canvas .. From AS: myList.itemRenderer.newInstance() From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rafaelrfc00 Sent: Wednesday, July 23, 2008 9:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component

Re: [flexcoders] Re: New Component Released - Animated Gif Loader

2007-01-22 Thread Brendan Meutzner
LOL... thanks Doug... I've just assured myself of the fact that at some point in the future, I'm gonna need to incorporate an animated GIF in a Flex App... guaranteed... Brendan On 1/19/07, dougmccune [EMAIL PROTECTED] wrote: Brendan- The example at the end of this post is for you :)

[flexcoders] Re: New Component Released - Animated Gif Loader

2007-01-19 Thread dougmccune
Brendan- The example at the end of this post is for you :) http://dougmccune.com/blog/2007/01/19/how-to-load-animated-gifs-using-adobe-flex-20/ --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Sorry, but I've gotta ask but what the heck are people still using

[flexcoders] Re: [New Component]Draggable TabBar with close button on each tab (source included)

2006-08-01 Thread Tim Hoff
Very cool Jeremy! Thanks. -TH --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote: hi flexcoders, Just revised this component and open sourced it, please take a look here :-) *samplehttp://ria.richtechmedia.com/go.php?