Hey mike,
I received your posts after I posted that. Thanks for the info though.
very helpful. It's difficult starting to understand the change from a
movieclip-based view architecture where I would create classes that
push to a view and now this architecture.
Baby steps...
--- In flexcoders@y
> danfrap767Have you been reading my posts? From the thread it dosn't look like you are seeing them or something.You need to create a skin class from ProgrammaticSkin.
Subclass it.Peace, MikeOn 8/11/06, danfrap767 <
[EMAIL PROTECTED]> wrote:
I thought so too, as
Here's a response from Gordon to a similar question I had way back:What does your component extend? If you're
extending a Container, you can only use addChild() to content children which implement
the IUIComponent interface. In order to support the LayoutManager, a content
child has to implement
I thought so too, as it even says in the addChild for a Canvas
documentation that it takes a display object.
but for some reason when I test and after attaching the canvas I then
attach the sprite I still get that same error:
"TypeError: Error #1034: Type Coercion failed: cannot convert
flash.di
Hi Jim,> Canvas.addChild(Sprite),You cannot do this because "The DisplayObject to add as a child of this Container. It must implement the IUIComponent interface."Sprite does not implement IUIComponent. Basically all children of a container have to be a IUIComponent becasue of the way Flex lays
You should be able to use Canvas.addChild(Sprite), because it takes a
DisplayObject, and Sprite does exted DisplayObject.
I don't have time to test it right now, but based on the inheritance
outlined in the docs, it looks like it should work. I'll try to run a
test later; meanwhile, if you have a
I stand corrected:
I wrote "extend" instead of "implement".
Thanks Mike!
-Jim
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your g
> extend mx.core.IUIComponent,A DisplayObject dosn't have to extend UIComponent it just has to implement the IUIComponent interface which ProgrammaticSkin does.ProgrammaticSkin is a Shape/FlexShape subclass.
Peace, MikeOn 8/11/06, dadrobson <[EMAIL PROTECTED]> wrote:
Thanks, Jim. That worked!
After considering myself a very advanced actionscripter I feel like an
idiot with these questions, but...
So than how are you supposed to go about attaching a sprite? since I
can't attach that to the Canvas either.
like I said, I know these are very newbie questions b
Sprite doesn't extend mx.core.IUIComponent, and so you can't use it as
a parameter in the addChild() method of the Panel class. Instead of
using Sprite, try Canvas instead.
HTH
Jim
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archive
10 matches
Mail list logo