bjornbjorn
01-09-2007, 02:49 PM
Hi guys! Just to let you know I'm pretty new to Flash/AS so be gentle with me ;) .. my first introduction to the subject was FOTB06 and it surprised me how good AS3/Flex was.
Anyhow, on to the subject - I'm creating a pretty large enterprise application, and I'm wondering whether or not to use MXML.
I see the use for MXML - I think it's fun and easy to work with, and it's extremely fast to get something up and running quick.
However, coming from a Java world I'm used to the idea of classes and having a main class which inits all the others.
So, I searched this forum and I found this thread (http://www.actionscript.org/forums/showthread.php3?t=124589&page=2&highlight=applications) where madgett suggests this solution:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:app="app.*">
<app:Test />
</mx:Application>
Basically just a MXML file which inits Test
package app
{
public class Test
{
var window:TitleWindow = new TitleWindow();
addChild(window);
}
}
sidenote: why doesn't that TitleWindow above show??
.. but the posts who followed seemed kind of negative to that solution.
Any arguments for / against? What would people in here recommend for someone starting today - creating a large, scalable application?
- bjorn
Anyhow, on to the subject - I'm creating a pretty large enterprise application, and I'm wondering whether or not to use MXML.
I see the use for MXML - I think it's fun and easy to work with, and it's extremely fast to get something up and running quick.
However, coming from a Java world I'm used to the idea of classes and having a main class which inits all the others.
So, I searched this forum and I found this thread (http://www.actionscript.org/forums/showthread.php3?t=124589&page=2&highlight=applications) where madgett suggests this solution:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:app="app.*">
<app:Test />
</mx:Application>
Basically just a MXML file which inits Test
package app
{
public class Test
{
var window:TitleWindow = new TitleWindow();
addChild(window);
}
}
sidenote: why doesn't that TitleWindow above show??
.. but the posts who followed seemed kind of negative to that solution.
Any arguments for / against? What would people in here recommend for someone starting today - creating a large, scalable application?
- bjorn