flex

Use variable name in StringUtil.substitue in Actionscript

If I have the following code: var value : String = StringUtil.substitute("The value {0} requested is {1}", user, value); How can I use the variable name instead of using {0} and {1} in the code. Please advice. Thanks. Edit: The above code is quoted from http://www.rialvalue.com/blog/2010/05/10/string-templating-in-flex/. It says t...

Flex wordwrap issue with multiple text instances

Hi, I have a scenario where I want to dynamically add words of text to a container so that it forms a paragraph of text which is wrapped neatly according to the size of the parent container. Each text element will have differing formatting, and will have differing user interaction options. For example, imagine the text " has just spok...

Components inside a repeater not resizing as expected

I have an mxml panel in which I'm using a repeater. The panel can be resized horizontally and I would like for the repeated components to resize together with panel. Here is a simplified example of how things look like: <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" ...> <!-- scripts and some controls --...

How do I emebed css at compile-time using AS3 (just like the <fx:style> tag)?

I'm working in a Flash Builder 4 Actionscript project and trying to figure out how to embed a css file into the project at "compile-time". Just as we did when we use MXML's <fx:Style> tag. Any idea? ...

Flex 4: Getter getting before setter sets

I've created an AS class to use as a data model, shown here: package { import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.http.HTTPService; public class Model { private var xmlService:HTTPService; private var _xml:XML; private va...

Changing Background Images per state

I have a Component that has a specific background image. The code looks like: <mx:backgroundImage>@Embed(source='img1.png')</mx:backgroundImage> <mx:states> <mx:State name='state2'> <mx:SetStyle name="backgroundImage"> <mx:value>@Embed(source='img2.png')</mx:value> </mx:SetStyle> </mx:State> </mx:states> But when I ...

Navigating directly to the second tab in tab navigator

Hi, I have a component mxml in which i have a save button, on click of the save button i need to display another component which will be in a tab navigator, for this I am using the view stack. My problem is, on click of save I need to display the second tab instead of the first tab, but defaultly the first tab will be displayed. How co...

Facebook Invitations Do not reach Facebook Friends | AS3 | IFrame | FBML | FLEX | FLASH

Thank you for bothering and taking the time to read!!! So, I have an xd_receiver.htm file in place within the same directory as the index.htm. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Cross-Domain Recei...

Authentication in flex portlets

Can anyone help me for the following? I want to have flex portlets side by side with JSP portlets. How can we implement the authentication mechanism? [ Authentication will be handled by the portal and how can we share the same session with flex portlets ] Regards Vishal G ...

Dynamically Change Fusion Chart Value with Slider Event in flex

I am having a set of slider for each bar in the graph. I have bindded all the sliders with their corresponding bars. When i change the value of slider the value in the ArrayCollection changes and i have also used singleData.refresh(); but the values in the chart remains unchanged. How can i update the values in the chart with the...

Flex Chart ColumnSet with dataFunction in ColumnSeries lead to a bug ?

Hi, I use Flex ColumnChart and set ColumnSeries in ColumnSet with dataFunction. The function I need is to change series by user interaction, so I add a button to pop series from myChart.series (actually I get a array = myChart.series, pop the series, and assign myChart.series = array). However, when I click this button, the last series...

Flex4: if I want different icons, should I create a skin class for each button ?

hi, i have a sequence of buttons and each button has its own icon. I was wondering if I have to create a Spark skin file for each button in order to assign its icon. thanks ...

Adobe Export Release Build doesn't work - Mac OSX - Flex Builder 3

Hello, I have an AIR application i'm trying to release with flexbuilder. Launching application has no problem ... bin-debug dir is correctly filled with my files. But when i want to create the AIR file (export release fuild), AIR files content view is empty and bin-debug directory is never filled ... Any idea ? Thanks, Yannick Gren...

How to read all data from abstract Shared Object file? (Flash, Actionscript)

what I meen is to get all objects and their properties, is it possible? How to do such thing? ...

Resize flash.media.Video

I'm having trouble to resize my custom UIComponent that wrap flash.media.Video object (The reason I choose this way is because mx.control.VideoDisplay doesn't support streaming playback that available in flash.media.Video that is attachNetStream()). Once I create a 320x240 Video size and remove it from its parent, I can't replace it with...

Flex4, Spark s:VideoPlayer

2 questions: 1) Is the new spark s:videoPlayer recommended to play videos ? Or should I build by myself with DisplayVideo components... adding controls.. etc etc ? 2) How can I customize the s:videoPlayer components ? What's the easiest way, for example, to fade in / fade out controls, when the mouse move over the video ? Should I ext...

Login session lost after flex chart is displayed from jsp

I have a java web application. When I log in to that application and navigate to a jsp which has flex chart embeded into it, the chart displayes just fine. I am using blaze ds remoting object mechanism. But when I want to navigate to a different page, it logs me out of application since the login session is lost. ...

Flex Builder debug problem

I am running on Windows XP and recently updated Flash Player from v9 to v10.1. And Now, in the Debug Console under Flex Builder, I am getting a lot of debug statements(I think that is assembly). Below is an example, of what I get: " active: eax(737-757) ecx(738-758) ebx(3-797) esi(728-756) @739 st 143112124(0) <- @3 09002830 mo...

clean project in flash builder on debug launch

Using Flash builder 4 to build an AIR app. I keep having my code changes not take effect when I launch the project with the debugger, probably happens about once an hour. So does anyone know how to have FlashBuilder clean the project automatically before each launch? Thanks ...

How to view shell commands used by eclipse "run configurations"

Given a "run configuration" in Eclipse, I want to print out the associated shell command that would be used to run it. For example: Right now, in Eclipse, if I click "play" it will run: mvn assembly:directory -Dmaven.test.skip=true I don't see that command, I just know that's what the IDE must run, at some point. However, some of the...