flex4

Change background color in spark VideoPlayer

Hi, is there any way to change the black in background in the VideoPlayer component that comes with Flex 4 ? I can change every color but i can't change the black in background. Thanks ...

Font Embedding german characters( "ü") problems

hi all, i am facing one font problem, my website is to operate in five languages, one of them is german, so few characters like ü etc.are not getting displayed properly. so for example, in english, i have one word "unhappy", in german it has to be displayed as "unglücklich", actually i m still using Flex3.0, so when i receive this va...

Remove child content from ViewStack in Flex 4

In my example below, when I click "Add Content", new stack content is loaded into the ViewStack as expected. But when I then click "Close Content", I'm expecting it to close the newly created content inside the ViewStack and switch to the "defaultContent" content. Can anyone tell me where I'm going wrong please? Thanks in advance. // T...

How do I show/hide a row in Flex AdvancedDataGrid with hierarchical view, but flat ArrayCollection dataProvider

I am working on a Flex AdvancedDataGrid with a flat ArrayCollection dataProvider. The requirement is that when the root nodes is closed, the root row should show a subtotal data and when the root nodes is opened, not show the subtotal data. Anyone has a suggestion how to do it? Thanks, Patrick ...

datagrid and static dataprovider

Hi, I'm trying to get this code working, any help would be greatly appreciated. <mx:DataGrid x="359" y="221" width="623" height="176"> <mx:dataProvider>   <fx:Object name="Garbage Collection" code="7777" hours="2"/>   <fx:Object name="Road Repair" code="8888" hours="6"/>   <fx...

C++ framework for separating UI design from business logic

Is there a c++ framework for building rich desktop applications? Essentially the important feature I'm looking for similar to Flex4 MXML to separate the visual presentation and application logic into xml. Does Qt4, for example, allow the visual appearance to be specified in xml definition? This is state based, so on events the UI change...

custom list component with an "empty spot" item renderer

I need to make a custom list based component that orders the items in its data provider in tile format (using tile layout). Also, the component should have a maxNumberOfItems, based on which a number of "empty spots" must be rendered if the length of the data provider is less than maxNumberOfItems. What I do not want is affecting the da...

Communication between c++ and actionscript 3

Is it possible to use any IPC mechanism for calling a c++ api from Adobe Flash actionscript? Are there any good examples? Update: I primarily want it for desktop apps now i.e Adobe's/or anyuone else's desktop runtimes ...

Migrating CSS from Flex 3 to Flex 4

Is there a guide or document that deals specifically with migrating CSS and style attributes from Flex 3 to Flex 4? I have an application that I'm keeping on the 2006 namespace, but I'm having trouble with a couple concepts, like the halo only styles, the CSS namespacing conventions, and styling child controls. ...

Flash Builder 4 - External CSS theme caching issues

I have a Flash Builder 4 application which uses custom themes by loading external style sheets at run time. The user can change the themes via a dropdown menu. Everything works correctly except for some weird caching issues. As you change themes, the main background color will change but certain elements will remain cached. Any ideas or...

Flex 4: Detect click outside of RichEditableText

Hi Is there any easy way to detect click outside of RichTextEditable? just like FlexMouseEvent.MOUSE_DOWN_OUTSIDE is used in popups. Thanks ...

Avoid ItemRenders Caching in a Spark List in Flex 4.

I have 2 Spark List with custom Item Renderers. I'm working on an application that enables users to grag these Item Renders from one List to the other. When one of these IR is dropped in a new position or in another List, I'm updating the dataproviders: remove the object from one list's dataprovider and adding it to other's dataprovider....

How can I catch the fontSize change event ?

I am writing a skin for a TextInput control, and I want it to change when the fontSize style changes dynamically. I see this is done in the default TextInputSkin but couldn't decipher the behavior form the code. How is this done? thanks, ...

Flex/Flash Font Embedding...

I have a Flex 4 project that exists in a hybrid state of Flex/Flash AS3. I've declared a stylesheet in the base component of a Window: <fx:Style source="styles/styles.css" /> And all of my Flex components can display this font. The stylesheet looks like this: @font-face { src: url("../fonts/Whitney-Light-Pro.otf"); fontFamily...

fl.motion cannot be found with Flex SDK 4.1

I just upgraded to using version 4.1 of the Flex SDk and FlashBuilder. Now, whenever I try to import the fl.motion library, like so import fl.motion; I get the following error: 1172: Definition fl.motion.easing could not be found Has anyone else encountered a similar error? ...

AdvancedDataGrid (grouping) quick jump to row

Hi, I have a problem with the AdvancedDataGrid widget. When the dataProvider is an ArrayCollection (of arrays), the nth array (within the collection) is also the nth row within the grid, and I can jump and display the i-th row by scripting adg.selectedIndex = i; adg.scrollToIndex(i); now, when I add a Grouping, the dataProvider end...

Integration of Flex with Struts2

I have an application, where I display the data from database in flex datagrid using Servlet as the Controller. I need to replace the servlet with Struts2. For sending Http request, in mxml file, I have replaced the below code <mx:HTTPService id="userRequest" url="../Servlet?ActionID=ajax" useProxy="false" method="GET" result="send_dat...

Understanding Flash Packages

I'm trying to understand how packages and dependencies work with Adobe Flash Builder 4. I've copied an example here and put it in a .as file called DependencyGraph. However I get the error message: A file found in a source-path must have the same package structure '', as the definition's package, 'DependencyGraph'. I understand tha...

Flex 4: Accessing public method in main application from component

I need to be able to call a method from a component located under the main application in Flex 4. Can anyone tell me please how to do this without using FlexGlobals please? Sample code is attached. Thanks in advance. // TestApp.mxml (application) <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.co...

Flex 4: Event Listener created, but not being called?

I'm trying to call an event I've created in another component. I've added trace() into my methods so I can see what's being called. Everything except for the event listener (myEvent) is being called. Can anyone tell me why this is please? Any help would be greatly appreciated. Thanks in advance. // TestApp.mxml (application) <?xml vers...