flex

How can I share code between C# and Flex?

I am developing a Flex / Flash application which talks to an ASP.Net / C# backend. Is there any way I can share code between the two? The server provides a reasonably interesting domain model which the client is designed to maniuplate. Ideally I would like to be able to define this domain model once and have both sides use it for cons...

Flex "Type Coercion" error when casting to interface

This is the error I am getting in the handleModuleReady function: [Fault] exception, information=TypeError: Error #1034: Type Coercion failed: can not convert MyModule@39b8479 to IModuleInterface. I have an application setup and I have created modules to load at runtime in order to decrease the filesize (as most users will only ever ...

How content dynamically updated in flex

Hi, i need your help about below purposes. problem-1:In php we can easily move one page to another and easily use different type of function from those pages.In flex3 how i can use different type of .mxml pages like php. Please guide me with tutorials.It will really helpful for me. problem-2: In same page some content dynamically upda...

Flex/BlazeDS - resultHandler per function call not per RemoteObject?

I've followed this tutorial to get some Flex code to call Java code hosted on a Tomcat server. This is how my RemoteObject and the Button to call the remote function is declared: <mx:RemoteObject id="productService" destination="productJavaService" result="resultHandler(event)" fault="faultHandler(event)"/> <mx:Button label="Get all Pr...

Flex app not working without debug version of Flash Player

Hi. Recently, when I tried to show the results of my work (some Flex app) to my boss, i was quite suprised that application which run perfectly well on my pc, on my boss' pc wasn't displayed properly (the only thing visible was a default grey background). After 3h of trying absolutely everything, finally the app showed up when I changed...

Flex: Get date of compilation?

I would like to include the compilation date with the version number in my flex/air app. I do not know how I could get this, or if its even possible. Is there a way? Thanks. ...

How to get type of variable? and instantiate it?

I am trying to make a function that opens a window but makes sure the same window is not already open. I want to be able to pass it a non-instantiated var or an instantiated var and it work either way. If the window is already open it closes it then reopens it. So I need a way to pass a variable of type Window or a subclass if it, and ...

Label word wrap in Flex 4

How can the text in a Label control (or a similar control) be wrapped in Flex 4 beta? In Flex 3 I could use the Text control but this is no longer available in Flex 4. ...

Can I control the context menu on a link in htmlText when using Flex?

I created a Flex application with a textArea. I'm populating the textArea's htmlText property. I have a context menu on the textArea, but I don't see how to make a different context menu when the user right clicks on a <a href...>link</a>. Can I control the context menu for a link displayed inside of the htmlText of a mx:TextArea? ...

Flex PopUp Window Mate Listener and null object reference

There is a similar post here regarding this issue, but my problem is a little different. I have a PopUp window containing a form used to sign-up for access to a site. An event is generated from the PopUp via a Mate Dispatcher tag (Figure 1) validated in Flex and then sent to the server. Validation happens both in Flex and on the remote ...

How can I load a local resource synchronously in Flex 3?

I want to store some test data for a FlexUnit test in small XML files in my Flex project, and access them trivially for the flex test. How can I load these bits of data synchronously? HTTPService is the way I'd be loading them _a_synchronously, but adding event handlers to my test cases seems like a bit of overkill. ...

Sizing Flex DataGridColumns(Dynamic number)

I have a DataGrid that has between 4-10 columns. I want the columns to be of width '50'. I have already set the width attribute in MXML. I am using "colName.hide = true" to hide various columns depending on whether I have data. I find that my columns expand when I have less columns. Is there a way to set the max width of a column or forc...

how to load several external images; getting cannot convert to Class

I'm trying to load a bunch (about 100) of images into memory, so I can display them at various times. Originally I had simply embedded them, but that of course resulted in the swf file being larger than I wanted. So now I'm trying to change it to load them in the background because they aren't needed immediately. There are probably ple...

Lots of "incompatible signature" errors on Windows but not on Mac OS X with Flex 4 Gumbo.

I have a pure Action Script 3 project which I am compiling with the Flex 4 SDK. I have a standard Makefile which automatically invokes compc, mxmlc, and asdoc as appropriate. The project is compiling cleanly with no errors or warnings on my Mac OS X 10.4+ computer; however, when sharing it with a coworker developing on Windows XP (with C...

Reading the link attritube on the itemClick

<root> <module label="Executive Library" > <node label="Document one" link="http://www.google.com" /> <node label="Document Two" link="http://www.google.com" /> <node label="Document Three" link="http://www.google.com"/&gt; </module> I have a page which displays these items, when i select the docume...

Reading nodes in XML

> <root> > > <module c_name="Executive Library"> > <node cd_title="Document One" > cd_link="http://localhost/userMana/upload/feature.xml"/&gt; > </module> <module c_name="Rate Card"/> > > <module c_name="Time Sheet"> <node > cd_title="Document Two" > cd_link="http://localhost/userMana/upload/epl-v10.html"/&gt; > </module> </root> <mx:...

Flex Web-Tier Setup

Howdy Everyone, This one has been driving me nuts for a few days now and I've tried Google but no luck (judging from my good luck with finding answers on google, this is a rarity for me not to find an answer). To cut a long story short, I did have the capability to compile my mxml files via the browser on my local machine. I've had to ...

Flex having a VBox with Vertical Buttons.

Hi I am trying to get a left hand like panel bar in my application, one much like the OneNote left hand(notebook) panel. I have been trying to use a VBox with Buttons and setting the rotation on the buttons to 90. The buttons seem to disappear when I do this. An example of what I am trying to achieve is here: http://www.rid00z.net/p...

Creating a class dynamically in actionscript

Let me present the problem first. I need to load all images that I have used in my project externally without embedding. The images are present either in skins or as icons for items in trees. I came across the IconUtility class here I was able to modify it and use it for trees but the problem is we cannot use iconutility for the same com...

Compile a SWC using COMPC, excluding 3rd party libs.

Hi, I have a code library that I have built. It relies on 2 other (third party) libraries. At the moment, when I compile the library into a swc, both third party libraries are included. I am looking for a way to compile my code library against the third party libraries, but without including them in the compiled swc. This would obviou...