flex4

Is there new line constant in actionscript or flex

I want to add a newline to a string text and I was wondering if there is a newline constant in actionscript 3? For example in .net there is an Environment.NewLine that is a string, containing "\r\n" for non-Unix platforms, or a string containing "\n" for Unix platforms. ...

How to use a 9-scaled SWF in Flex 4?

Hi, I have a 9-scaled swf file that i want to use as a background. I tried using it SWFLoader but it doesnt vertically scale it. Any guidance? Thanks ...

flex 4: while in a vgroup, how can i add a moveable element that won't be part of the vgroup?

Hiya. I created several components that are placed inside a VGroup. in one of the components code, i want to add an image and to move it. i don't want the image to be part of the vgroup and to be bound to the vgroup area, i want it to be like float in css. how can I do that? update I want to be able to move the element in the entire a...

Flex 4, packages and classes

Hi, can someone help me understand this because it's working in as3 but not so much in flex and I really can't seem to get my head around it. I can get it working by changing my function to static but I don't want to do this. Ok so first I've created a package package testPackage { public class TestClass { public function TestClass...

show border on rollover and select the thumb on click and unselect pre selected thumb

I have some small canvas, and i have to show border around them, i did that using rollover and rollout evenets, (these canvas hold product images), here rollover and rollout are working perfectly fine, but when a user clicks on some canvas, it has to be selected, means it has show the border around it, and rest canvas should work as norm...

Can [ArrayElementType] metadata tag be used on a function parameter

What language construction can be used to make a compile time checking of Array elements type when the Array is a function parameter? Let's use this function as an example: [ArrayElementType("String")] private function GetNumberArray(parameter:Array):Array { var myData:Array = [1.0, 2.0, 3.0]; return myData; } Here we've marked...

flex 4: how can i connect two lines with a small curve?

Hello. I have the following code to draw two lines that connect to each other at one point: <s:Line right="0" top="0" bottom="0"> <s:stroke> <s:RadialGradientStroke weight="3"> <s:GradientEntry ratio="0" color="0xAB9A9C" alpha="0.5" /> <s:GradientEntry ratio="0.8" color="0x8A797B" /> <s:G...

flex 4: IFocusManager.moveFocus() api has been removed, any alternative way

Hi, I am working on migrating our app to compile with Flex 4 framework libraries. One of the things I bumped into yesterday was the IFocusManager.moveFocus() api which was previously there in Flex 3, seems to have been removed from Flex 4. We make use of this api in a bunch of places in our code. So, I was wondering if anyone else ha...

Flex 4 custom component with children inserted directly into view stack

I give up. Hopefully I am just missing something easy, but I feel like I am pulling teeth trying to get this to work. All I want is a custom 'wizard' component whose children are placed within a ViewStack and beneath the ViewStack there is a next and back button. Here are some code excerpts to illustrate my approach: WizardGroup.as: ...

fdb: about what can talk this trace?

[trace] level status [trace] onStatus [trace] code NetStream.Play.Stop [trace] level status [trace] onStatus [trace] code NetStream.Play.Stop [trace] level status [trace] onStatus [trace] code NetStream.Play.Stop [trace] level status [trace] onStatus [trace] code NetStream.Play.Stop [trace] level status [trace] onStatus [trace] code NetS...

DataBinding in Actionscript

What I have is a class with static properties that I want to use as images. I would like the images to be configurable at run time but still have the defaults. So the Images class looks like: package { public class Images { [Embed(source="/assets/Green-Light.gif")] [Bindable] public static var GreenLight:Class; } } And now a custom c...

Scaling multiple axes in PlotChart

When I programmatically create a PlotChart starting w/ no series and adding series w/ own scaling and verticalAxes (and Renderers but not necessary for behavior error), the axes and data show, but the default axis controls all scaling and the other axes are erroneous. Thus, the yValue magnitudes do not correspond to their associated axes...

Change mouse cursor to a bitmap (Flex 4)?

In Flex 4, how can I change the cursor to a Bitmap image determined at runtime? All the examples I've seen use CursorManager.setCursor to set the cursor to a class specified at compile time. What I want to do is change the cursor to a bitmap whose bitmapData is determined by the context. ...

Flex:- draw a pie chart in a popup window

Hi friends, I have drawn a pie chart,I want that when I roll over my mouse on this pie chart, a popup window opens and the same pie chart is drawn in this popup window.(Only the pie chart in this popup window is magnified).Take any input directly. Thanks in advance. ...

Flex-Mojo/Flex-compiler version issues with Flex 4.1 and maven2

My projects UI is built using Flex4.1..I am using maven2 and trying to figure out which flex-mojo version should I use for compiling. I tried with the following, <flex.sdk.version>4.1.0.16076</flex.sdk.version> <flex.mojo.version>3.6.1</flex.mojo.version> but am running into issues.. [INFO] Flex compiler and flex framework ver...

highlight item in spark list

I have two spark lists and want to drag items from one list to the other. When im dragging an item and over the other list item, i want the target item to change the background coloer. Basically instead of showing the black line indicating that I will drop between elements, I want to see the target item highlight. Thanks in advance. ...

flex4: how can i add a GlowFilter to a mx:DataGridColumn ?

Hiya. I'm building an application using flex 4. Using <mx:DataGrid> to display a table. I would like to add a <s:GlowFilter> to a DataGridColumn. how can I do so? thanks! ...

Problems setting alternatingItemColors from CSS style (Flex)

Hopefully simple question: I'm trying to set the alternatingItemColors on a datagrid via some values that I set in a CSS file but nothing seems to work. the CSS file looks something like this: .FACS0 {color: #B0B0B0;} .SACS0 {color: #A6A6A6;} .AICS0 { alternatingItemColors: #B0B0B0, #A6A6A6; } I tried a variety of different th...

Optimal way to enable user to pick style at run time - Flex

What I'm trying to do: allow a user to be able to select a color palette for a custom component by selecting from a drop down menu with a variety of icons. I have the drop down menu part down, but I'm trying to understand how to best handle the various styles in my code. Ideally I would have liked to be able to load styles at run time, ...

How to display file system in an air application?

Hi All, I'm working on a file sharing application. I want to display one side client file system and other side server(or peer's) file system so that by drag and dropping they can transfer files one system to other. Now I want to display my local file system as it opens main window without any browse or search buttons. Its a window appli...