Search  

AS3 ERROR 5001

HomeForumsHelp NeededAS3 Error 5001
24717 x360c
222 posts
Sold between 100 and 1 000 dollars Bought between 1 and 9 items
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)

Posted 2 months ago
60461 theflyingtinman
476 posts
Item was featured Sold between 1 and 100 dollars
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 ;)

Posted 2 months ago
34445 sonicsight
284 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 10 and 49 items
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

Posted 2 months ago
51614 LGLab
154 posts
Exclusive author Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 10 and 49 items
and flying calm down these forums are here so that people can help each other

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

Posted 2 months ago
8840 pauliusuza
121 posts
Exclusive author Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

package classes { public class video01 extends MovieClip

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

Posted 2 months ago
52173 dSKY
560 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items

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

Posted 2 months ago