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

1560 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
+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 :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by