--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > > This is aggravatingly difficult to do. > > You don't say what's going wrong, but I suspect that > getDefinitionByName() is returning null when you pass it a string like > "mx.effects.easing.Cubic". That's because the Cubic class doesn't exist > in your SWF... the MXML compiler has no way of knowing that your app > needs it, so it doesn't link it in. One way to get it to be linked in is > to declare a static var of that type. Note that simply importing it is > NOT sufficient to link it in.
I don't exactly know what is going wrong, because I haven't been able to find the most current debug player. Every link I can find that should lead to it goes to a regular player dated somewhere around June. It seems to me that if I am going to add extra lines declaring variables of all the easing types, I might as well hard-code switch case statements, as it is just as verbose and non-extensible. Is there a more elegant way to tell Flex that it needs to link it in? -Amy

