ActionScript 3.0 :: The Name Of Package 'packageTest' Does Not Reflect The Location Of File
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
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
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
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.
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?
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..
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
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
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?
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;
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?
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]....
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,
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?
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]....
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?
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.
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]
I'm running into this weird thing with ASDoc. It will only document one package function per package.For example.I have these two functions:
gs.util.printf gs.util.ftrace
In these files:
gs/util/printf.as gs/util/ftrace.as
The only function that get's documented in ASDocs is "printf". But I know it can do more than one. As an example, in the livedocs [URL] There are more than one functions documented.
how to package entire project. I mean to say that i have large project and i want to manage all files. I have main fla file, some xml files. some .as files. right now all this in one folder. i mean to say how to say path to the main file.
I'am trying to import an actionscript file in a internal package in my project. From Java and am used to this to like this import Services.myClass. But the IDE doesn't suggest any classes when I type import Services. So how can I import my AbstractIdManager.as file? Inside this actionscript file, there is a public class named AbstractIdManager which extends EventDispatcher My project structure looks like this: I want to use the AbstactIdManager class in my View videochat.mxml
I have a number of folders that contain data for my application. These data will change a lot through the application, creating different functionality for my app. What I want to do is package these folders into a customized file, like zip but not necessarily compressed and then in some way open it through flash and look into the folders. But the user will only have to copy paste the one single package file and not 4 or 5 folders of files every time and maybe leaving something important behind.
Okay I'm working on a pretty big project, and the last thing I need to do is get this content to display. Here's my lil problem. So I'm loading buildings, and when clicked on, I'm loading a movieclip from the library that has a slideshow movieclip on the first frame, however this slideshow is packaged externally. This slideshow has a "xmlPath" that is defaulted to a XML file. My question is... what kind of code can I use to control which xml is loaded when loading that packaged slideshow?
I had some trouble yesterday with the statement of the file path after the package statement in classes. but now i am encountering something totally strange. I created a simple class to test if my file path naming was correct, it works great it is called hello world. then started to work on the class that i actually want to make...and it gives me an error stating that the file path name is incorrect. it is the exact same as the hello world class, and in the exact same location (same folder as the .fla) here is the code for all three:
I have an Air Application which uses mx:HTML to show a html Page. This html page is located in my bin-debug and as long as i start my application out of FB it works fine.
In Project -> Properties -> Flex Build Packaging -> Package Content the test.html is selected
When I build the project by Project-> Export Release Build the HTML file is not included in the Air Package and so cannot be shown.
I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.
Is there a way in as3 to trace out the swf file's location. I.E. if the swf is located at C:/documents and settings/Desktop/folder1 How do I get the swf to return that path?