263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
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
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 and 1 000 dollars
  • United States
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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United States
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
  • Elite Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 5-6 years
  • Microlancer Beta Tester
  • United Kingdom
  • Attended a Community Meetup
  • Referred between 200 and 499 users
+3 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
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 7-8 years
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
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.

1537 posts
  • Bought between 1 and 9 items
  • Europe
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 100 and 199 users
  • Sold between 50 000 and 100 000 dollars
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