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.
--- 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
--- 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
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.
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
]
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
: [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
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
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
: 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
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
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
@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
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
--- 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
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
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
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
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
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
@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
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
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
%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
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
25 matches
Mail list logo