263 posts
  • Has been part of the Envato Community for over 6 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
x360c says
I have a class. It is in the /classes folder. I included it using:
import classes.video01
That file is:
classes/video01.as
I gave the package no name, shouldn’t need one. I start it like this:
package {
    public class video01 extends MovieClip
    {
I get this error:
5001: The name of package '' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Documents and Settings\Zidian Studios\Desktop\flashden\_video01\_video01_purchased\classes\video01.as

Please HELP ! (thnx in advance =D)

2309 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
theflyingtinman says
Please HELP ! (thnx in advance =D)

Not good enough. Lazy, inconsiderate and insincere .. go back and thank everyone who ever helped you personally (and there are lots; you are the most prolific user of Flashden forums as an AS3 mentorship program) and then I’ll tell you what you’re doing wrong with your package ;)

291 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
sonicsight says
package video01{
    public class video01 extends MovieClip
    {
try that im pretty sure you have to name your package the exact file name minus the .as

and flying calm down these forums are here so that people can help each other

1312 posts
  • Has referred 200+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+8 more
LGLab says
and flying calm down these forums are here so that people can help each other

It doesn’t hurt to say thank you though….

133 posts
  • Has been part of the Envato Community for over 8 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
pauliusuza says

package classes { public class video01 extends MovieClip

the package name has to reflect the exact folder structure relative to the main application class.

1552 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
dSKY says

And you should really name you packages, then it would be a lot easier for you to manage all the classes and folder structure :)

by
by
by
by
by
by