ActionScript 3.0 :: Possible To Open Extention Package File?
Jul 25, 2009is it possible to open extention package files and modify it??
View 2 Repliesis it possible to open extention package files and modify it??
View 2 RepliesI 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?
I am using Flash Pro CS5.5 to create a video player for the iPad. I can get it to work locally, but when I test it on the iPad, it cannot open the video file. The video file is included in the package file. Is there a trick to referencing a video in the package? Here's what I am trying:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.play("myvideo.mp4");
I'm getting close to finishing the application I'm working on, and the person I'm working for is going to be distributing it via DVD. to package my flash file in some format so that when the user opens the file, it will open the swf in an internet browser?
The reason I need to do this is because I have some xml data in it that is keeping it from being fully functional unless opened in an internet browser. I'm not entirely sure why this occurs, because the file works fine in Flash Player on my computer, but not when moved to anyone elses. So, the workaround is to open it in an internet browser.
Anyway, I figure that in order to have the file open in an internet browser, it'd have to be packaged as an exe or some other similar file type, but we want it to be cross-platform.
Maybe there's an easier way, but I need to find out how to package my swf file so that it automatically opens in a browser.
How do I change the extention that flash searches for when I place a movie on the stage ?hen I upload it to the server it cant find the video (because the extention is on my computer...)
View 4 RepliesI 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]
View 6 RepliesI'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.
The package does not match the file path
View 4 Replieshow 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 RepliesI'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 RepliesI 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 RepliesI'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'm having problems getting the tutorial to work so I decided to look at the source fla. But the Source file won't open on my computer, get the message "failed to open document".
View 3 RepliesMy CS5 flash crashed when I changed the name of the root folder while it was open. Swf is working fine, but .fla file wont open, I get a "Failed to open document" message. This is a disaser because I've lost two days of work. Is there anything that could be done to fix this problem?
View 2 RepliesOkay 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]....
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
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].....
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 RepliesI 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 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 RepliesThis 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.
i have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll.
View 1 Repliesi have a standalone exe flash file which opens autorun from a cd, and i need to open a windows browser directly from that flash. i want it to open the htm without any toolbars or scroll...
View 1 RepliesIs there a way to open the "open file dialog box" in a swf using javascript.
The swf is on a webpage.
I have been working on a project for a week and suddenly it crashed during save (nothing strange had been imported or anything i just saved after moving content around) and now i cant open my file again. I contacted adobe support who claim that since the problem is related to the file this is not their problem, what a load of HORSE ****, who should i contact about this dell if its an FLA FILE!? I have already renamed the file to flash.zip then opened with WinRar and repaired as a new zip file to a different folder (which removes the corrupt content which is document something.xml) then i tried renaming this folder back to flash.fla however the file still does not open.
View 4 RepliesAnyone can show me how to insert or import a swf file into fla template file.I have a temple FLA file open and after import a SWF file , run test and the swf is not working.
View 2 RepliesI have a flash file using xml to link to html pages all within SharePoint. When I click on a link from inside flash, it opens up a new browser window with the html content.Is there a way to open the html content in the same browser that the flash file is in?
View 6 RepliesI am trying to customize a video player skin from f4player [URL] [the file is mySkin.fla]). I am using flash cs3 pro and I get the error "Unexpected file format" when trying to open the file, a friend has flash cs4 and has the same error. Is there something I could do to open this .fla file correctly? Or maybe if someone could try opening it and saving it again for cs3?
View 1 RepliesI created the parent .swf file, with buttons that open external .swf files. What I would like to do is save the parent file as .exe and have it open external .exe files.
View 1 Replies