Questions tagged [flex4]

Flex 4 is an Apache (previously Adobe) Framework used to build RIA for Flash Player.

Flex 4 has been built around 3 main themes:

  1. Design in mind
  2. Developer Productivity
  3. Framework Evolution

One of the main advantages of Flex 4 comes from an entirely new component architecture, called Spark, built on top of the Flex 3 component architecture (Halo), that allows better separation of the visual elements of the UI components from their logic. This leads to better workflows and work separation between designers and developers.

A major update, codenamed Hero, also known as the 4.5 version of the SDK is available now, released in May 2011. Hero supports building applications for mobiles and tablets devices, increases compiler performance, and add a new set of Spark components.

3926 questions
26
votes
12 answers

Scroll to selected item in Flex 4 Spark List component

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item ? Thanks !
Rodion Bykov
  • 614
  • 1
  • 7
  • 14
24
votes
1 answer

Setting a default skin for a custom component in Flex 4

How do you set the default value of skinClass for a custom component in Flex? I've extended the DropDownList with my custom component, but I would like to specify a default skin to go with it instead of always setting the skinClass value for each…
Anthony -GISCOE-
  • 618
  • 5
  • 12
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
14
votes
1 answer

Extending MXML custom components via MXML

What I'd like to do: create an MXML component with some children, then extend it via MXML to create a new component with more children, without losing the original set. In other words create a component bc.mxml
fred august
  • 1,109
  • 12
  • 31
14
votes
2 answers

Any Flex 4 migration experience?

My current development stack is MySQL + iBatis + Spring + Spring BlazeDS Integration 1.01 + BlazeDS 3.2 and Flex 3 with Mate 0.8.9 framework. Now Flash Builder 4 beta 2 is out. There are cool features like Data Centric Development (DCD), form…
Gok Demir
  • 1,404
  • 4
  • 21
  • 40
14
votes
7 answers

Disable Flex CSS type selector warning?

I'm building a somewhat large Flex project that includes several modules (a single Flex project that produces multiple SWFs) Right now, I have a single css file, being loaded in the main SWF tag:
davr
  • 18,877
  • 17
  • 76
  • 99
13
votes
4 answers

Is Adobe Flex going to end up dead - can you recommend a web+mobile app replacement?

I'm seeking advice regarding adobe flex which has been currently incubated by Apache. Is Flex going to end up dead? In my organization I have been offered two options: either move to HTML5 technology, or choose another platform such as Android or…
Dinesh
  • 179
  • 1
  • 2
  • 11
13
votes
2 answers

Free Flex IDE's

could you recommend some good alternative Flex IDE? I am interested in free editions mostly but I will also take under consideration the paid ones. Thanks
Jacek Francuz
  • 2,420
  • 8
  • 45
  • 61
13
votes
4 answers

Flex performance considerations

What are the main key-points a Flex developer should remember in order to improve performance of Flex applications? The ones which come to my mind are: extending ItemRenderers from more lightweight base classes: i.e. UIComponent using…
Maria Sakharova
  • 1,389
  • 15
  • 15
13
votes
5 answers

Flex 4: Setting Spark List height to its content height

How to set a Spark List height to the height of its content? Tried this: var lastRow:IVisualElement = myList.dataGroup.getElementAt(myList.dataGroup.numElements - 1); myList.height = lastRow.y + lastRow.height; It works in case of…
alexey
  • 8,360
  • 14
  • 70
  • 102
13
votes
2 answers

Use JQuery or onbeforeunload for IE and FF

I'm working in a Flex4 application, using javascript, in the "index.template.html" document. I'm having an issue being able to use onbeforeunload with Firefox. The application works perfectly in IE, but the exact same one doesn't sit well with FF.…
Brian
  • 529
  • 2
  • 7
  • 17
12
votes
1 answer

Flex 4 two classes in one file

Can I put two or more actionscript classes in one .as file like this: //A.as package classes { public class A { public function A() { var b:B = new B(); } } internal class B { public function B() { …
user578737
  • 133
  • 1
  • 8
11
votes
6 answers

Data binding will not be able to detect assignments to "topLevelApplication"

I am migrating an application from Flex 3 to Flex 4. In some cases there are popup windows of which the width and height is bound to the application width and height. width="{Application.application.width - 24}"…
Bocaxica
  • 3,911
  • 3
  • 37
  • 54
11
votes
2 answers

Flex 4 Scroller

Within my application I'm using a Scroller component. I can't seem to figure out which event I should set up a listener on in order to know when content is scrolled. I tried Event.CHANGE on Scroller.verticalScrollBar property but apparently that…
Andrey
  • 8,882
  • 10
  • 58
  • 82
11
votes
6 answers

Flex's FileReference.save() can only be called in a user event handler -- how can I get around this?

I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse…
James Adams
  • 8,448
  • 21
  • 89
  • 148
1
2 3
99 100