Stimpson
08-05-2004, 10:29 AM
Hey people :).
Does anyone know why this does work:
var easeClass=mx.transitions.easing["Elastic"];
trace(easeClass); // traces '[type Function]'
As supposed to this:
var classID:String="Elastic";
var easeClass=mx.transitions.easing[classID];
trace(easeClass); // traces 'undefined'
And to make it more weird, this makes it work again:
import mx.transitions.easing.*;
trace(Elastic); // traces '[type Function]'
var classID:String="Elastic";
var easeClass=mx.transitions.easing[classID];
trace(easeClass); // traces '[type Function]'
I'm puzzled :confused:
Does anyone know why this does work:
var easeClass=mx.transitions.easing["Elastic"];
trace(easeClass); // traces '[type Function]'
As supposed to this:
var classID:String="Elastic";
var easeClass=mx.transitions.easing[classID];
trace(easeClass); // traces 'undefined'
And to make it more weird, this makes it work again:
import mx.transitions.easing.*;
trace(Elastic); // traces '[type Function]'
var classID:String="Elastic";
var easeClass=mx.transitions.easing[classID];
trace(easeClass); // traces '[type Function]'
I'm puzzled :confused: