Jump to content
Search Community

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

kellyimaging test
Moderator Tag

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

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

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