flex4

DataGroup TileLayout autoheight

I have DataGroup with TileLayout. How to make datagroup resize accordingly to number of elements in datagroup? For example 1 have 1 row with 4 elements. Each element is 20 pixels tall. So I want my datagroup to be 20 pixels tall as well. If I have 7 elements which will be 2 rows I want my datagroup to be 40 pixels tall and so on. Right...

Flex / Flash - How do I open the .swf in a browser window that doesn't have the browser control bar or menu?

The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window? ...

flex 4 air 2 NativeWindow icon

Hi, I have an app that spawns NativeWindows. I would like to assign a different icon to each native window, however, they all pick up the icon associated with the "main app". I cant see any methods on the Flex native window class to assign icons in this manner. Can anyone offer any pointers? Thanks, Franco ...

Flex 4 Modules & Ant - Error: Could not resolve "" to a component implementation.

I can compile the main application but am having an issue with compiling a nested module. I have the following application structure: src MyApp.mxml view MyView.mxml module MyModule.mxml view AnotherView.mxml When using the following command <mxmlc file="${SRC_DIR}/${MODULE_DIR}/MyModule.mxml" debug="false" output="${...

flex 4 : where is the style designer ?

hello, I just started using flex4 and I have a question: It seems there is no more the "style design" perspective like in Flex3 that allowed to apply css style visually. In flex4, when I open the css file, it is just a plain text and I have to edit it manually without wysywyg editor. Am I missing something ? How can I visually apply...

Flex - Override textinput to show custom tooltip

Hi, I'm trying to extend the spark textinput to create a custom component. When a tooltip message is passed to this component, it should show the tooltip message as an errortip on the rightside of the field. public class CustomTextInput extends TextInput { public var toolTipMsg:ToolTip; public function CustomTextInput() ...

Multiple initializer values for default property, 'dataProvider', of type 'mx.collections.IList'.

Hi, Looking at answers to similar questions it sounds as if this error comes from a simple mistake but I cannot seem to find it I have a set of buttons for each letter of the alphabet. When a user clicks one a list of sport players is returned in a drop down list. The user then clicks on a name to get more information about that player...

How to remove hover / rollOver effects globally on Spark components?

My goal is to remove all hover feedback from the UI. The motivation is for testing touch interface prototypes and not wanting users to have the queue of interactivity when the mouse hovers which they won't have with a touch interface. I have a partial solution but it has two problems: Requires an event handler on each component. Flick...

Flex Binding Manager

Hi, I recently discovered Flex's BindingManager and I'm using its method setEnabled() as the basis for disabling updates on a Flex View between animations in my application. (i.e. disable data binding while animations run (animations are usually SWF created by our resident designers), so data does not change between animations). My qu...

Differences Between Flex SDK and Flash Builder

Can Anyone tell me the differences between Flex SDK and Flash Builder ?? Like - "Mobile development using Adobe Flex SDK "Hero" and Flash Builder "Burrito" Are Both same ?? Please clarify in details. We understand that Flex is an IDE or SDK(software development kit ) where we build,compile and deploy projects with sets of components a...

AS3/Flex 4: Most Practical Way To Find Nested Children

Hey guys, I'm sort of jumping in headfirst to some Flex/AIR stuff. I have a pretty solid background with AS3, but given the inherent hierarchal complexity of Flex (compared to regular Flash), I'm running into an issue. Let's assume that you have an app where pretty much everything is event driven (common). Accessing elements in the n...

flex4: removeAllElements removes the element from the stage but does not delete it completely

I have a container (vgroup) that has some timers and event listeners attacked to it. when i remove the element from the page i can see that it's still running (by having a timer that sends a trace message). how can i make sure that the object is completely erased ?! kfir ...

AIR - Different behaviour when the app is installed and when it runs inside the builder

Hi, we are developing an Adobe AIR app using Flex4. We are facing lot of bugs that didn't show up when we run the application inside Flash Builder (both debug mode and run mode), but when we install the app and run it, the app shows a different behaviour. Any idea ? what does it change between running the installed application in the bui...

How to upload BitmapData in flex 4 to server with preloader?

Hy, Im creating a upload component that do these things: select multiple images convert to BitmapData resize if is too large create a thumb(itemRenderer) and add it to a list And the problem is how to upload them with a preloader for each image when a button is pressed. Anybody know how to do it? thanks ;) ...

Is possible to upload a modified image in flex4 with a progress bar? or alternatives, thanks

Is possible to upload a modified image in flex4 with a progress bar? or do you have any alternatives? thanks ...

AS3/Flex 4: Easing via AS3

Hey guys, This is probably something simple but I'm scratching my head over easing with the Animate class in Flex 4. Basically I'm just trying to set easing via: anim.easer = spark.effects.easing.EaseInOutBase(EasingFraction.IN_OUT); however, it complains, saying Type Coercion failed: cannot convert 0.5 to spark.effects.easing.Ease...

Flex 3.5 / Flex 4 Strange Scaling/Positioning problem

I have a simple block of code to demonstrate an issue: package { import flash.display.Sprite; import flash.events.Event; [SWF(width="400", height="400", frameRate="24", backgroundColor="#FFFFFF")] public class sandbox extends Sprite { public function sandbox() { graphics.beginFill(0xFF0000); graphics.dra...

Flex 4: DropDownList doesn't work in new window

In this code I'm creating a new window when I click the button. In the new window are TextInput and DropDownList components. When the new window opens, clicking the DropDownList does nothing - you have to click it a second time round to get it to open. However, click into the TextInput field first and then try opening the DropDownList wo...

Flex 4 wont recognise flash.events.UncaughtErrorEvent

test.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" x="0" y="0" width="703" height="609" xmlns:ns1="*" > <mx:Script> <![CDATA[ import flash.events.*; // stuff private function onUncaughtError(e:UncaughtErrorEvent):void { //Do Stuff } This gives: apites...

Loading flex modules compiled with Flex 4 SDK into an application compiled with Flex 3.5

I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the module when it need...