[flexcoders] Can you put a UIComponent in a Sprite

2009-02-03 Thread Jason Ervin
Is it possible to put a UIComponent in a Sprite?  I assume not since
Sprite is lower on the chain and since it doesn't contain the timeline.

Yes? No?



RE: [flexcoders] Can you put a UIComponent in a Sprite

2009-02-03 Thread Ryan Graham

Sure it's possible... Sprite.addChild() takes a DisplayObject as a
parameter, and both Sprite and UIComponent are DisplayObjects:

 

UIComponent  FlexSprite
<http://livedocs.adobe.com/flex/3/langref/mx/core/FlexSprite.html>  
Sprite
<http://livedocs.adobe.com/flex/3/langref/flash/display/Sprite.html>  
DisplayObjectContainer
<http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectCon
tainer.html>  InteractiveObject
<http://livedocs.adobe.com/flex/3/langref/flash/display/InteractiveObjec
t.html>  DisplayObject
<http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObject.ht
ml>  EventDispatcher
<http://livedocs.adobe.com/flex/3/langref/flash/events/EventDispatcher.h
tml>  Object <http://livedocs.adobe.com/flex/3/langref/Object.html> 

 

Can't say flex will like it so much though. What are you trying to do?

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason Ervin
Sent: Tuesday, February 03, 2009 4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can you put a UIComponent in a Sprite

 

Is it possible to put a UIComponent in a Sprite? I assume not since
Sprite is lower on the chain and since it doesn't contain the timeline.

Yes? No?

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.<>

Re: [flexcoders] Can you put a UIComponent in a Sprite

2009-02-04 Thread Igor Costa
It's not possible

UIComponent [image:
Inheritance]FlexSprite
[image:
Inheritance]Sprite
[image:
Inheritance]DisplayObjectContainer
[image:
Inheritance]InteractiveObject
[image:
Inheritance]DisplayObject
[image:
Inheritance]EventDispatcher
[image:
Inheritance]Object 

See
inheritance  of Sprite from UIComponent and probably you will gonna mad to
accomplish that.


regards
Igor Costa


On Tue, Feb 3, 2009 at 9:25 PM, Jason Ervin wrote:

>   Is it possible to put a UIComponent in a Sprite? I assume not since
> Sprite is lower on the chain and since it doesn't contain the timeline.
>
> Yes? No?
>
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org
<>