mxml

what's the difference between MXML and Actionscript3

what's the difference between MXML and Actionscript3 when we need to use MXML ?? ...

Passing properties to a custom component in Flash Builder 4

I'm trying to pass some properties to a component I've created in Flash Builder 4. In my example below I want to pass the "label" property to update the label property of the Button. Any help would be greatly appreciated. Thanks in advance. // MyApp.mxml <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns....

Flash Builder 4: Error #1009 in when Button is wrapped in BorderContainer

This is really bugging me, but I have a component where a Button is wrapped in BorderContainer. I'm passing a custom property to the component at run-time to change the label of the button but Flex is reporting the following error: Cannot access a property or method of a null object reference When the error occurs, Flex highlights the...

Changing properties of several objects in Flex

In my example below I have several objects. I want to change the label of all objects in one go, without calling each element by id. I know how to do this in HTML, but not in Flex. // HTML <div class="text" id="text1">SomeText</div> <div class="text" id="text2">SomeText</div> <div class="text" id="text3">SomeText</div> // jQuery $(".te...

create interface object in mxml

Let's say I have an interface public interface IFoo { ... } and I have several implementing classes public class Foo implements IFoo { ... } ... public class Bar implements IFoo { ... } ... public class Baz implements IFoo { ... } I want to reference IFoo in MXML like this <ns:IFoo id="myfoo"/> and have it be ...

Dynamically loaded comboboxes in cfgrid (Flash)

ok..so I am creating combobox grid cell renderers with Flash .as code for a ColdFusion routine that has 4 pages..I need two of these comboboxes - one each in two different cfgrids on seperate pages...I can create the cell renderer for one or the other of the comboboxes consistently..but need both to be available.. I finally figured out ...

Create a Flex4 component to have the typewriter effect in text

How can I create a Create a Flex4 component to have the typewriter effect in text , like shown here ...

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...

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...

Populating a datagrid in flex with content from an XML feed

I have a datagrid: <mx:DataGrid id="resultsDataGrid" height="328" width="604" paddingRight="0" editable="false" y="43" horizontalCenter="0"> <mx:columns> <mx:DataGridColumn headerText="Title" dataField="title"/> <mx:DataGridColumn headerText="Updated" dataField="updated"/> </...

How can I bind a component to an XML node dynamically at runtime?

I have a custom component based on mx:ComboBox. Within it I connect to an HTTPService (the url is passed as a paramter) and bind the combobox. Parameters to be sent to the HTTPService are passed to the component. This is working fine. But I want to modify it to make it re-usable with other HTTP service URLs, which return the XML in a dif...

Can I set an effect's duration as a percentage of its parent's?

When I'm building an composite animation, I'd like to specify the components as fractions of the parent, like so: <s:Sequence id="example" duration="2000"> <s:Fade alphaFrom="0" alphaTo="1" duration="10%"/> <!-- not legal --> <s:Scale scaleXTo="2" scaleYTo="2"/> <s:Fade alphaFrom="1" alphaTo="0" duration="10%"/> </s:Sequenc...

Is there a way to have global Flex 4 states (user roles)?

I am having an issue with flex states in my application. What I am looking to do is on creation complete of the application, obtain a user role guest/user/superUser (based on username and password) from a server, then set the state client side based on that information. My .mxml classes need to include certain graphic elements based on t...

Return value instead of null

Hi, I'm trying to call a function and pass a couple of properties to it however it's complain the object i'm attempting to target is null. Can anyone see where I am going wrong? <mx:ViewStack id="vs" width="100%" height="100%" y="53"> <mx:Canvas id="view1" label="Community" width="100%" height="100%" backgroundColor="#ff9900" showE...

Allow end user to define state transitions in a Flex mxml application

Adobe has a great tool for designers called Adobe Catalyst to develop AIR based desktop apps which designers can customize to define state transition in a screen-flow based application. Now Is there a way in which an end-user who gets that application can change the conditions for state transition and the the content of the state. For ex...

Adobe AIR application to receive back events from native Windows application

I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants ...

3D carousel for video in Flex

How can i design a 3D carousel for video in a Flex application? Instead of 3D carousel for images, I want to show videos (getting them from youtube). ...

Adobe Flex4 mxml schema

Is there a MXML schema xsd given by the latest Flex4 distribution? I found from the old release notes that : Flex includes an XSD file that you can integrate with your third-party editing tools for schema validation and easier MXML coding. This file is installed in the following location: {install.dir}/extras/schema/mxml.xs...

How do you store a block of XML in ANT?

I'm very new to ANT and have started using it in a Flash Builder project. When I run the compiler I need to pass in some library paths. The whole thing looks like this: <mxmlc file="${SOURCE_DIR}/com/${PACKAGE_NAME}/Main.as" output="${RELEASE_DIR}/assets/swf/${IDENTIFIER}/main.swf" locale="${LOCALE}" ...

Id1120: Access of undefined property while trying to access a button defined in mxml thro' AS

I have a mxml component MatchedDataTab where i have a datagrid and few buttons. Now i am trying to hide/unhide these buttons in a action script file. The problem is i always get a compiler error saying Id 1120: Access of undefined property unmatchButton. I am not able to post my complete mxml file due to xml tags i guess!!. but the s...