> Is there a more elegant way to tell Flex that it needs to link it in?
 
I don't think so. If you're building a SWC, compc has an
-include-classes configuration option, but if you're building a SWF,
mxmlc doesn't have this option and I think you have to create a
dependency in code.
 
> I haven't been able to find the most current debug player. 
 
If you download the SDK or Flex Builder it has the debug player.
 
- Gordon


________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Monday, November 26, 2007 8:05 PM
To: [email protected]
Subject: [flexcoders] Re: Dynamically Changing Easing Function Again



--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "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



 

Reply via email to