flex4

Compile a Flex CSS file into a SWF using the command line

I understand that in Flex builder we can right click on a CSS file and choose 'compile to swf' and our CSS SWFs will automatically be compiled along with the main app. Is possible to compile the CSS file only (not with the main app) from the command line? I want to : Give clients a Flex CSS file to hand edit Allow them to upload the ...

Using RSLs with Modules

Hi All We are building a fairly complex application that we need to be able to release different parts of at different times. To help us solve this problem we are using RSLs and Modules. so let me describe the projects (names have been changed to protect the innocent) core (rsl) client (application) groceries (module) groceriesCore ...

Flex builder3 is not generating html wrapper when targeting flex 4 sdk

In Flex builder 3 when I create a new flex application targeting the flex 4 sdk, it wont generate a html wrapper file. I have hunted around the web for answers, but no success. I have made sure the box is checked in the project properties to generate html wrapper. The only workaround is to target an older version of the sdk (i.e. 3.2),...

which multi-touch hardware devices are programmable via Adobe AIR 2?

Hi, everyone. Thank you for your interesting in my question. You can help me out from this little problem. I am looking to buy the new hardware that is appropriate to use as development machine for multi-touch feature in Adobe AIR 2. I found HP TouchSmart series, which used in Mr.Kevin's demonstration in Adobe MAX 2009, is too expansi...

dict[obj] pulling wrong info at 35-36 xml node why?

I'm not sure how to explain this, but why isn't this code pulling the correct image and icon file? It continues to pull the wrong info at the line 35, which makes all other data one node behind. Even when I delete the three locations below, it still gets the xml wrong. Why would it be doing this? I verified the xml data and made sure al...

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation:

I have created a crosdomain policy file, I have added code to my flex app, and I still get security sandbox violation...have I done something wrong? Here are my errors and file snippets: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mysite.com/folder1/folder2/media/swf_demo.swf cannot load d...

Spark List control - 'n' key moves to next row

I've created an editable list. It means I have an sparks:List with itemRenderes with TextInputs. When I type in text fields, the 'n' key moves selection to next list item. How to get rid of this ? Before Flash Player update the 't' key moved me to the first list item. Now it doesn't. ...

How to take screenshots of a Flex Spark VideoDisplay?

I want to build a component, where the user can play a video in a Flex Spark VideoDisplay. There will be a button and whenever the button is pressed, I want to save the current time of the VideoDisplay plus a screenshot. The screenshot needs to be someway saved, because I want to display all times and screenshots in a DataGrid (screensho...

Flex 4: StyleManager.getStyleManager()

I'm trying to compile existing Flex 4 project but having an error: Call to underfined method getStyleManager of StyleManager class. The code is: var styleManager:IStyleManager2 = StyleManager.getStyleManager(null); I found the method in Flex documentation but when I open StyleManager.as I can't find the method declaration. Used Fle...

What is the most lightweight container in Flex 4?

In the root of my application I have 5 named "slots" (layers) that I want content to appear in. Should I be using Canvas, Group or something else for each of these slots? I don't need any kind of automatic layout inside these slots. ...

Adobe Flex 4.0 vs Silverlight 4.0

While this not necessarily a technical question, I believe it will help a lot of developers (including myself!). With Silverlight 4.0 and Flex 4.0 both in beta, I thought I would put out an open question to the community and see what everyone likes and dislikes about each framework and why. I've worked with Flex in the past but have de...

Advantages of Migrating Flex3 App to Flex4

Hi guys, What are the advantages of migrating a Flex 3 app (Java backend, BlazeDS, Spring, Hibernate) to Flex 4? One of the biggest advantages of Flex 4 is design. Assuming that design / UI isn't a big driver for the business right now as compared to performance, what are the other factors we can highlight? We have implemented Cairngo...

How to make sliding button sidebar in Flex

Hi, I'm fairly new to Flex. I want to make a button (icon) on the far right in the middle of the page that display a sliding side bar with multiple buttons in it when you hover over it. I want when the user hover out of the button bar it slides back again. Conceptually I got the basics of that to work. The issue I'm having is that when...

flex 4: how can i properly integrate a flash design with a flex application?

Hiya. i hired a designer who knows flash but not flex, is there a way to properly integrate a flash design into a flex application? can i load the swf and connect to specific events in specific elements of the swf ? Using Adobe Flash Builder 4 beta2 thanks ...

why is the Border bigger than the Group in this case?

if I place a Border with width and height of "100%" inside a Group with width and height of 10 pixels the Border looks bigger than 10 pixels, why? <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" > <s:Group width="10" height="10"> <s...

does actionscript addChild require a display object first

Solution: if you have the same problem, addElement() instead of addChild() is what did it I'm trying to move away from mxml to actionsctipt. I have a <s:Rect> that I've created and set its properties, but having trouble adding it. var aRect:Rect = new Rect(); //set properties like aRect.x, aRect.y, aRect.width, aRect.height //trie...

Can't interact with children of an itemRenderer in Flex 4 Gumbo

I thought this would be pretty easy but I'm running into all sorts of problems with this. I have an ItemRenderer with a an image and two labels. I want to assign separate mouse events to the image and two labels. It seems like the item renderer is treated like a single interactive piece and I haven't found a way to override that. I could...

Control flex application from embedded Flash control

I have a flex application and have embedded a flash (SWF) file into it using <mx:SWFLoader>. There is an "Exit" button on the Flash file. I want to be able to handle the button click event on the flex application. So when that button in the flash file is clicked, I want to perform an action in the parent flex application. How can I do t...

Trying to add a skinClass to <mx:Form>

I'm working with Flex4 and I'm trying to skin a form (add a background and a border to it, etc.) I'm trying to do it the Flex 4 way with skinClass="" <mx:Form skinClass="skins.MyFormSkin" /> but it's not accepting skinClass as a property. How should I do it such that I'm still adhering to the best practices in Flex 4 (decoupling v...

getCharIndexAtPoint() equivalent in Spark RichEditableText

I want to find a way to get the character index in a Spark based RichEditableText based on mouse x, y position. The mx.controls.TextArea has a protected getCharIndexAtPoint() method but I can't find an equivalent of this in the Spark RichEditableText which is disappointing. Any ideas or recommendations? ...