[FlashCodersNY] Flex UIComponent SWF not working
Tim Beynart
timbeynart at gmail.com
Tue Sep 2 07:48:42 PDT 2008
bogus.
So is there a way to create library assets using mxmlc, so I could
segregate the classes I need into "library" assets?
Like this:
[Embed(source="SwfComponent.swf" symbol="myLibraryItem")]
Otherwise I am going to create swc and call it a day.
I am trying to avoid using the IDE at all costs, this is going to be
passed to Java developers who need to use mxmlc only.
On Tue, Sep 2, 2008 at 10:22 AM, seth hillinger <seth at rd11.com> wrote:
>
> maybe this helps http://www.bit-101.com/blog/?p=1435
>
> On Sep 2, 2008, at 10:02 AM, Tim Beynart wrote:
>
> > I am trying to create a SWF that exposes public methods, etc to Flex.
> > I have a basic class that extends UICOmponent. I compile using mxmlc.
> > For some reason I cannot create an instance of the embedded swf class.
> >
> > In my Flex Application base class, I have the following code:
> >
> > [Embed(source="SwfComponent.swf")] //swf created from a class called
> > SwfComponent.as which extends UIComponent
> > private var swfC:Class;
> > private var comp:SwfComponent;
> > .....
> > private function initApp():void{
> > c = new swfC() as SwfComponent;
> > trace("comp:"+c);
> > }
> >
> > The trace gives me 'null'. For some reason I cannot create an
> > instance of the embedded swf. This is driving me nuts. The class
> > will instantiate fine if I use MXML syntax < SwfComponent > in the
> > Application MXML file. Can anyone give me insight into what I am
> > doing wrong?
> >
> > _______________________________________________
> > FlashCodersNY mailing list
> > FlashCodersNY at flashcodersny.org
> > http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>
>
> _______________________________________________
> FlashCodersNY mailing list
> FlashCodersNY at flashcodersny.org
> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
--
+ Tim Beynart
+ tim at timbeynart.com
+ 706.372.6994
More information about the FlashCodersNY
mailing list