Jump to content
Search Community

import errors on swf export

timschutz test
Moderator Tag

Recommended Posts

The following is what I am importing into my current project:

 

import mx.transitions.Tween;

import mx.transitions.easing.*;

import flash.filters.GlowFilter;

import com.greensock.*;

import com.greensock.easing.*;

import com.greensock.plugins.*;

TweenPlugin.activate([FrameLabelPlugin, ColorTransformPlugin, TintPlugin]);

 

I recently added the greensock classes and plugins into the project.

 

When I go to export the swf, I get these errors:

 

The class 'mx.transitions.easing.Back' cannot be imported because its leaf name is already being resolved to imported class 'com.greensock.easing.Back'.

Type mismatch in assignment statement: found MovieClip where String is required.

There is no property with the name '_currentframe'.

There is no method with the name 'duplicateMovieClip'.

 

Is there a way around this? Going back and changing existing tweens is not an option at this point.

 

Thanks,

Tim

Link to comment
Share on other sites

If you can not change how the tweens work you might want to go through and include only the tweens you want from the mx.transitions.Tween classes.

 

For example import everything but mx.transitions.Tween.Back that way you can use the Back tween as defined in com.greensock.easing.Back;

Link to comment
Share on other sites

Here are my imports:

 

import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.GlowFilter;
import com.greensock.*; 
import com.greensock.easing.*;
import com.greensock.plugins.*;
TweenPlugin.activate([FrameLabelPlugin, ColorTransformPlugin, TintPlugin]);

 

Here is an example of a tween using the mx class:

 

new Tween(mc, "_x", Regular.easeInOut, 0, 100, .3, true);

 

Unless I remove mx.transitions.easing.*, the above tween doesn't happen.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...