Julian,
The problem is - I got to have "new someClass" somewhere in my code
for the other "layouts" to appear under _globals, after which I can
properly instantiate them.
You just need to reference the class, so variables like this...
var hLayoutRef:Function = Horizontal;
var vLayoutRef:Function = Vertical;
var bLayoutRef:Function = Burst;
...will do the trick.
Also, if you're using mtasc you could use the following switch...
-pack com.julik.stack.layout
Also, if you want a more structured way to instantiate these classes,
have a look at the find method of my ClassFinder class here:
http://dynamicflash.com/classes/ClassFinder.as
Regards,
Steve
--
Steve Webster
Head of Development
Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com