263 posts
  • 7 Years of Membership
  • Antarctica
  • Author Level 2
  • Collector Level 1
+2 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
  • 7 Years of Membership
  • Affiliate Level 2
  • Author Level 2
  • Beta Tester
+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
  • 7 Years of Membership
  • Affiliate Level 1
  • Author Level 2
  • Collector Level 2
+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

1313 posts
  • Affiliate Level 5
  • Author Level 7
  • Beta Tester
  • Collector Level 4
+10 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
  • 8 Years of Membership
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 2
+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.

1572 posts
  • Top Monthly Author
  • Weekly Top Seller
  • 7 Years of Membership
  • Affiliate Level 4
+4 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