Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
kellyimaging

Error: 5007 An ActionScript file must have... [SOLVED]

Recommended Posts

Error: 5007 An ActionScript file must have at least one externally visible definition.

 

I am trying to convince the new development team I am working with to start using Green Sock as they transition into AS3.

They downloaded the GS library last week and I made sure they were setting up their Publish Settings correctly to point to the correct GS folder.

We are using TweenMax only, not TweenLite.

 

The problem is:

When I pass them one of my working .fla files, they can run it on their computer until they re-save the file. Then it gives them this error:

"TweenLite.as,Line 1 5007:An ActionScript file must have at least one externally visible definition"

 

But when they pass the folder back to me, then it runs fine!?

Are we being stupid here? could be.

 

Any ideas what the heck is going on?

 

-thanks!

Kelly

 

http://www.hurlingdesign.com

Link to comment
Share on other sites

I bet you used the wrong AS version in your project. In other words, if your FLA is set up to publish to AS3 but you use the AS2 GreenSock classes, it'll spit out that error. Make sure you download the appropriate classes. I'd recommend v11: http://www.tweenmax.com

Link to comment
Share on other sites

clues:

I also made sure that they have the AS3 output in their publish settings, AND made sure the class path was correct.

They are running CS4 10.0.2.566, I'm running running CS4 10.0.2

Link to comment
Share on other sites

I'm going to have them rebuild the files from scratch, and see if we get the same issue.

Link to comment
Share on other sites

Are you absolutely POSITIVE that the actual class files are AS3? It definitely sounds like you've got AS2 classes instead of the AS3 ones. Try deleting your ASO files too. Check to see if your classpath points to an AS2 directory as well.

Link to comment
Share on other sites

hmmm, same error. I'll have to try building the file on a 3rd computer, when I get a chance, to make sure it's a set-up issue with that particular mac.....

I'll keep you posted.

Link to comment
Share on other sites

""Are you absolutely POSITIVE that the actual class files are AS3? It definitely sounds like you've got AS2 classes instead of the AS3 ones. Try deleting your ASO files too. Check to see if your classpath points to an AS2 directory as well. ""

 

I will check again.

We set the classpath to the AS3 directory only.

 

Everybody is out to lunch..... I'll check when they get back :P

Link to comment
Share on other sites

We got it working!!!

You were right, the wrong files were in the wrong folder :P

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