Flex :: Use A Style.css File From A .swc And Build The Project With ANT

Jul 9, 2010

I have an .SWC library with a style.css file inside. The .SWC file is added to my project and the style.css is used this way: <fx:Style source="assets/style/style.css" /> If I want to build my project with an ANT-script it says that "the external stylesheet couldn't be found". In ANT you need to write the path for assets with an leading "/". So this would work: <fx:Style source="/assets/style/style.css" /> But in this case it isn't possible to retrieve the style.css from the .swc as the compiler says that "the external stylesheet couldn't be found". Is there any way to use the style.css inside the .swc AND use ANT to build the project?

View 1 Replies


Similar Posts:


Build A Flex Project On Ant Or Maven?

Jan 5, 2012

I am going to write a build commands for flex 4.5 project, which is only based on actionscript not with java. I am very new to both maven and ant.So can you people suggest which is more compatible and robust with Flex 4.5

View 1 Replies

Flex - Disabling Project Refresh On Build?

May 23, 2009

In the Flex 3 Perspective in Eclipse, is it possible to disable the refreshing of a project after a build? How so?

View 1 Replies

Flex :: Coding Style - Cairngorm Project DRY (don't Repeat Yourself)?

Aug 2, 2009

I'm having a hard time building a Cairngorm Flex3 app that connects to a rails app. I'm used to rails DRY approad, and the Convention over Configuration thing too.. and Cairngorm in awful at these.

How do you keep you flex code as DRY as possible? I've implemented a generic delegate to avoid a delegate for each command, at least.

View 1 Replies

Flash :: Flex - Export Project In Builder 4 To An Ant Build?

Sep 30, 2010

I am developing a project with Flex, and I need to deploy my project in a form which can be used by developers who do not have access to Flash Builder. I've found references to plugins from Faratasystems, but it appears their sourceforge site is a little bit rusty. I could not find an up to date installation file that'd include FX2Ant plugin and work with my Flash Builder 4

View 1 Replies

Flex :: Minimize Build Time Of A Flash Project?

Nov 22, 2010

One of the most annoying things when working with Flash/Flex projects is that it takes soo long to build the project. In a Flash game I am doing, it takes more than one minute to build it.

View 4 Replies

Actionscript :: Flex Project Swf Is Not Working After Export The Release Build?

Aug 15, 2010

I tried to built a project with AS3 only in Flex. When I run the project in flex, everything looks fine,but when I export the release build, the images that are supposed to be added are gone.

[Code]...

View 1 Replies

Eclipse :: Using Maven To Build Flex Project Including Stylesheets

Mar 18, 2011

Flex stylesheets are parsed by the compiler and bundled with their assets (graphics, usually) into a swf file, which can then be loaded at runtime. I've got a project with a fixed number of styles (currently 4: old corporate style, new corporate style, and high contrast versions of both). Using Flash Builder (Eclipse with Flex IDE plugin) I'm able to have all .css files compiled to .swf files alongside the primary project artifact .swf file. This is also possible with ant scripts.

My current understanding is that Maven wants to only create one artifact per project (POM file), but may have some additional ones added (like zip packaging). For scalability reasons - I've got a complex setup of many library and module projects, several of them having their own individual stylesheets - it would be very impractical to split up the projects into the 'main' project and copies for each stylesheet. At least on the Eclipse project side, having some subfolders with POM files in each, all refered by a master pom file and referring the same src/ location (and being inside one Eclipse project) would probably work. Though that's ugly and needs individual artifactIds for each, and still need to be assembled somehow.

The important thing is to be able to have a final assembly which contains the (Eclipse) projects main swf file and each stylesheets swf file (and some static files like localized texts to be loaded at runtime). This will be part of a large assembly of several of those projects which I've described in a separate question.

I'm using Eclipse 3.6.1 (Helios) with Flash Builder Plugin (i.e. Flex4), targetting Flex SDK 3.5 (FlashPlayer 10.0). I've installed Maven 3.0.2, using Sonatypes flexmojos-maven-plugin 3.7.1 (as it seems more active than the one from Servebox). I've manually created pom files for my projects and they work (though only compiling one swf artifact file, depending on whether I specify the main .as or one of the .css files as sourceFile)

I've tried for some days now to understand "The Maven Way" (which seems to be tailored for Java and not fitting perfectly for Flex), but couldn't get this to work so that I have a single project, or at least a single assembly with everything in it.

View 1 Replies

ActionScript 3.0 :: Build Or Modify A 'one Armed Bandit' Style Application?

Mar 16, 2009

I want to build or modify a 'one armed bandit' style application... I have limited time to build it and was wondering whether anyone could help in directing me towards a pre-purchased app that i could modify, or if anyone has any pre-coded application that's similar that I could modify?

View 6 Replies

Eclipse :: Build Flash Project With ANT

Apr 9, 2012

Currently we have a large project that was created in Flash and AS3. I know that you can't really compile or build fla's with ANT. I have seen all of the flex capabilities with ANT.We want to customize our final product so that we can swap out images and color schemes (other things too) on the command line.We want to use ANT to be able to build our project and control the command line.Basically end product, the user will just tell it where the images are and only take a couple minutes.Do we have to convert our project into Flex to do this?

View 1 Replies

ActionScript 2.0 :: MXML Project In Flex 2 - Make SWF File As Main Executable File?

Nov 26, 2006

I have to make a project for school. It will be like a tutorial, but into an application. I already made a part of it in MXML and a bit of action script but I encountered a few problems that are over my newbie limits. So the Flex Builder 2 makes a SFW file, in the main folder of the "project". I want to make that SWF file my main executable file. I have a folder with some pics, and another folder with Action Script Files. The code lvl that I know atm is ABSOLUTE BEGINER... I don know how to make my SWF file have a specific name when I run it.Here is a picture of a training exercices that should make thing more clear:Some people told me that I should use a HexEditor and stuff. Is it ture(what u think?).

Next problem. I dont know how to make the Stage to be fix. I mean.. I dont want the stage to be resizeble. I tryed to change the stagescalemode but that wasn't it. I toke a look at the help files of Flex from the net, about the Resize action and SystemManegment, but I didn't find out what I wantend.

View 4 Replies

Flash - Use CS4 To Build An AS2 Project That Uses The New FLVPlayback Component?

Aug 8, 2010

We have a huge project written in AS2 with the old FLVPlayback component which was responsible for progressive download playback of FLVs. I'd like to support MP4 files (which is now supported in Flash 9 and up with the updated FLVPlayback) but would like to not have to rewrite all of the project.I've seen in various posts on SO surmised that one could possibly use CS4 to open the AS2 project, replace the FLVPlayback component with newer one and build.

View 1 Replies

Build Flash Builder AS Project Using Hudson?

Dec 16, 2010

I have a flash builder project that has no mxml file.

I'm wondering if there's a way to build a this project using hudson or even ant.

I've previously built a FB project and used the following syntax in the build.xml[code]...

View 1 Replies

ActionScript 2.0 :: Build A Chat Box In A Presentation Project?

Jun 30, 2010

I am dead meat, I have until monday to have a working rough draft. I have everything at 90%. My brain wont work, I am locked and cant think og the best way to bring in a Chat box to my project. I want to put it as a hover page in the presentation area of the APP.

Please Pm me for a link as my post count is too low to put it here, I have been lurking here fr some time but didn't ever fell I could better answer questions so I stayed in lurk mode. If anyone can push me in the right direction or is willing to look at what I have and offer some advise, I would be greatly in your debt!. I look forward to some ideas from some very smart people, as I seem to be not one of them!

View 0 Replies

Flex :: Style The Alert Window On An External File?

Sep 15, 2011

I am trying to style the Alert window on an external file but I get the following warning and the style won't be applied, keep in mind that the Alert is being called from an external AS file as well so the code is not embedded in the MXML.

The CSS type selector 'Alert' was not processed, because the Alert was not used in the application.Type alert in CSS selector 'Alert' must be qualified with a namespace.

Alert{
color : #124332;
background-color: #ffffff;
header-colors : #243322, #243322;

[code]....

View 1 Replies

Xml :: Flex - Flashbuilder 4 Won't Copy An Xml File In Release Build?

Jul 20, 2010

I have my own conf.xml file (src/conf/conf.xml) consists some properties (alphas, colors,etc). When i try to export release build, I see list of files which not includes that file.Why? When i run my application at debug it file places in "bin-debug" folder.

View 1 Replies

Flex :: Load Variable From A File & Pass As Arg Value In Ant Build

Nov 29, 2010

What I want to do is load the contents of a file and sent it to an mxmlc compiler as an argument parameter. I can load and read the contents of a file using loadfile and setting a property value say propery="filecontent". But the problem is I can pass it into the mxmlc (flex) compiler. I'm not able to pass it (tried with ${filecontent}) to the arg line. Its gives an error: "value contains unknown token 'filecontent'" How will I pass the contents of the file as a argument value to a compiler argument? Edit: The problem is with the include-resource-bundles arguments. When using command line it works. But using ant build doesn't. Do we need to manually provide the name of resource bundles by generating the resource file?

<exec executable="${MXMLC}" dir="${APP_ROOT}/src" >
<arg line="-locale 'en_US'"/>
.. .. ..
<arg line="-include-resource-bundles

[Code]....

which doesn't work and gives and error -> command line: Error: configuration variable 'include-resource-bundles' value contains unknown token 'resources'

View 1 Replies

Flex :: Build A Remote File Explorer In An Application?

Jan 25, 2011

I'd like my users to be able to easily navigate their files, which live on my server. Is there an obvious / built in way to build the front end for this in Flex? My ideal scenario would be to have something that looks like the local file browser - but I'm pretty sure that's not an option (although I'd love to be wrong)

View 2 Replies

ActionScript 2.0 :: Using LoadMovie On A Project - Basically I'm Trying To Build A Flash Page?

May 31, 2003

this is my first post on this board so go easy on me. i'm having big problems using loadMovie on a project - basically i'm trying to build a flash page that will run in full screen (as part of an exhibition) and will load up other swf files within itself. so there will maybe be a row of buttons along the bottom which load swfs into an area above them.

[Code]...

have spent all day on this with no progress so will be interested to hear your thoughts. when i have tried loading in other swfs into my blank clip much of the code in them as stopped working as well.

View 1 Replies

Flash :: Flex - TFS Build 2010 Call An Ant Script And / Or Build?

Mar 31, 2011

In TFS 2010 build, I have a new build and I want to call an ant script that builds Flash. How do I call the ant script? Also How can I compile the Flash directly? I've seen the Power Tools and this question but it doesn't help me as we don't have TFS 2008. I can't find any documentation on how to use the power tools except the 1 sentence on the bottom of download page saying to create your build the old way and import it (which isn't very helpful). I've installed the power tools on the agent computer but I don't see any new options in the Toolbox when I'm designing the build flow.

View 2 Replies

Flex :: Creating Ant Build Script To Build Only When A Dependency Was Updated?

Apr 14, 2011

I just started working with ant a few days ago. Right now I have a general buildall.xml which should call each project's build.xml. Because some projects depend on each other, I need to rebuild some other projects which depend on it. This isn't a problem--I'm just setting the depends property of the target. However, ant is always building the dependencies, even when the files haven't changed.Let's say project1 has no dependencies; project2 depends on project1; project3 depends on project1, 2; project4 depends on project1, 2, and 3; and so on.I could hack a solution which looks at project K, and checks if project 1 .. project K have updated files using uptodate. If so, then run the target. This is messy and appears unnecessary.

What is the cleanest way to implement this?EDIT: So I decided to just hack in a bunch of targets, "check_projectK" where it does the uptodate checks on all of its source files, its build file, and the build files of the 1 .. K-1 projects. Due to dependencies, this is always handled correctly. However, this is still a large amount of copy and paste for a large workspace.

View 1 Replies

Flex :: Configuration - Host And Load KML File In Flex Project (IGN)?

Jul 23, 2010

I'm looking at a tutorial to display placemarks using a KML file on a flex application. I'm using IGN API (openscales) in flex project. The example works perfectly (http:/[url].......

<os:KML url="http://www.parisavelo.net/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>

But when I'm hosting the same kml file on my server like that :

<os:KML url="http://www.cycom.org/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>

Placemarks don't show up on the map. I tried to host the kml file on different hosts but that doesn't change.

View 1 Replies

Flex :: Run .swc File In Project?

Mar 18, 2010

I have a .swc file and I learned how to add that swc file into the library. I will be happy if any one explain how to use this .swc file into my flex project and run that with an example .

View 1 Replies

Javascript :: Place File In A Flex 3 Project?

Sep 16, 2010

I've got a javascript file that I need to load into my Flex 3 project. I access it in the HTML wrapper like so:

<script src="myJSFile.js" type="text/javascript"></script>

I use Google Code's library to access JQuery.

Is it okay to put the javascript file in the html-template folder? The idea being that it would be included in the release build. Any reason not to do so? Will this cause an error?

View 1 Replies

Php :: Running File With The Release Of Flex Project?

Feb 23, 2011

Problem:I call a PHP file using an HTTPService. I set the result of this HTTPService to a function which populates a testTextArea with whatever the PHP file has returned (echoed). This work fine when I run the application from flash builder i.e. I get strings in the testTextArea, echoed by my PHP file. But this does not work fine when I make the Release of the project and the testTextArea gets populated by the whole code of PHP file.

[Code]...

View 2 Replies

Php :: Writing To An XML File In Source Directory Of Flex Project?

Feb 23, 2011

I am writing to an XML file which is placed in the src directory of my Flex project. But when I run my application, the changes I make to that XML file actually reflects in the copy of that XML file in my [code]Is there a way to reflect those changes to the actual xml file i.e. the one in the src directory?Server Side: PHP.PHP file is in the same src folder. Here is the related snippet of code:[code]

View 1 Replies

Actionscript 3 :: Open File Structure As Flex Project?

Mar 26, 2011

I received a Flex project but don't know how to open it in Flash builder. It doesn't contain a project.mxml or .actionScriptProperties, .flexProperties and .project files. the file structure looks like this:

(rootFolder)
-(com)
subfoldrestructure containing only folders and .as files
-(src)
-(_embed)

[Code]...

how do I make a compilable Flex project out of this?

View 1 Replies

Actionscript 3 :: Share .as File Bettween Two Applications In Same Project In Flex?

Apr 16, 2010

I have two applications in my project 'test' the applications are one.mxml and two.mxml and i want to use the same main.as file in both using

<script source='main.as'/>

Can I access the components of both applications from main.as when both are running simultaniously.

View 1 Replies

ActionScript 3 :: How To Compile Maven / Flex Project Without Any MXML File

Dec 13, 2010

Is there any way how to compile maven/flex project which does not contain any *.mxml? The flex project contains ActionScript classes only (i.e. "src/flex" directory contains *.as files only). My pom.xml is here:

<groupId>com.test</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<name>test</name>
<packaging>swf</packaging>
[Code] .....

View 2 Replies

Css :: Flex - Properly Reference An Image In A Library Project File?

Sep 26, 2011

My flex (flash builder 4) project references (embeds) a flex library project (ReusableFx). I have it working fine when it builds and runs, but I am struggling with a Design mode error "Design mode: Error during component layout...". In the flex library project there is a 'default.css' file which references a png file. Specifically like this:

[Code]...

It works when I build and run, I see the icon, but the problem is that design mode must work different in flash builder and breaks with this line. I tried a few things with no difference:

[Code]...

View 2 Replies







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