Re: [flexcoders] New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Charlie Hubbard
Right. Image is a UIComponent, and TextArea is a UIComponent. UIComponent's can't contain other UIComponents without being a subclass of Container or implementing the IContainer interface. Not a simple task. addChild() is defined in DisplayObject which apart of the Flash API not the Flex API.

Re: [flexcoders] New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Charlie Hubbard
Damn. Sorry the last paragraph should read: Since the bitmap is not apart of the document in the TextArea you aren't going to get clipping or scrolling of that image. Charlie On Sun, Jun 1, 2008 at 10:52 AM, Charlie Hubbard [EMAIL PROTECTED] wrote: Right. Image is a UIComponent, and TextArea

Re: [flexcoders] New to flex, wonder why one works and the other doesn't...

2008-06-01 Thread Joseph Balderson
Of course! I knew the answer was simple, man that was bugging me. Thanks Charlie. :) ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3

Re: [flexcoders] New to flex, wonder why one works and the other doesn't...

2008-05-31 Thread Joseph Balderson
This one was interesting, at first glance looks like it should work, until I actually tried it. Turns out TeatArea inherits from UIComponent, but it does not inherit from Container, which contain methods for adding and removing Flex children. So you cannot add an Image to a TextArea using

[flexcoders] New to flex, wonder why one works and the other doesn't...

2008-05-29 Thread aarhac
Hello, I have figured out how to work around my problem, but I do wonder why one of the following methods works, and the other doesn't. I would be grateful if someone could explain the error in the failing method. The code is pasted below (Below the line of dashes) in it's entirety, and is