ActionScript 3.0 :: 5001 Error " The Name Of Package 'flashdev' Does Not Reflect The Location Of This File" ?
Dec 22, 2009
5001: The name of package 'flashdev' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file.this is the error i get.Ill tell you what ive done.first i created a .as file.i have created a package like:
package flashdev{
//code here
public class ooclass{}
}
then i create a .fla file and sai
import flashdev.ooclass
defined a new() class here
.... and then i get this error. I thwen tried to set folder locations within flash cs3 and still couldnt get it to work.What can i be doing wrong
View 2 Replies
Similar Posts:
Feb 29, 2012
So I have a shell.fla file, on the same level as that there is a core_classes folder. Inside of the core classes folder is a core_initialize.as and a xml, buttons, and loaders folders. Inside of the loaders folder is swf_loaders.as
Inside of the buttons folder is menu_buttons.as
The package name for menu_buttons.as is core_classes.buttons The package name for swf_loaders.as is core_classes.loaders
When I run my Shell.fla I get the 5001 error Package name 'core_classes.loaders' does not reflect the location of this package. Please move this to the file. 'core_classes/loaders/swf_loaders.as'.
But where it lists the location of the error in the compile errors box it lists 'core_classes/loaders/swf_loaders.as'
I've checked the spelling everything is spelled right, I made sure I didn't mix up the two package names..
View 1 Replies
Jan 26, 2011
i'm trying to start organizing projects i have this folder structure: working>flash>as3Study>VectorModelStudy12511>src
my document is in VectorModelStudy12511 i have class paths to VectorModelStudy12511 and src the top of my document looks like:
[code]...
and i'm getting this error:
5001: The name of package 'VectorModelStudy12511' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Users obDesktopProjectsWorkingFlashAS3Stu dyVectorModelStudy12511VectorModelStudy12511Docu ment.as
what am i doing wrong????
View 4 Replies
Feb 11, 2009
The error message I'm getting is as follows:5001: The name of package 'mvc' does not reflect the location of this file. change the package definition's name inside this file, or move the file. /Desktop/mvc/Model.as
View 6 Replies
Nov 5, 2011
I don't use so often package and I don't understand why flash send a 5001 error on this
ActionScript Error #5001: The name of package does not reflect the location of this fileI have à fla located in the "test" folder :
import flash.display.Loader;
import com.MyLoader;
var photourls:Array = ["http://www4.pictures.zimbio.com/mp/6v5wRot-Ry9l.jpg"];
var ldr: MyLoader;
var id:uint = 0;
[Code]...
View 4 Replies
May 23, 2010
output error: The name of package 'greet' 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 SettingsIgalMy DocumentsmeirangreetGreeter.as
I keep on recieving this output error although my source path is set to C:Documents and SettingsIgalMy Documentsmeirangreet.
View 1 Replies
Aug 29, 2010
I'm getting an error on Flash that I've never run in to before.
5001: The name of package 'Document'does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Work2009-2010FlashTestsDocument.as
The fla is called TestEvents1... and that's all the info I think is related.What's happening here?
View 1 Replies
Oct 11, 2010
Because I was having so much trouble using packages in my other programs I created two simple classes to figure it out. I have placed these two classes in a folder named packageTest and even made a new path there in flash preference.
[Code].....
I am running them from a .fla file with packageTest.FirstPackage set as the document class. I receive the following error when I compile. 5001: The name of package 'packageTest' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:UsersDirkDesktopRuckuspackageTestPackageTr aveler.as
View 5 Replies
Apr 25, 2011
I have a movie clip called turret that is on the screen and is instanced as Turret, I have a movie clip called bullet and that is in the library exported for AS "bullet" no quotes. Here is the website [URL] My frame (main) class is called du34
[Code]....
View 3 Replies
Feb 26, 2010
error 5008:It says the name of definition 'Menu' does not reflect the location of this file.But I have 3x checked it and it is in the correct place.
View 1 Replies
Dec 19, 2011
I have an actionscript file,it has a package name,it locate C:demo directory,like follows:
package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............
Then I compile above code like following command,but it raise following error:
C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml
C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?
View 1 Replies
Jul 27, 2009
I'm trying to do some restructing of a flash codebase, and I was wondering if anyone could clarify something for me as I'm unsure whether what I'm trying to do goes against a fundamental priciple of flash development or I'm being confused by the Flash CS4 user interface(I've got a java development background, so some of the interaction between fla files and the like is somewhat difficult at times to get my head around). I've done several searches but can't seem to find any similar problems, apologies if any exist.
Basically, I want to restructure my codebase and move my fla files around by putting them at a different location in the directory structure.
Existing structure:
basecompany namecomponent name
where fla files are stored in base, and code is stored in company namecomponent name, and code in said location is in the company name.component name package.
What I want to do is move my fla files from base to component name for each individual project. The actual location of the code is unchanged, but the fla files no longer compile, giving me a 5001 error - package name does not reflect location. I'm assuming that this is because the relative location is different - as far as the fla file is concerned, the code it is referencing is located at component name, not company namecomponent name. Is it possible to make the CS4 publisher understand that the fla file is not at the root of the package structure, and if so how?
View 1 Replies
Sep 16, 2010
I've run into a strange error and I was wondering if anyone had experience with this.I'm working on a flash platforming game and I recently released a demo. I was having a problem with the getting the file to play correctly when I noticed an error:The file plays differently depending on where the file is saved. For example:Platform Explorer (http://jrjellybeans.net/platformExplorer.swf).This file runs fine. Platform Explorer (http://jrjellybeans.net/flashGames/platformExplorer.swf).This file opens up the level editor. Yet, I make no call to the level editor anywhere in this particular file.The thing is that the files are EXACTLY the same. Just saved in different locations.
View 2 Replies
Apr 7, 2010
I have a file trying to import a package which has info re: create a custom cursor
import AS3.proyectos.trivia.CustomCursor; var myCursor:CustomCursor = new CustomCursor;
The class/package file CustomCursor.as reads as follows:
[code].....
View 8 Replies
Dec 13, 2011
It seems I have no trouble pointing an FLA's document class to my project's class package when the FLA is at the same root level as the package's top-level directory. However, if the FLA is nested in a sub-directory, then relative paths to a class nested in the package will not work.example package & class location : [url]....
Case1 :
Package location : MyProject
FLA location : MyProject[code]........
If someone can provide an explanation as to why nested FLAs can't point to custom packages in parent-level directories, OR demonstrate how this can be done,
View 9 Replies
Oct 13, 2009
This is with Flexbuilder 3.2, Eclipse 3.3.2.I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error:
A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.I do declare the package in these classes - I think failure to declare the package is the usual reason for this error.To add to the mystery, many classes in this project compile without errors.
View 1 Replies
Aug 21, 2011
I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
View 13 Replies
Dec 14, 2009
THE ERROR 5006: An ActionScript file can not have more than one externally visible definition: FunButton, grow
View 1 Replies
Mar 23, 2010
How can I call class.functio from timeline?? with package name
package game {internal class carnode {
public function carnode() { function printtrace():void{ trace("Tesitng package
[code]....
View 2 Replies
Jul 4, 2009
I am getting very strange error with fl.controls package. When I try to import the package it says the package couldn't be found.
[Code]...
I don't know what to do with these errors. The code seems fine to me, I've checked it again and again, but still can't compile it with errors.
View 3 Replies
Jul 28, 2011
This is my code
ActionScript Code:
package test{
class Main{
public function Main(){
}
}
}
View 6 Replies
Dec 10, 2009
I'm new to AS3, I am trying to convert my as2 to as3 for my movie and I am getting this error:Line 1: 1083: syntax error: package is unexpected.[code]
View 1 Replies
Dec 10, 2009
So I'm new to AS3, I am trying to convert my as2 to as3 for my movie and I am getting this error: Line 1: 1083: syntax error: package is unexpected
[Code].....
View 2 Replies
Feb 15, 2011
I am using Flash CS5 and am getting a very odd error when I compile. All my classes are in the package com.es3.as2. In the first frame of my movie, I have the following code:
import com.es3.as2.Shell;
I have my classpath set correctly. When I compile, I get this error:
, Line 1 There is no class or package
with the name 'com.es3.ProgressBar'
found in package 'com.es3'.
This is odd because nowhere do I refer to a "com.es3" package. It's always "com.es3.as2".If I remove the import line, the movie compiles with no errors (but without the initialization code, it doesn't run correctly).
View 1 Replies
Sep 27, 2007
Word to the Flash Genies-- Heres my wish that hopefully someone else is struggling with an enormously mind-boggling bug in flash cs3-- when I try to create a public class that extends any of the native flash display objects, and I put this in its own package, even after specifically importing the specific class OR the package wildcard .* the fla that I'm compiling returns error 1017-- Base Class Definition not found. The fla is set to the correct classpath. This situation slipped from 'minor annoyance' to 'mind boggling' after I moved the directory to a different pc with cs3, reset the local classpath and it compiled perfectly. So then I moved the directory to a mac, running flex builder, and made a tester file to use the class, which compiled perfectly.
For some wierd reason, this particular computer cannot compile, even though nothing had changed in the actual class. Maybe it is important to note that this machine is running Vista (and perhaps should not be!)? Maybe it is important to note that the package is part of an SVN directory? Maybe it is important to note that after re-saving the same class file, changing only the class name (from BitmapSprite to BSprite) enabled it to compile on this machine, even though both the mac and other pc (running windows XP) could compile the class as BitmapSprite. I'm not sure if the name change or just re-saving allowed it to compile--but maybe it's significant that the new named instance was not committed to svn.
View 3 Replies
Mar 7, 2009
I want to know the 'file path' when an user selects a file from 'any location' on his hard disk. I like to know is it possible to fetch the entire file URL instead of the file name alone?
Code:
var fileRef= new FileReference();
fileRef.addListener(mylistener);
mylistener.onOpen = function(file){
[Code]....
View 7 Replies
Nov 20, 2009
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
View 3 Replies
Nov 11, 2011
I'm trying to compile some code and I keep getting a "Type was not found or was not a compile time constant" error, but it doesn't give me a location. When I right-click the error and select "Go to source" nothing happens. Anyone know what could be causing something like this? Or where I should look if there is nothing in the location field of the error report? It's really perplexing.
View 4 Replies
Nov 23, 2010
I have a 3.5MB SWF that points to ~80 FLVs that range in size from 3MB to 10MB.
Is there a way I can package all of these files into one ~500MB file that can be run locally? My client wants sales people to take this app around with them on their laptops and not require the internet and I don't want them to have 100 files to mess with.
View 2 Replies
Dec 18, 2009
I am having troubles passing an x and y argument into a package function that creates a projectile on stage at the tank.gun's x and y.I have attached a zip of the code I am working on.[code]
View 6 Replies