Jump to content
Search Community

New to TweenMax

Axorr test
Moderator Tag

Recommended Posts

I am attempting a short little tut to get a little taste of TweenMax.

 

I am unable to get the import functions to work.

The original tutorial code was;

 

//Import TweenMax

import gs.*;

import gs.plugins.*;

TweenPlugin.activate([blurFilterPlugin]);

 

 

Reading around these fine forums, I found that the newer, correct way to make this call is now;

 

//Import TweenMax

import com.greensock.*;

import com.greensock.plugins.*;

TweenPlugin.activate([blurFilterPlugin]);

 

 

However, when using the code above, I get the following compiler errors.

 

1172: Definition com.greensock could not be found.

1172: Definition com.greensock.plugins could not be found.

1172: Definition com.greensock could not be found.

1172: Definition com.greensock.plugins could not be found.

1120: Access of undefined property TweenMax.

1120: Access of undefined property TweenPlugin.

1120: Access of undefined property BlurFilterPlugin.

1120: Access of undefined property TweenMax.

 

 

Any thoughts? This is with AS3.

Link to comment
Share on other sites

A-yup! The com directory (and all the goodies in it) is in the same root directory as the .fla I am playing with.

I DL'd the AS3 version 11 code.

 

I have gone through the getting started page, that's where I first found the errant code in the tutorial I was attempting!

Link to comment
Share on other sites

  • 1 year later...

I had the same errors you were getting, the problem was that I was putting "greensock" folder directly into my working directory (skipping the com folder). Flash develop would automatically rename the classes, messing things up. When I included the "com" directory it worked perfectly!

Link to comment
Share on other sites

  • 9 months later...

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...