flex

Where can I find the official description of Flex html-template and output folder structure?

I'm looking for an official Adobe page explaining the ins and outs of the various directories used in Flex Builder, namely html-template, bin-debug and bin-release. There's a lot happening in these folder: folders get created and deleted, files get copied around automatically, or not, as seems to be the case with AIR apps. I'm looking f...

Flex HTTPservice and POST, Sending Files ?

Hello, I use a basic Post to send data to a Django server. The data consists of a base64 encoded 640*380 PNG image dynamically created by the flex component. <mx:HTTPService id="formSend" showBusyCursor="true" useProxy="false" url="http://127.0.0.1/form/" method="POST" result="formSentConfirmation(event)" fault="formSendi...

Flex famous 2048 security violation error, cross domain.

Hi, I thought 2048 security violation error were mean to happen when trying to access other domains. I got: "Security sandbox violation: http://127.0.0.1/site_media/main.swf cannot load data from 127.0.0.1:80", isn it the same domain? what is the solution ? on doing var loader:MultipartLoader = new MultipartLoader("http://127.0.0.1...

flexunit with pure ActionScript project in Flex Builder 3

If you create a pure ActionScript project in Flex Builder 3 and want to do unit testing using flexunit, what is the best option? The built-in Flex builder will refuse to build the mxml file containing the TestRunnerBase component as it is a pure ActionScript project (no Flex allowed). It is impossible to add the mxml file to the "Action...

Syntax Highlighting library in ActionScript

I let user enter some code in my Flex3 (Flash 10) app and I want to do syntax highlighting. Is there any open-source library that would help me? I'll need a Lua syntax support, but I can add it myself if library has a resonable interface to do this. ...

Securing certain parts of an application.

Hi, If someone logs on to my application this user contains a dictionary with certain permissions. ex: module.view.workspace = true module.view.reporting = false ... Then we know to what parts of the application the user has access. What I want to know is how we can apply these permissions on the view. We are working in an AS...

Flex: Is there anyway to disable the textfield in the NumericStepper and force the user to change the value only by using the up/down buttons?

Probably not much more to elaborate on here - I'm using a NumericStepper control and I want the user to use the buttons only to change the value in the NS, not by typing into the control - I couldn't find a property to disable the text - does it exist? If it doesn't, how would I subclass this thing to disable the text? ...

Why does mx:states have trouble being resolved to a component implementation?

Every now and then I get an error when I set up states in an MXML file. The error I get says that mx:states could not be resolved to a component implementation. I read, at the following url, that this issue is caused by extending components - that somehow throws off the compiler's ability to resolve mx:states. I don't see why this sho...

Compile swf at runtime via C#?

Hi - I'd like to know if it's possible to compile an .swf file at runtime via C# (would be called via a Flex Application). I've read some articles about using fsch.exe, but nothing that gave any concrete examples. I'm fairly certain this is possible, so a secondary question is whether it's feasible on a medium scale. I'd like to allow u...

Flex: invalidateData

I've trouble getting my components to update when the params has changed: package mycompany { import flash.events.Event; import mx.events.SliderEvent; import mx.controls.HSlider; import mx.controls.sliderClasses.Slider; public class FromToSlider extends HSlider { /* from: */ private var _from:...

Web-based Game Development: Flex Builder or Flash CS3?

I'm researching game development in Flash and Flex. I've downloaded the Flex Builder trial and have worked with older versions of Flash. I see that generally, Flex Builder is a developer's tool, and Flash is a designer's tool. It's not clear to me whether one is better suited to game development than the other, or if it's necessary to...

What does this this ActionScript syntax mean? ( Syntax for returning Objects Inline )

Hi, I am a Java programmer and need to work on a Flex/ActionScript project right now. I got an example of using ITreeDataDesriptor from Flex 3 Cookbook, but there is one line of actionscript code that's hard for me to understand. I appreciate if someone could explain this a little further. public function getData(node:Object, model:Ob...

How are you doing authentication in your Flex app?

Do you build all your login, account creation, password recovery, etc. into your Flex app, or do you keep all of that in web pages and only redirect to the .swf on successful login? ...

Flex: when hiding components in flex

When I set a component to visible=false the component hides, but how do I get it to take no space (get the container it belongs to to resize??) <mx:HBox width="100%" height="100%"> ... </mx:HBox> <mx:HBox width="100%" id="boxAddComment" visible="false" > <mx:TextArea id="txtComment"/> <mx:Button label="Spara" click="addCommen...

How do I change the State in an itemRenderer based on an action in another itemRenderer?

I have a DataGridColumn with an ItemRenderer that extends the Box component. The default display is a Text component. When the user clicks on the text component, I change the State to add a PopUpMenuButton child, and make the Text component invisible. This works fine. However, I only want to allow one PopUpMenuButton to be visible in the...

RadioButton in 1st row of DataGrid causing problems - Adobe Flex

I have a DataGrid with RadioButtons in one column using itemRenderer. The DataGrid resides on a TitleWindow which is created and popped-up everytime the user clicks a button. The dataProvider for the DataGrid is an ArrayCollection, and the RadioButtons are selected or not based on a boolean value in each ArrayCollection item when the win...

Flex: Using NumericStepper as an itemEditor in a DataGrid

I am trying to make one field in a datagrid editable with a numeric stepper. My current attempts look like they are working, but the dataProvider is not actually being changed. Based on what I have read in a billion different places, the syntax should be < mx:DataGridColumn dataField="a" itemRenderer="mx.controls.NumericStepper" rend...

Question about integrating java and flex

I have a flex web app and want to integrate it with Java. The app will have a very small database (2-3 tables), and some routine logic like sending mail. According to this link (http://learn.adobe.com/wiki/display/Flex/2b.+Code+Files), I would need to also have a .jsp file. I thought Flex would only be interested in my classes? Also, ...

Profiling existing flash files

I'm trying to do some research on flash objects in browsers. For example memory usage etc. With Adobe Flex Builder 3 im trying to do some profiling on swf files but the problem is that I can only do this on debug swfs. Almost all adds/games/video are release version. Is there a way to some testing on those? ...

How to warn user of CAPS LOCK enabled in Flex/AIR?

Similar to the XP login screen, in Flex 3, how can I display a warning to the user in a textbox that the CAPS LOCK key is enabled? ...