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 package to your namespace
and add an MXML tag in your code to add it to the stage.)
Like with the workaround on the forum you posted - if you have added
your package path to the namespace ( xmlns:app="app.*"), you can write
your code in an AS file rather than an MXML file, then you write it as
you would any other class file - no need for Script tags & mixing mxml /
as code.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application horizontalScrollPolicy="off"
xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:app="app.*"
layout="absolute" frameRate="30">
<app:SystemCore id="sysCore" width="100%" height="100%"/>
</mx:Application>
So the above example, you can have your class in the app folder
called SystemCore.as this looks like it extends a display object or
similar as it has width and height attributes - not sure about extending
other classes.
Glen
--
Glen Pike
01736 759321
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders