Questions tagged [apache-flex]

Apache Flex [NOT CSS FLEXBOX] is a framework for developing Rich Internet Applications that run in Flash Player or Adobe Air. Originally designed by Adobe, Flex was donated to the Apache Software Foundation in 2011 and became a top level Apache project in December 2012.

Flex is a framework for rapid Rich Internet Application development which runs on Flash Player or Adobe . Originally designed by Adobe, Flex was donated to the Apache Software Foundation in 2011 and became a top level Apache project in December 2012.

Apache Flex® is a highly productive, open source application framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops and devices (including smartphones, tablets and tv). It provides a modern, standards-based language and programming model that supports common design patterns suitable for developers from many backgrounds. Flex applications can be deployed to the ubiquitous Adobe® Flash® Player in the browser, Adobe® AIR™ on desktop and mobile or to native Android™, IOS™, QNX®, Windows® or Mac® applications.1

Usage

  • The lexical analyzer flex is not related to this. It should be tagged with or instead.
  • The CSS property flex is also not related to this. It should be tagged with instead.

Resources

23926 questions
21
votes
8 answers

Calculating Text Width In ActionScript And Flex

I'm trying to calculate how WIDE to make my button, based on the text that it will contain, and when I try to google for how to calcuate something as simplistic as the WIDTH OF SOME TEXT, I go cross-eyed just trying to wade through apparently…
Joshua
  • 6,643
  • 15
  • 55
  • 76
21
votes
5 answers

How to explain to client that you can't give them some of the source

We have a number of AS/Flex components that we've built over time and improved upon. They've been turned into components so they can be reused in different projects and save us time. So you can think of them as part of an in-house framework of…
Bo.
  • 229
  • 2
  • 5
21
votes
1 answer

MXMLC in Flex SDK 4.5 doesn't work on Mac OS 10.8

Starting mxmlc on the latest mac exits with error message: Error: This Java instance does not support a 32-bit JVM. Please install the desired version. How to fix?
20
votes
4 answers

Flex / Air obfuscation

I've written (most of) an application in Flex and I am concerned with protecting the source code. I fired up a demo of Trillix swf decompiler and opened up the swf file that was installed to my Program Files directory. I saw that all of the…
Shawn
  • 19,465
  • 20
  • 98
  • 152
20
votes
5 answers

As3 - How to clear an array efficiently?

I've been looking to clear an array in ActionScript 3. Some method suggest : array = []; (Memory leak?) Other would say : array.splice(0); If you have any other, please share. Which one is the more efficient? Thank you.
ALOToverflow
  • 2,679
  • 5
  • 36
  • 70
20
votes
5 answers

Get the current logged in OS user in Adobe Air

I need the name of the current logged in user in my Air/Flex application. The application will only be deployed on Windows machines. I think I could attain this by regexing the User directory, but am open to other ways.
Shawn
  • 19,465
  • 20
  • 98
  • 152
19
votes
1 answer

Runtime problems after migrating from Flex3 to 4 in compatibility mode

We are migrating our Flex-3.2 application to Flex 4.1, mainly to take advantage of the new text flow/engine features. In a first step we decided to go with compiling for MX-only and in Flex-3-compatibility mode. Thanks to some helpful resources…
Stefan
  • 1,325
  • 12
  • 25
19
votes
9 answers

Why does the Flash Player throw a sandbox error in this case?

I get a Flex 3 sandbox error #2048 after connecting to a Socket on a Java (1.5) server. The server code is all mine, i.e. not running under Apache. Flash Player 10.0 r32. The sequence is as follows... 1 Java server starts, listens on port 843 for…
Simon
  • 78,655
  • 25
  • 88
  • 118
19
votes
4 answers

Possible to use Flex Framework/Components without using MXML?

Is it possible to use the Flex Framework and Components, without using MXML? I know ActionScript pretty decently, and don't feel like messing around with some new XML language just to get some simple UI in there. Can anyone provide an example…
davr
  • 18,877
  • 17
  • 76
  • 99
19
votes
4 answers

Node.js Base64 Image decoding and writing to file

I'm sending the contents of this Flex form (Don't ask why) over to node. There is a post paramteter called "photo" which is a base64 encoded image. Contents of photo get sent over ok. Problem is when I am trying to decode the content and write them…
Mehdi
  • 803
  • 2
  • 11
  • 16
18
votes
14 answers

How to deal with Number precision in Actionscript?

I have BigDecimal objects serialized with BlazeDS to Actionscript. Once they hit Actionscript as Number objects, they have values like: 140475.32 turns into 140475.31999999999998 How do I deal with this? The problem is that if I use a…
Mike Sickler
  • 33,662
  • 21
  • 64
  • 90
18
votes
5 answers

Download a file with Adobe AIR

How do I download a file from the internet in a Flex based AIR application. I tried using a file with url set to the address, but I got a file does not exist error when I tried to save it. And it is really hard to google for help on this issue.
AlexH
  • 2,827
  • 7
  • 31
  • 30
18
votes
4 answers

How can I unit test Flex applications from within the IDE or a build script?

I'm currently working on an application with a frontend written in Adobe Flex 3. I'm aware of FlexUnit but what I'd really like is a unit test runner for Ant/NAnt and a runner that integrates with the Flex Builder IDE (AKA Eclipse). Does one exist?…
Rytmis
  • 31,467
  • 8
  • 60
  • 69
18
votes
8 answers

Force Garbage Collection in AS3?

Is it possible to programmatically force a full garbage collection run in ActionScript 3.0? Let's say I've created a bunch of Display objects with eventListeners and some of the DO's have been removed, some of the eventListeners have been triggered…
defmeta
  • 1,322
  • 3
  • 11
  • 19
18
votes
3 answers

actionscript (flex): how to know whether a property of object exists (or defined)?

I am a Java developer who tries Flex. Here is my problem: I behave actionScript objects as hashmap but when the object do not have the property it gives exception: No such variable. Here I expect it gave me null, instead of giving exception. So do…
enesness
  • 3,123
  • 5
  • 31
  • 33