Jump to content
Search Community

TweenMax work in .as files?

jbrand test
Moderator Tag

Recommended Posts

Hi,

 

I was working on learning AS3 by adding some simple movements to a movie clip on the stage. I used TweenMax a lot with AS2 and thought I would try to apply it to my exercise in AS3. I'm working in an actionscript file that gets added as a class to my .fla. As soon as I added the TweenMax imports, I got an error like this:

 

1083: Syntax error: package is unexpected.

 

Everything worked until I added the imports. Does TweenMax not work within an actionscript file?

 

Thanks,

J

Link to comment
Share on other sites

TweenMax can be used just fine in external .as files.

 

make sure:

 

you are using the AS3 version of GreenSock

your com folder is in the same folder as your fla

 

if you want to post a simplified version of the files that are giving you a problem we could try to trouble shoot it more.

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