> Can something like this be done? Just curious...
>
> function traceNum(i:int):void{
> trace(i);
> }
> function traceString(a:String):void{
> trace(a);
> }
>
> var s:String = "hi";
>
> (s!="")?traceString.call("yes"):traceNum.call(44);
Sure. Function calls are valid expressions.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders