Flex :: Specify Swc When Building A Swf?

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


Similar Posts:


Flex :: Enterprise - Building A New System In Flex / Air?

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

Flex :: Use Ant Tasks To Automate Building Of App?

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

Flex :: Building Charts With An Ant Task

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

ActionScript 3.0 :: Flex Code Behind (building For AIR)?

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

Flex :: Run Custom Scripts Before Compiling/building?

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

Building Flex - Runtime Fault On Constructor

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

Flex :: Ant - Automate The Building Of A Component Library?

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

Building Charts In Flex Builder Professional?

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

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

Flex :: Free Tools For Building AIR Applications?

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

Flex :: Call A Function When Building An Array?

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

Flex :: Implement CruiseControl In Project Building?

Aug 26, 2010

I need to deploy my project automatically using cruise Control .

View 1 Replies

Flex :: Which Heap Is Used While Building Project In Eclipse

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

Flex :: Building Blackberry Playbook App In Adobe AIR?

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

Graphics - Flex- Building Arrowhead For Line?

Apr 4, 2011

I wanted to check if there is a easy way to build an arrow for a line... currently I am trying to draw a triangle at end of the line- doable but a load of geometry to handle as the line could be at any angle and- anything build-in available?

View 3 Replies

Actionscript 3 :: Building Flex Builder Projects From Commandline?

Sep 17, 2010

I have several Flex Builder projects which depend on each other (both libraries and "applications",projects which generate an SWF), and want to compile them from commandline. I know there is the fb.exportReleaseBuild ant-Task, but unfortunately it doesn't work on Linux and only comes with Flex Builder.

Is there any other way to build those projects, including their dependencies, from commandline?

View 3 Replies

ActionScript 3.0 :: Flex - Building Apps Without Flash Builder

Jun 13, 2011

I have an Actionscript 3.0 app that I've made using a trial copy of Adobe Flash Builder 4.5.

Now, Flash Builder license has expired. Is there any way to compile my code without using Flash Builder?

I read somewhere that there is a free compiler to do that. What about Flex? Is free? I can use my actionscript code with Flex

View 2 Replies

Flex :: Debugging - I Added Class Directory Via Flex Build Path/Source Path, And Now 'building Workspace' Takes Forever

Apr 3, 2012

I am coming from flash to flashbuilder I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled.So today I did that in flashbuilder, included AS3_classes_dir via Flex Build Path/Source Path ... but now the compile time are a couple of minutes, even though I am not even importing ANY of the classes from within.

View 2 Replies

Java :: Using JavaFX And/or Adobe Flex For Building Desktop Applications?

Sep 29, 2009

Most of the desktop application development I do is in Swing, and I'm curious to hear people's thoughts on using JavaFX and/or Adobe Flex for building desktop applications. Have you had success building desktop apps with these? Or would you stick with Swing for now and use tools to help make Swing development more productive?

View 6 Replies

Flex :: BUilding Project With Unit Testing On Cruise Control?

Oct 15, 2009

I have a flex application build with actionscript 3 on flex builder with unit testing on it using flexUnit4. I want to build this project on my cruise control and i don't know how?

View 3 Replies

Flex :: Capture Errors That Happen On Client Side When Building RIA Apps?

Aug 15, 2010

How do you capture errors that happen on client side when building RIA apps using Flex and Silverlight? What are the common practices? I have seen some asynch js calls to a web service implemented but would like to know how the community is dealing with it.

View 5 Replies

Flex :: Building Java Multiplayer Server Game - Difference Between Sockets And Webservice?

Aug 8, 2011

I'm building a multiplayer card game using Flex on the client side and Java on the server side and I wanted to know if I must sockets and the accept method in order to connect users to the server for in order for them to join a game room or create one or to chat.In the past I've learned how to build a game server which both sides are JAVA and connection was in sockets but now days the client side will be in FLEX which has few ways to connect to a Java server (XML,SOAP,BLAZEDS(AMF)) and I find it hard to understand how to write the Java server in order to do all the features of a game server,especially managing the rooms and sending data back to the users.

In the sockets way, when a user was connecting to the server and he had opened a room, this room was opened on a thread and who ever was joined that room then he was connected to the same thread and sending the messages to the right place was easy, so the problem is understanding how to do the same using SOAP or BLAZEDS.

View 4 Replies

Flash :: Flex Building An Application With Client Side And Server Side

Sep 3, 2011

I want to create an application that has these features

- At client side: Display a list of images, when user click on one image, data will be stored in MySQL database.

- At server side: Manage images used in client side, I can delete, add new images.

Is this possible for me to achieve this using Flex? And if it is able, will my output be 2 separate SWF files? And where can I find the materials to read on writing such applications?

View 1 Replies

Flash :: Flex Builder "Refreshing Workspace" And "Building Workspace" Over And Over?

Aug 17, 2011

Facing one problem with Flex builder "Refreshing workspace" and "Building workspace" over and over... Am wasting almost 10min on every build. running FB 3 on my win 7 , 64 bit , 3 gig Ram.

View 1 Replies

ActionScript 3.0 :: Building A XML File?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.Complete, loadXML);

[code]....

View 2 Replies

Building An Item In Flash

Aug 18, 2009

I have no idea what to call it or where to start looking, so I am putting it in the generic and hopefully someone can point me to the right forum or area. Here is my project and I am trying to teach myself how to do these things. I had great help in making buttons on here a while back, now I am trying to build an object right in flash. The easiest thing for most to relate to is a computer that is being built from scratch. So, You start with a base picture of an open sided computer with a list of components underneath. By draggin those components to the box, it snaps them in place. You can also remove them the same way. When done, you click a tally button and it shows a list of all the components you added with product numbers.

View 2 Replies

ActionScript 3.0 :: Building An MP3 Player?

Sep 25, 2009

I have the below actionscript almost working for playing mp3s. This isn't dynamic or anything. Just links to songs (from buttons) that should null each other out when clicked on. The first song loads fine. However, the second song will not load. I must be missing something. Or maybe I took the wrong approach? Any help would be great.

[Code]...

View 2 Replies

ActionScript 3.0 :: Add Variables Building On The Fly?

Oct 16, 2010

I remember reading somewhere how you can add variables building on the fly but can't find any references. What I have is a MovieClip in my library. I will use it to create several Menu Items.
 
This is what I have written:
LessonButton = new mcLessonBtn();LessonButton.name = "menuLesson"+i;this.addChild(LessonButton);

View 6 Replies

Media :: Building Server For FMS?

Nov 30, 2010

I have built a flash app that utilizes an rtmp feed to stream video and I want to be able to stream my own content. I am looking into building the machine that will run Flash Media Server and was looking for some pointers before I get started.
 
My flash based application runs independently on a large touch screen and is going to be the only pc accessing this server, so I was wondering how beefed up the server needed to be. I would like to get it stream three live hd feeds. Can I run Flash Media Live Encoder and Flash Media Server on the same machine?

View 2 Replies







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