ActionScript 3.0 :: Package Folders Into Custom File?
Nov 24, 2009
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.
View 0 Replies
Similar Posts:
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
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 11, 2010
I've worked wioth sub classes so I know how they work but I always work with everything all in one folder which can get messsy when there are a lot of classes to work through. So i started to make folders inside of my main folder but it's not working. Thought it may be to do with package names but as far as i know, for the whole "classes in separate folders" things that's how they are supposed to be.
View 2 Replies
May 14, 2009
I searched the forum, could not find questions like this so I hop this is the right forum.[code]...
how I should add this package to CS4?
View 1 Replies
Dec 24, 2009
I'm trying to create a custom multi-touch application that consists of a package containing about 6 classes at the moment. I'm trying to find a way to communicate between the various classes when certain custom events happen but am having a hard time making custom events.
I've tried about 5 different tutorials online for creating custom events and none of them have worked. The code is a bit extensive so I won't attach it but the specific situation I'm dealing with goes like this:
There is a drop down menu system that contains file names from an XML file. When the file name is clicked in the menu I want a custom event to be dispatched that I can pick up in another class file that loads the name of that file into a "status bar" textfield element elsewhere in the app, and later a class that will open the file and add it to the stage.
View 2 Replies
May 31, 2011
I'm using Flash Builder and was wondering how I can include a package created in one project into another project?
View 2 Replies
Aug 31, 2010
I have a FMS set up and when I do a normal video stream I use an address like [URL] So I want to make it so that I can stream from sub folders in the VOD file like [URL] This doesnt seem to work.
View 13 Replies
Oct 20, 2011
I want to create an flash file in which when user clicks on download button, the files from USB(pen drive) will get copied to user's desktop.Is it possible to download/copy whole folder(with all files in it) to user'desktop? or i can only download/copy files?
View 14 Replies
Mar 31, 2010
I'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess.Is there a way to set a package declaration for MXML files? After all it just gets translated into AS3 classes. This seems to work in regular Flex projects using a namespace declaration so I'm at a loss how that is supposed to work. The other option is building out all the components in AS3 which I'd like to avoid.
View 1 Replies
Sep 26, 2009
Recently, I writed a programe about creating a text file and writing data into it in the server application folder. My code is as following:
[Code]...
Supplement: The text file named test.txt doesn't exist before create the fileObj, an instance of File Class.
View 1 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
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
Apr 20, 2010
The package does not match the file path
View 4 Replies
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
Feb 6, 2012
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
View 1 Replies
Jul 25, 2009
is it possible to open extention package files and modify it??
View 2 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
Jul 7, 2010
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?
[Code]....
View 3 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
Aug 4, 2011
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:
HelloWorld.as:
ActionScript Code:
package {
[code].....
View 3 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
Jun 30, 2011
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.
View 1 Replies
Mar 17, 2009
i was wondering when I import a class, for example "import flash.text.*;", and when I import the same class in the subsequent AS file in the same package, isn't it disk space consuming? If so, is there a way to like, import it once and it will apply to all the other AS in your package?
View 2 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
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
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
Dec 14, 2004
I have classes witch resides in this package :com.network.interface_as. When I try to load one class from that package in another class in the same package like this:
[Code]...
View 2 Replies
May 17, 2011
I have Flash Media Server 3.5 on a Windows server, but I don't no much about how to make it work. Until know we have only used it for live streaming.I have let myself guide through the beginners pages and they're helpful, testing everything locally (applications/babyvultures/streams/_definst_/vultures.mp4).The problem is when I copy my project to the server; same structure, but no video. If I move the file to the applications/vod/media, and change the path in the script
So the big question is: am I able to have sub folders within the applications/vod ?
The thing is, that I want to publish videos from different sites that is also located on the server, and what I thought I could do, was to make sub folders, one for each site and then people can access their streaming folder via FTP, being able to publish their own videos with the advantage of rtmp streaming.
View 9 Replies