...is it considered acceptable?  Is it ok to mix data types in an array?

function getData(which):Array {
        switch (which) {
        case ("A") :
                return ["A",{abc:"dog"}];
        case ("B") :
                return ["B",{def:"cat"}];
        }
}

var goofy:String = getData("A")[1]["abc"];
var felix:String = getData("B")[1]["def"];
_______________________________________________
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

Reply via email to