Flex ::Building A SWC From IntelliJ Idea Without Resorting To Ant?
Jan 18, 2010
First, here's what I want to do:
* Compile my library code into a SWC * Do not staticly link the Flex framework
At first, I tried just setting up a Flex module, clicking the "library" and "use framework as an RSL" buttons. This however doesn't compile any of my code into the SWC, and it basically just compiles a new SWC of the entire Flex framework, all resources and classes included.
Then, I managed to get my classes into the build using a custom compiler config, but it still includes the few Flex classes that I reference in my library code.
Finally, I figured I could use the custom flex-config.xml file, remove the parent reference to the library using <library-path append="false"></library-path> and then using a custom command line parameter (and also from ant), add -compiler.external-library-path references to the SDK and PlayerGlobal.swc. This should probably work, but Idea won't let me set command line parameters when I'm using a custom config file
View 1 Replies
Similar Posts:
Feb 23, 2010
I've got the following Flex code in an MXML file:
<mx:Label id="lblVersion" styleName="versionID" bottom="0" right="10" text="Version { BUILD::version }"/>
where the "BUILD::version" is meant to be substituted from symbols defined in compiler options:
-define BUILD::version "'LOCAL'"
The Flex plugin doesn't seem to understand the compiler option usage syntax and flags "BUILD" and "version" as "unresolved variable or type"
View 1 Replies
May 22, 2010
I'm building an Flex 4 application using IntelliJ IDEA 9.0.2 generated sample Flex application. I replace the generated mxml with the following code from the book Hello Flex 4. It simply crashes the browser when I run it. It says "Waiting for [URL]..and then crashes I tried it on both FF 3.5.9 and Chrome 4.
[Code]...
View 1 Replies
Apr 4, 2011
I installed flash player debugger and cannot able to debug the flash application. And I got following message in console.
[Code]...
View 1 Replies
May 10, 2011
Is it possible to run a Flex client in IntelliJ internally and have it talk to a separately deployed server instance? The server's a java webapp. This will make developing, especially debugging, much easier. What I'm trying to avoid is having to rebuild and redeploy the webapp to get the updated Flex code in it. I want to just build flex and run it against the server.
The flex client is embedded in an HTML page on the server, so in production the users access the client by going to a web page. We're using GraniteDS if that's important.
Update
I'm managed to cobble something together, but it's ugly.I made a copy of our wrapper HTML page and fixed the links to refer to the SWF in target.I setup the IntelliJ run config to point to that HTML page.I set the 'Place SWF file in a local-trusted sandbox' to true
Hardcoded the {server.name}, {server.port}, and {context.root} values in the service-config.xml GraniteDS config file to localhost, etc.
I can mavenize #1, but #3's isn't really a permanent solution. That part is still a problem because I can't check this in.
View 1 Replies
Jul 6, 2010
Just a simple question: Would you prefer IntelliJ? If so, what are the Pro- and Cons?
View 2 Replies
Jan 10, 2012
I recently upgraded to IntelliJ 11 and the version 10 debugger used to allow for E4X / XML debugging. I was able to expand the children and inspect elements/attributes of XML but now I can't get that to work. Has something changed/broken?
View 2 Replies
Jan 17, 2012
I have flex application consisting of several modules which is configured using maven. I'm using flexmojos plugin to build the application. When I try to build the application using maven it builds successfully. But I need debugging features of Intellij Idea (i'm using 10.0 version). So at first step I run maven compile command to generate *-configs.xml to enable Intellij idea compile my application. At second step i run IDE's compile(or make) command and it says:
[Code]...
View 2 Replies
Mar 9, 2012
I'm developing a mobile AIR application using IntelliJ.
When debugging in Flash Builder there is an option to clear to application data on each (debug) launch of the ADL (see screenshot below) However, I can't find this setting in IntelliJ or some ADL parameter to force a clear on each new debug session. I was wondering if such an option exist in IntelliJ or ADL.
A little background: I'm using the PersistanceManager in the application to store some user settings and I want to be able to start the application without the saved settings from my previous run. Using this setting in Flash Builder does the trick, but I'm having no luck with IntelliJ.
View 1 Replies
Jul 26, 2010
I'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]...
View 1 Replies
Jul 23, 2010
Basically Reordering / Resorting a list of items and moving them around.[URL]
View 1 Replies
Nov 4, 2010
It's general question nothing related with code.I want to know that video which i am playing is flash video or not.Are there any way we can get idea about i
View 2 Replies
Jan 15, 2009
I want to make a theme generator that works like a random Exquisite Corpse. Imagine you write out out different "types" of ideas, categorize them, and place them in several cookie tins or boxes� a color palette tin, a media tin, a subject matter tin, etc. If you pull one entry from each tin, together they make a new string/list. This list would then be the project I work on.
For example: A [dark colored] [album art design] that incorporates [chickens] and [skulls].A [light colored] [t-shirt design] that incorporates [silohuettes of people] and [boomboxes]A [specific predetermined hexidecimal palette] [illustration] of [chains] and [unicorns] This is what I know: It would be nice to have the amount of subject matter or color choices come at "random" (a number between 1 and 10?).Since these lists will continually be updated, I'm assuming XML functionality is a must.
Dynamic text fields and the ability to dynamically create them (if more than one subject matter is randomly chosen) will be used.These aforementioned idea lists will be stored in arrays. A random function will spit out an index number (its range will equal to the amount of items in the array) and that index number will put it's subsequent item into the dynamic text field(s) on the stage.Hitting the space bar or clicking a button will clear the fields and randomly populate them or create new ones if more than one subject matter or color palette is randomly chosen. I seriously have no idea how to go about doing this, but it seems like a really rad idea and something I desperately need.
View 2 Replies
Jul 7, 2010
I have implemented some utility classes in Flex that I want to use in multiple AIR projects. I have created a swc which contain these classes. I am working on a Linux machine and do not have FlashBuilder. So I am using the compc and mxmlc command line SDK tools. My problem is that I have not been able to find a way to specify the swc when building the standalone project. A tutorial suggested the following command: mxmlc -load-config /opt/flex/4.1.0/frameworks/air-config.xml -library-path=/path/to/utility.swc hello.mxml. However, using that gives me the error hello.mxml: Error: Unable to locate specified base class 'mx.core.WindowedApplication' for component class 'hello'. Everything works fine if I move all code from the swc to a single monolithic pro ject. The code for the standalone project is:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" windowComplete="completeHandler();">
[Code].....
View 1 Replies
Feb 21, 2011
This maybe a bit of a 'wide' question, but am putting together a brief overview of a new system I'm proposing at work. It will be a POS style system, that does quotes and invoices + crm for our work enviroment across 100 + locations.
It will communicate with server via the Internet. Flex / Air feature set (offline SQL is Internet goes down, Rich communications, rich client environment etc), the fact that we run Macs + PC makes it looks like a great choice. I know HTML 5 has offline SQL and stuff, but flex feature set is way more comprehensive / usable etc..Is anyone doing any big corporate Flex / Air projects that need to last a long time? Or are you pushing HTML and its new technologies to provide a more safe investment.
View 1 Replies
Oct 16, 2011
I know that IntelliJ makes it really easy for you to develop and start a FLEX project. However, I am wondering if there is a way to do the same with Flash App Development. I do not need the MXML file and other things that come with Flex. I just want to be able to start a Flash project like I would in Flash CS5 and be able to run the .swf file from IntellIJ. Not having the UI tools is not a concern to me.
Is there a way to do this. Are there ways to achieve this?
View 1 Replies
Nov 8, 2010
I know I can use a combination of ant & flex ant tasks for automating builds. However, I'm unclear on how to compile all the mxml and actionscript files of an app. For example, does the build file below compile just the Main.xml file or all files in the app?
[Code]...
View 2 Replies
Jun 1, 2009
Using the Flex ant task to build our application results in the "Flex Data Visualization Trial" watermark being displayed in our charts. We have professional licenses for flex builder but do not know how to tell the ant task about these.
View 1 Replies
Apr 12, 2010
I've been trying to set up a nice environment on Flex 4 and Flash Builder 4 by using the "code behind" philosophy on my Application tag. This has given me a silly amount of problems!
[Code]...
View 2 Replies
Mar 24, 2010
Would luv to here from developers who have made the switch from Flex-Flash builder to IntelliJ.
View 1 Replies
Apr 6, 2010
For some reason I can't debug my actionscript application in IntelliJ. I keep getting this error in the console: Unexpected debugged player communication problem.
View 2 Replies
Mar 9, 2009
I am creating an AIR app. In this app there's a need to copy a folder from a fixed known localtion C:xyz to app:/. I would like to know how can I do this copying before compilation/build so that they get packaged when I run the 'Export Release Build'
View 1 Replies
Sep 4, 2010
I am building a Flex with AS3 application. I am getting a runtime fault on the constructor that declares: public var assetss:Array = new Array;
The fault is:[Fault] exception, information=undefined
Code:
package{
import mx.core.BitmapAsset;
import flash.display.Bitmap
public class colorstim {
public var assets:Array = new Array;
public var imgobj0:Object = new Object;
[Code] .....
View 3 Replies
Sep 8, 2009
I would like to build a flex library project automatically instead of the current process, which involves one of our developers compiling it on his machine and then us checking in the resulting .swc file. It's gross. I am coming at this from the perspective of a java developer, so I'm having a hard time getting the hang of the compilation tools provided in the Flex Builder 3 application, but here's what I already have: I have created an ant file that loads the ant task library correctly, and can therefore execute <mxmlc/> and <compc/> tasks.
I have located the source code that I need to build, and know what sort of .swc I want to end up with. What I want is an ant script that will do the equivalent of these steps: We build all sources (actionscript and MXML) and assets in the project into an swc file. The library.swf file is extracted and optimized
[Code]...
View 3 Replies
Dec 29, 2009
I have Flex Builder Professional Ver 3 (Built with Eclipse) version.
I need to build an application with charts. The problem is that there are no charting components to be seen. There is no datavisualization.swc file in the libs folder.
View 3 Replies
May 16, 2010
There is an ongoing argument on the web right now about the "openness" of the iPhone OS and Adobe Flash platforms. Adobe's argument is that anyone can build a Flash application without having to worry about being allowed to distribute it.
This made me wonder... is it possible to build and distribute an AIR application without giving any money to Adobe (without violating any licenses, of course)? Are any of these tools free? Are any open-source?
View 3 Replies
Aug 16, 2010
Can I call a function when building an array in Flex 3?
public function gridBuilder(myArray:Array):void {
var i:uint;
for (i=0; i<myArray.length; i++){
[Code]....
MyArray is the result of a remote call to the database. I then prepare the array to be used in a dataGrid. I also want to call a function that provides a grade. Unfortunately, my function appears to be called only once. Is it possible to call a function when you're building an array? see the "Grade:" bit.
View 1 Replies
Aug 26, 2010
I need to deploy my project automatically using cruise Control .
View 1 Replies
Feb 23, 2011
I am building a flex project manually in eclipse and want to know which heap is used during this process:The heap used to run eclipse mentioned in eclipse.ini or the JRE heap specified within the eclipse?
View 1 Replies
Mar 29, 2011
Ive been trying to write my first Blackberry Adobe Flex application but get the following errors:
1172: Definition mx.controls:Label could not be found.
View 1 Replies