flex

Warning when migratring from Flex 3 to Flex 4

I received this warning when I migrated my application from flex 3 to flex 4: components:MyApp is a module or application that is directly referenced. This will cause components:MyApp and all of its dependencies to be linked in with modules:searchModule. Using an interface is the recommended practice to avoid this. Unknown Flex Problem...

Autocomplete not working in the Flex Bundle for Textmate. How do I fix?

I am being very hard headed and determined that I am going to give Textmate a solid try for my actionscript and flex projects. Work on the bundle has been a little lacking but what has been developed so far is pretty great. I have run into some slight issues but able to figure them out and get things set up pretty well and I have alrea...

Playing a large/long h264 file with NetStream takes a LONG time to begin playback

I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can ...

Flex: Changing components

Hi I want to create a flex web page. Basically I have some menubaritems at the top and when I click at one of the dropdowns from the menubar, the component would change to a page with different content. How do I go about this? Thanks. ...

Adding components to Flex 4 app makes screen go blank?

I've been adding some components to a Flex 4 app (it was originally Flex 3 but has been ported). Some of these components make the app go blank when it loads. I'm not even able to see the loading progress bar. Just white. For example, adding <s:controlBarContent> <s:Button label="Admin" /> </s:controlBarContent> To the root ...

Splitting text by newline character "\n" in Adobe AIR

Hi guys, I am creating a AIR application in flex. I have a textArea having a string something like - AAA BBB CCC DDD QQQ WWW EEE SSS KKPPP SSSL AAAS I want this to save this into .txt file. I am using - file.save(output.text,"testFile.txt"); But its is saving everything in 1 line. When I open the file using notepad everything i...

Removing scrollbar from datagrid using scrollPolicy=on or auto

Hi, I have 2 datagrids in my form. One for invoce lines and the other for totals (I have opted to do this this way for the sake of simplicity). The second datagrid (the one keeping other datagrid totals will have an scrollbar that will control srolling in first datagrid too (to keep columns sincronized, both datagrids must appear as bei...

Change the swing in to Flex

Hi, My Application Architecture is below The Solaris machine acts as Server and the server side code is in Java The Windows machine acts as Client and the client side code is in Java Swing. The Communication between the Server and the Client is through CORBA - Middle Level language. I need to change my Client Side programming from Ja...

AS3 Zooming center of a dragable container with in a Mask

HI, I have container movieclip and one mask layer with the height and width of the current screen. The continer is always bigger than the mask clip. so i need to zoom the container at the center of the mask clip. something link in MicroSoft XL zoom controller at the bottom right. Does any once have the equation or any other demo links? ...

Import .FLA into Flash Builder 4

Is there a way to import FLA files into Flash Builder 4 such as conversion to SWC? ...

Flex 3 Panel titleIcon click event

Hi, I would like to add an title Icon image to a Panel, but cant find the click event on that icon, ...

DateChooser.. disable year and month?

I want a to user a DateChooser to allow a user to select a date in a given month and year. I want to set the month and year programmatically and only allow the user to select the date/day. I can do this for the year easily by setting the minYear and maxYear to whatever year I want, but I am not seeing a strait forward way of disallowin...

In flex, how to associate value to String under Combo Box?

How can I give value to combo box entries. For example, in combo box, I have Array Collection and inside it, I am adding strings like mx:String. I want to give it different value than the text. How can I do it? ...

Skinning Spark List Component

How to skin spark List component so that every adjacent itemRenderer has different color (something like mx DataGrid)? ...

Getting the target when using bindable getter in flex

Hi I have the following files: model.as clint.mxml in clint.mxml I have the following line: <s:Group id='clint1' x="model.locationX"> ... in the model.as I have a getter: [bindable(event="locationXChanged")) function get locationX () : int { return ... } My problem is that I need to know within the getter locationX that the id ...

Using a button within flash movie in flex/flash builder

Is it possible to build a UI with Flash CS5 that contains multiple buttons, and then have flex listen to those button events? My current plan is to load the SWF with SWFLoader and attaching listeners to the buttons in a onComplete event would be the proper way to set it up, however i cannot seem to find a way to access the buttons thems...

ActionScript3 font compilation transcoding errors under Linux

So, in Flash Builder on Windows, my app and all embedded fonts compile just fine. But when I try to build it on my production Linux server (via a Makefile on the command line using make), compilation fails while transcoding the fonts: /home/me/MyFlexProject/SomeModule/src/Fonts.as(29): Error: exception during transcoding: Font for alia...

Hibernate joins every table in database

I've set up a small project as a test. I'm using BlazeDS and JPA with Hibernate on my test server, and flex with with dpHibernate to access the Java entities. Each Java entity extends BaseEntity, a class that contains ID and UUID fields. The Flex entities are created by DTO2FX. My problem is that, when I run the Flex project to try and ...

I can't add html rich text to mySQL database from Flex

So I want to store richtext in my database created from Flex 3's rich text editor, but I am unable to. for example this would need to be placed into the database: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">sdfsdfdsfsdfdsf</FONT></P></TEXTFORMAT> Is it because ...

Can A .swf loaded with SWFLoader propagate events to the parent application?

I am building a compartmentalized Flex application which uses <SWFLoader > to load additional Flex applications inside it. I am currently planning on using the LocalConnection class to have these two applications talk to each other, but I'm wondering if there's any kind of event driven way to have actions in the internal application pro...