flex3

How do I bind to the first item in an ArrayCollection?

My application works with the MVC model. The model contains a Bindable class (BindableItemsClass) which contains an ArrayCollection. I want to bind some stuff in the view to the first item in the ArrayCollection of the Bindable class (hence the property 'firstItem'). The problem is that when the setter 'set firstItem(value:Object)' is u...

passing value object to itemRenderer

Hi, how can access/pass a value object in a custom itemrenderer? The item renderer represents a field in my datagrid and i want to be able access properties from my VO. Thanks ...

Building Flex 3 Project from MSBuild

I am working on a .NET project with a Flex/Flash front end. The build scripts are written in MSBuild and I'm looking to build the Flex project (authored in Flex Builder 3) from my primary build script. What options do I have for building a Flex 3 application from MSBuild? I've already seen flexbuild, and it looked ideal until I tried i...

How can I automate the building of a Flex component library?

I would like to build a flex library project automatically instead of the current process, which involves one of our developers compiling it on his machine and then us checking in the resulting .swc file. It's gross. I am coming at this from the perspective of a java developer, so I'm having a hard time getting the hang of the compilat...

Why are some of my assets 0-byte in size when I build a component using compc?

I'm building a flex .swc library using Ant, and many of the assets that are supposed to be in the file are not being copied, instead creating 0-byte entries in the .swc. Here is the ant compc target that is doing the creation. I've tried both compiler.include-libraries and compiler.library-path here, which is why the latter is still pr...

Flex Error #1014: Class flash.net::NetStreamPlayOptions

I have a pure ActionScript project. I'm using Flex Builder on a Mac, Flex SDK 3.4 and I've even added the playerglobal.swc from the Flash folder to the project's library path. I get autocomplete when I add import flash.net.NetStreamPlayOptions; import flash.net.NetStreamPlayTransitions; But when I run the movie, I get: VerifyError: ...

Insert text into flex 3 textarea

I have a textArea and a list. When a user double clicks a list item, the label of the selected item should be inserted into the textarea. When a text is selected in the textArea, it should be replaced, otherwise the text just needs to be inserted into the existing text at the caret point. I've managed to get the text and everything, I j...

An extra wrapper or decorator class needed when using SWC assets?

I'm still learning how to compile with the Flex SDK. And I'm learning how to use SWC files and [EMBED] statements to pull my assets into my application. With the Flash IDE, I can link a library asset to a class and it's automatically embedded into my custom class. So that's 1 asset in 1 class. With the Flex SDK and SWC files, it seems I...

Knowing when a Flex MX Tree component is done rendering the children

I have a component in Flex Builder, and the dataprovider to this Tree is a ArrayCollection. I update the ArrayCollection dynamically, and the Array can become really big. What I now really need to know is when Flash is done rendering the Tree component, is there som Complete event that triggers when the Tree is ready, or some other wa...

Flex 3: Rounded Menu with a PopUpButton

So I have a PopupButton and when I click on the button I want the Menu that pops up to have rounded corners. How would I go about doing this? UPDATE: I found an update similar to what I want to do, it can be found on the following page: http://blog.flexmonkeypatches.com/2007/10/08/flex-rounded-menues-using-masking/comment-page-1/ The...

Flex DataGrid with ComboBox itemRenderer

Hi there, I'm going spare trying to figure out the "correct" way to embed a ComboBox inside a Flex (3.4) DataGrid. By Rights (e.g. according to this page http://blog.flexmonkeypatches.com/2008/02/18/simple-datagrid-combobox-as-item-editor-example/) it should be easy, but I can't for the life of me make this work. The difference I have ...

Can I use timeline scripting on embedded SWF assets w/ the Flex SDK?

I've embedded a SWF into a class using this syntax above my class definition: [Embed (source='/../assets/MyMovieClips.swf', symbol='SpecialMovieClip')] public class SpecialMovieClip extends MovieClip The MovieClip asset seems linked with my class okay, and instantiates along with it, and is visible, but: I can't access instances ...

Does it matter that there are 0-byte resources in my compiled SWC?

I have a Flex 3 SWC file compiled using the compc Ant task. It looks very similar to the one generated by the Eclipse export release build command, but there are some 0-byte files in the mx packages that unnerve me: Archive: flex/package/bin/package.swc Length Date Time Name -------- ---- ---- ---- 0 10-16...

In a step by step way how do I build this open source flex project in flex builder

hi, in a step by step way, how do I build the products in this open source flex project? i have flex builder 3 and a mac with java so I should be able to build this. There is a library and an example project called simpleworld. http://code.google.com/p/moccasin/ I want to build the latest version: 0.24 There is no readme so when I ...

Get URL of current page from Flex 3?

How do I determine the URL of the current page from within Flex? ...

Flex 3.0 Drag and Drop

Hi all! I have encountered a problem in a Flex application. I have implemented drag and drop support from a List to a Canvas, and I DragManagers doDrag() - with.a proxy-image. In my custom DragDrop event handler, i place a new item on the Canvas. I use the event.localX/localY to position the new item. It is working ok, but the proble...

What's a good way to map from service fields to Flex value objects?

I'd like a generalized approach to mapping from conventionally-named and conventionally-typed database objects, delivered using AMFPHP, to Flex/Actionscript naming conventions and types. I want to map naming conventions; SQL is case-insensitive, so our data model has column names like object_id. Convention, however, is that our flex o...

How to get Flex 3 ComboBox width to adjust based on bound dataProvider contents having changed?

In Flex 3, I've created a ComboBox within an MXML component similar to the following: <mx:ComboBox id="comboBox" dataProvider="{_choices}" /> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; // etc... public function get choices():ArrayCollection { return _choices; } [Bindable] private var _choices:ArrayCollectio...

Is there a good Flex (3) date / time chooser component?

I need a time chooser for a flex app, and as far as I can tell there is no UI component to manipulate Date objects at a resolution finer than per-day (the DateChooser component). What's a good time chooser for Flex? I strongly prefer a Free as in Libre and/or Free as in Beer component. ...

How to control the session timeout is 30 sec in the BlazeDS?

dear friends, I didn't find how to set the session timeout less than 1 min in BlazeDS, web.xml 's timeout at least 1 min , how can I set the time less than 1 min , thanks a lot. ...