Flex :: Compiler Option Copy Non Embeded Files To Destination Folder
Jul 20, 2009i am using mxmlc for building the flex projects using ant.how to use flex builder-> copy non embeded files to destination folder compiler option in ANT
View 1 Repliesi am using mxmlc for building the flex projects using ant.how to use flex builder-> copy non embeded files to destination folder compiler option in ANT
View 1 RepliesI'm building an swf that's suppose to work locally (offline).That swf is like a menu for some other swf that the user will download and will be prompted to put them in the same folder of the main swf.What I want to do is the main swf to be able to recognise which swf the user have downloaded in order to show them 'available' on main menu.Is there a way to check the folder destination for swf files or something?
View 4 RepliesI have a db file Resided in Flex Air Bindebug Folder,Here i want to Move/save this db File at another location let say In mydocument/or any Folder, I am not able to do it's programatically.
View 2 RepliesHere's what works with ant build.xml:
[Code]...
I tried the following values in Project > Properties > Compiler Options > Additional Compiler Options but none of them worked:
I'm hoping to produce a CD of Captivate lessons to be accessed via a Flash menu. (Using Flash CS4, but with ActionScript 2). I can get the files to work from the disc, but as they are large files, they take less time to open if downloaded onto the user's machine first.
Is it possible to use some ActionScript to take the folder of files and copy them onto the desktop so that I can then point the menu items to the newly copied folder? I've seen that there is a download option in ActionScript but this seems to bring up a dialogue box and allows the user to place the files wherever they want. Ideally I'd like the process to be automatic.
I've got external folder with resources (graphics, movies, etc) which is shared between a couple of projects. I'm able to link this resource folder in FlashBuilder (as described in [URL]). After that all the paths to embeds are relative to the project, and that's the behaviour I want.
This linked resource appears in .project file as follows:
<linkedResources><link>
<name>resources</name>
<type>2</type>
<locationURI>DOCUMENTS/Shared/resources</locationURI>
</link></linkedResources>
Note, that it isn't source folder and it is not included in compilerSourcePath tag. The question is how can I specify resource linked folder in mxmlc command line arguments? -source-path is not working here, relative pathes to embeds can not be resolved.
i have situation in which i have some library projects, say
"DataProcessors","Lib2"
, included in my lets say "MainProject" (a web project) placed on directory
"E:in-debugMainProject.swf"
, when i build the project it automatically place all the libs .swf in its "E:in-debug" folder, but when i debug or run the project it it gives loading error that
"E:DataProcessors.swf"
not found but i have those lib files on
"E:in-debugDataProcessors.swf"..
what could be the possible errors.
I've read through this section of Adobe's excellent 10.1 optimization tips. I found the statement below to be very helpful. Is there anything else to look out for? Is the dumbed-down difference just: use the GPU for raster and CPU for vector graphics?
The GPU is only effective for bitmaps, solid shapes, and display objects that have the cacheAsBitmap and cacheAsBitmapMatrix set. When the GPUis used in tandem for other display objects and this generally results in poor rendering performance.
After changing the Flex SDK to 3.6 (from 4.5.1) so as to target Flash player 9.0.124, the project no longer compiles, producing spurious errors such as XML does not have matching begin and end tags leading me to believe that the compilation process is 'borked'.
This is a pure AS project, and so should have no dependency on the Flex SDK, howver, it seeems to be inextricably linked to the Flex 4.x SDK and Flash Player 10+. I have tried swf-version and -target-player-version in the compiler arguments, but there is still something I am missing to get this to compile for Flash player 9.
I'm writing a app with Flex/air,and i need a function that downloading files to the default dir without a pop-up window.i tried to use ftp instead of http but found it's not supported by air.how can i solve this problem?
View 2 RepliesI have a project that I need to develop some Java code for. The project is using Flash and BlazeDS. For the initial build of the project, an Ant script is run that eventually runs what I believe is the Flex compiler (the sdk attribute points to a FlashBuilder 4 sdk/4.1.0 directory).
View 1 RepliesI made a simple animation with motion tween, and hope to copy the animation. I selected all the frames, and right click, but the copy motion option is gray!!!!
View 4 RepliesHow can I copy files with FLfile.copy method in CS4? I need any samples with all classes.
View 0 Replieswhat I need to do is get a list of files in a folder in a Flex application from the web (i.e. all the files in a location like [URL]
View 2 RepliesHow can i get all the files in a given folder in flex project. the folder is within the project itself, under src folder, like.[code]I want to get the names of all jpg file in an array.. how it can be done programmaticly?
View 2 RepliesI'll ONLY recieve an "Error #3000: Illegal path name" if I try to open a file which is placed inside the app-folder of the air. If the file is somewhere else outside of the app-folder it works.
private var file:File = File.documentsDirectory;
public function download():void{
var pdfFilter:FileFilter = new FileFilter("PDF Files", "*.pdf");
[Code]....
When i try to get the same file and copy it to another place it's doing fine.
Why that? Something special to do if i wanna open files which are inside the appfolder? It also don't work in debug mode - bin-debug.
I'm building an AIR application which will be used to edit slideshows for another app (also built by me, but not in AIR). The slideshows and other data are defined in several xml files which are in the other application's program folder. When trying to load these into my AIR app I get the following error:
fault(mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"
[code].....
Is it possible to use pause/resume function to this??
source.copyTo( destination );
It would be great if you can send it at the earliest.
Its stated in adobe site that the Flash Builder 4 compiler is indeed 25% more performing than the previous Flex Builder 3 compiler.
How can I confirm that?
For example if I make a simple application on Fx3 and the same on Fx4, then how would I compare the compiler performance using my project?
Is there any way to copy a folder with a bunch of layers and keyframes to a different flash project?
or in another way is there a way for me to save time and copy a work i have done on a different project and use it in a new, consisting a keyframed animation?
How can we import images using AS3 code so that when they are imported once will remain in the library forever..
View 3 RepliesSo I try to compile ffmpeg as I described here after this patch I started seeing .l.bc files but no .swc files. So how to use alchemy completion suite to turn .l.bc into .swc?
View 1 RepliesI'm using Parsley in my flex mobile project. I have multiple destination services but I can't find more resources on how to add another destination service to config.xml file. The file is as below:
<objects
xmlns="http://www.spicefactory.org/parsley"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.spicefactory.org/parsley
[code].....
i have built a custom class, which i call from a frame script. the custom class takes only one parameter, which is a string URL of an XML file. SUDDENLY, when i move all the files off of my desktop into a different folder, i receive compiler errors, stating it can not find my custom class .as file, even though it's in the same folder! why is this happening? here's my entire frame script:
[Code]...
I have two mx:TileList controls that I'm using to allow editing of objects in batch. The first contains a collection of all available data, and the 2nd contains the current batch. Both are bound to ArrayCollections, and using the native drag-n-drop functionality of the TileList control the data is moved from one ArrayCollection to the other when an object is dragged between them.
I need to change the currentState to show & reset the batch manipulation controls when the batch count goes from 0 to n or n to 0 items. Based on the documentation, I would have thought that I should listen to the dragComplete event, but my testing shows that instead of firing after the data has been removed from the source ArrayCollection and added to the destination ArrayCollection, it fires (consistently) between these two actions.
[Code]...
I need dinamicaly create LinkButton with icon. The names of files (icons) have the format "images/icon_0.png","images/icon_1.png", ... "images/icon_1000.png". But I don't know specific image for this button. I know only index of icon.I tried this, with no success:
var path:String = "@Embed(source='images/icon_" + imageindex + ".png')";
myButton.setStyle("icon", path);
I get a runtime error Type Coercion failed:
[code]........
I am embedding a swf file into the parent swf file and my code in parent swf file want to call the function inside the embedded swf file. It always failed, below is the code. The error is in line:
var player:testflv1 = (loader.content as SystemManager).application as testflv1;
It can't be compiled because the testflv1 is not recognized as the known type.
[Code]...
I'm making a desktop application and I need to get all of the file from in certain folder. Is this possible in AS? IE, I need to get the name of and import every file in the folder C://documents and settings/my pics.
View 1 RepliesI'm trying to set up an old Flex project in IntelliJ IDEA but are having a problem with all embeded fonts.The font is installed on my Windows 7 PC and are also located in the folder fonts in the directory where my ActionScript sources are located. I'm using the SDK compiler config from flex_sdk_4.1 with additional option of -static-link-runtime-shared-libraries=true.
[Code]...
i dont know how much this is related to direct flash, but i have seen this feature on some websites so i know its doable. i have an image (copyrighted by myself) on the webpage. when user right clicks on the image i want to disable "copy" option so that he wont be able to copy that image at all.
View 3 Replies