Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-02 Thread Michael Schmalle
NEVER. Alex, All I meant was it was never going to happen 'automajically' like component children placed inside a container. As, you just said, of course if you call setActualSize(). :) Mike On Fri, Aug 1, 2008 at 1:48 PM, Alex Harui [EMAIL PROTECTED] wrote: Well, I wouldn't say NEVER.

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-02 Thread Amy
--- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: You can draw those graphics in a UIComponent so I would have grouphandle subclass UIComponent and not Sprite. Thanks Alex, I tried that, but still no joy, AND the graphics don't render now either for some strange

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-02 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Your GroupHandle has no measure method so it will be given a size of 0,0 unless you specify a width/height on the GroupHandle Please read over the docs on custom component development. There is a basic recipe you

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Merrill, Jason
OK, let me back up here. First, thanks to those who responded. So I thought by isolating my problem with an example (heck, I'm not even using Canvas) it would shed light on why this bug is occuring, but it isn't unfortunately, I'm more or less confusing the real problem with y'all. Sorry.

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Laurent Cozic
Application development http://pogopixels.com - Original Message From: Merrill, Jason [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, August 1, 2008 4:57:36 PM Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 OK, let me back up here. First

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Michael Schmalle
] To: flexcoders@yahoogroups.com Sent: Friday, August 1, 2008 4:57:36 PM Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 OK, let me back up here. First, thanks to those who responded. So I thought by isolating my problem with an example (heck, I'm not even using

RE: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Alex Harui
: [flexcoders] Re: problem adding images to UIComponents using AS3 Hi, The original question of this long thread was 'Why can't I get the mx.controls.Image component to display correct in a UIComponent wrapper. The easy answer to this all is, UIComponent's updateDislayList() method does NO sizing

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Jason
Thanks, I'll try that, but what is the non-Flex object you're referring to? My Sprite classes? If so, it's the other way around, I'm adding them to a Flex container. If you mean the custom MXML components, then no, I'm adding them to a Flex component, not the other way around. Or do you mean

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Jason
From: Merrill, Jason [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, August 1, 2008 4:57:36 PM Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 OK, let me back up here. First, thanks to those who responded. So I thought by isolating my

RE: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Alex Harui
: Friday, August 01, 2008 10:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 OK, weird, so why then do children of the UIComponent I added, like text and sprites, (with graphics drawn in them) appear, but not Image? Are they rendered

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Merrill, Jason
You can draw those graphics in a UIComponent so I would have grouphandle subclass UIComponent and not Sprite. Thanks Alex, I tried that, but still no joy, AND the graphics don't render now either for some strange reason. All I did is change my previously posted code to: public class

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Laurent Cozic
a Flex object. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Jason [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, August 1, 2008 6:49:50 PM Subject: [flexcoders] Re: problem adding images to UIComponents using

RE: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Alex Harui
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, August 01, 2008 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 You can draw those graphics in a UIComponent so I would have grouphandle subclass

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Jason
SOLVED! Laurent, thank you! That was it. I switched to the Flash framework's BitmapAsset instead of the Flex framework's Image class, and it shows up just fine! Wow, so you can't use Image inside Sprite. Never would have guessed that one! So I learned that you have to be careful how you

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Amy
--- In flexcoders@yahoogroups.com, Jason [EMAIL PROTECTED] wrote: OK, weird, so why then do children of the UIComponent I added, like text and sprites, (with graphics drawn in them) appear, but not Image? Are they rendered in a completely different way? First, you're extending Sprite, so

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Jason
Thanks Amy and Alex, as you can see, I still have a lot of reading to do on writing custom .as based components in Flex. Thanks! Jason

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Jason
It may be true that it's not intended to be described as MXML, but it does work, since you can't add sprites directly to containers like panels, you have to add them to UIComponents first, I used a UIComponent MXML tag elsewhere in my app to add a Sprite and it worked just fine. So I don't

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Jason
image size is probably zero since nobody sized it From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sid Maskit Sent: Thursday, July 31, 2008 1:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] problem adding images

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Jason
Here is another way to illustrate the problem (you can copy and paste this code and try it yourself) - see comments in the code below. This shows UIComponent being added with Actionscript, not MXML and also scaling, giving it width and height as well. ?xml version=1.0? mx:Application

[flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Jason
Oh, and also an article which discusses the problem adding a sprite as a child to a Flex container: http://www.sebastiaanholtrop.com/archives/3 Jason

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Sid Maskit
@yahoogroups.com Sent: Thursday, July 31, 2008 2:18:09 PM Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 Oh, and also an article which discusses the problem adding a sprite as a child to a Flex container: http://www.sebastia anholtrop. com/archives/ 3 Jason

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Rick Winscot
Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 Oh, and also an article which discusses the problem adding a sprite as a child to a Flex container: http://www.sebastia anholtrop. com/archives/ 3 http://www.sebastiaanholtrop.com/archives/3 Jason

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Sid Maskit
: Re: [flexcoders] Re: problem adding images to UIComponents using AS3 I'm not going to pretend to understand this, but here's a little more information which may be useful. This works: myCanvas.addChild( myHelpImage) ; This doesn't work: myHelpUIComponent. addChild( myHelpImage

RE: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Alex Harui
%40yahoogroups.com ] On Behalf Of Sid Maskit Sent: Thursday, July 31, 2008 1:39 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] problem adding images to UIComponents using AS3 There is probably more to it than this, but note that the action script

RE: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-07-31 Thread Alex Harui
PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 2:41:37 PM Subject: Re: [flexcoders] Re: problem adding images to UIComponents using AS3 I'm not going to pretend to understand this, but here's a little more information which may be useful. This works: myCanvas.addChild