Re: [Flashcoders] pure AS3 app to use mx.* stuff

2008-02-15 Thread Gregory N
Thanks a lot, Cory, this helps, but only partially. //code in main class extending Application var triangle:FlexSprite = new FlexSprite( ); //draw triangle rawChildren.addChild(triangle); shows a triangle in SWF, but also shows an error: (output) [Fault] exception, information=ArgumentError:

Re: [Flashcoders] pure AS3 app to use mx.* stuff

2008-02-14 Thread Gregory N
Glen, ...you can have your class in the app folder called SystemCore.as this looks like it extends a display object Not exactly :-) If It extends Sprite, the result is grey-gradient standard flex bg, w/o any traces of my objects. Trace commands are executed nice, however. If I make the main

Re: [Flashcoders] pure AS3 app to use mx.* stuff

2008-02-14 Thread Cory Petosky
Flex apps override addChild to only allow things that implement IUIComponent. If you need to add a child that's just a plain display object, manipulate the rawChildren property instead. On 2/14/08, Gregory N [EMAIL PROTECTED] wrote: Glen, ...you can have your class in the app folder called

Re: [Flashcoders] pure AS3 app to use mx.* stuff

2008-02-13 Thread Glen Pike
Hi, I had similar problems - I have been developing with FD3 (nice) to write AS3 code and using Embed to add graphics / sounds at compile time. Graphics were created as MovieClips in Flash 8 - I have one file and set Linkages. Previously with AS2, I have used the Linkage / AS2 class

Re: [Flashcoders] pure AS3 app to use mx.* stuff

2008-02-13 Thread Gregory N
Glen, thanks for your reply. Previously with AS2, I have used the Linkage / AS2 class file method, so this is a similar thing. Look at Keith Peter's post here for some direction: http://www.bit-101.com/blog/?p=853 I'd like to mention one thing here about embedding symbols

Re: [Flashcoders] pure AS3 app to use mx.* stuff

2008-02-13 Thread Glen Pike
Hi, Sorry was getting confused with what you were trying to do... You can write pure AS3 files for Flex - all MXML gets compiled down to AS3 before it is compiled to bytecode. (I had done followed an example online which has a pure AS3 component - once it is written, you add the