Do Package Names Have To Be Relative To Fla File Location

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


Similar Posts:


ActionScript 3.0 :: Flash CS5 - Document Class Relative Path & Package Location?

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

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

View 5 Replies

Actionscript 3.0 :: 5001: The Name Of Package 'mvc' Does Not Reflect The Location Of This File

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

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

ActionScript 3.0 :: Output Error:the Name Of The Package "greet" Does Not Reflect The Location Of This File?

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

ActionScript 3.0 :: Compile Package File - Error: A File Found In A Source-path Must Have The Same Package Structure?

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

Actionscript 3.0 :: Setting Relative Package Source Path In Settings Flash CS4

Jan 27, 2009

I am having some trouble setting relative package source path in the ActionScript Settings Flash CS4.Below is the folder structure on my computer.[code]The only way it will work is with an absolute path like /Users/ jenrosamond/Desktop/Tri-Template/classes.This project is getting moved around to several different machines though, so that absolute path isn't going to work.

View 1 Replies

Flex :: Mention A Remote Location As A Relative Path?

Nov 5, 2009

how to give a relative path in URLRequest paramate and download that file.I found it from this particular stack overflow post .now if If give my machine's relative path, C:/sample/DefectList.xls it works.Now I have to access an xls file kept in the server machine or any other machine,say my team mate's machine. The ip address is 172.17.196.124 and the location is C:/sample/test.xls.I tried

var request:URLRequest = new URLRequest"file://172.17.196.124/c:/sample/test.xls");

But it throws the Error#2032.How to mention a remote location as a relative path?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="loadFile()">[code].....

View 3 Replies

Actionscript 3 :: Check If A Movieclip Exists On A Specific Location Relative To Event.currentTarget?

Sep 22, 2011

How can I check if the stage contains a movieclip on a specific x and y location on the stage?I'm building a colour-guessing game. The purpose is to walk a path through a generated field of hexagons, each assigned a random colour (yellow, red, blue or green), based on what soundfile you hear. So if you hear "yellow", you have to click a yellow tile etc.But because I want it to be a path, and the colours of the tiles are randomly generated, I have to check which colours border the currently active tile. I literally have no idea how to do this. I thought this might work but it doesnt:

if ((this.tile.y == (event.currentTarget.y - 64)) != null) {
//add the colour of this tile to array
}

[code].....

View 2 Replies

ActionScript 3.0 :: Import Location Of Package Doesn't Work?

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

Flash Error 5001n: Name Of Package Does Not Reflect Location?

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

ActionScript 3.0 :: Error 5001 Does Not Reflect Location Of Package

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

Actionscript 3 :: Get List Of Class Names In Package?

May 20, 2010

Is there any way I can get a list of all the classes in a particular package?

I know getDefinitionByName, getQualifiedClassName, and getQualifiedSuperclassName in flash.utils can find me a class, but I can't find anyway to find all the classes in a package at runtime.

View 1 Replies

Flash :: What Does 'com' Stand For In Package Names And Folders

Jun 23, 2010

I tried googling this but can't find anything. I'm just curious as to why we use the folder name 'com' as the root directory? what does it stand for? computer?

View 4 Replies

ActionScript 3.0 :: Getting Error 5001: The Name Of Package 'VectorModelStudy12511' Does Not Reflect The Location?

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

C# :: API For Getting Names Of Nearby Shops From GPS Location On A Smartphone?

Feb 1, 2012

I am looking for an API which returns a list of nearby shop/cafe/business names (with coordinates would be great but not needed) within a given radius (or simply "nearby" if available) - from a given set of coordinates (which could be the current location).I am undecided as to which platform to use (native Android or iOS or non-native AIR for example or Javascript/ajax on a webpage) and so welcome any known apis. I would only expect the api to work on web-enabled devices.

View 1 Replies

Professional :: Button File Opens In Saved Location / But Won't Open In New Location

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

ActionScript 2.0 :: CS3 FileReference - Know The 'file Path' When An User Selects A File From 'any Location' On His Hard Disk

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

ActionScript 1/2 :: Load An External .swf File Into A Precise Location On The Stage Of Existing Flash File

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

ActionScript 3.0 :: Relative URLRequest - Read The Raw Php As A File

Feb 10, 2009

var req = new URLRequest("submit.php"); I want to do that for either localhost or the remote host, using the same code. As written, it will read the raw php as a file. If I insert a host name and protocol:

[Code]...

View 2 Replies

Relative/Absolute Link In Posting F4V File To The Web?

Jun 12, 2009

I am working in Flash CS4.  I have successfully run a .wmv file through the Media Encoder, converted it to a f4v file, imported it into Flash, and published it with a skin to a folder on my hard drive.I am learning this on my own (no one else in my state agency knows Flash - we are just getting started with posting videos on the Internet, and this is the test case).I get the following four files in one folder on my hard drive (I have put in parentheses what I think the files do, please correct if I am wrong):
 
oil.f4v (the movie file)

Test.html (the html page in which the swf file is embedded to play back the movie)

Test.swf (the swf file that is embedded in the html page)

SkinUnderPlayStopSeekMuteVol.swf (the skin file that is linked to from the Test.swf file??)
 
My question is:  As long as these four files stay in the original folder, the html page plays the movie perfectly.  As soon as I rename the folder, nothing works.  It appears to be a question of re-establishing a relative/absolute link among the files? I want to post these to my live site in order to test, but of course that won't work yet either.

View 9 Replies

Flash CS5 :: Set Relative Library Path For SWC File?

Aug 21, 2010

I've downloaded the tweener.swc from their google project page I create my fla file put it in a folder and put in the same folder the tweener.swc file.
 
I go to ActionScript settings > Library path > hit the + button > I type the relative path which should be just tweener.swc or not sure but just a dot (.) or / to get all the classes and libraries from the same folder in which the fla is located.
 
But it says it can't load the swc or my imports don't find the classes.
 
P.S. With absolute path it works.

View 12 Replies

Asp.net :: Unable To Set Relative Path For Flash File In MVC Using AC_FL_RunContent

May 6, 2010

I have a website using asp.net mvc in which I need to embed a flash file in view. I am unable to set the relative path for the flash file. Given below is the code I am using:

AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
'width', '487',

[Code].....

where I copied butterfly.swf in a directory called images. images directory resides in the views folder.

If I use code behind( default.aspx default.aspx.cs) in a different solution with the same folder strucuture, browser is able to load the flash file.

View 1 Replies

ActionScript 2.0 :: Pass URL String From External File To AS Variable (dynamic File Names)

Nov 17, 2004

I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?

[Code]...

View 5 Replies

Package My App+videos Into One File?

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

ActionScript 3.0 :: Passing X And Y Values Into A Package From Main Package

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

ActionScript 3.0 :: ASDoc Only Documents 1 Package Function Per Package?

Jan 27, 2010

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.

View 2 Replies

ActionScript 3.0 :: The Package Does Not Match The File Path

Apr 20, 2010

The package does not match the file path

View 4 Replies

ActionScript 3.0 :: Package - How To Say Path To The Main File?

Aug 27, 2010

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.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved