flex

Flex 2D graphics learning path for Java/GWT developer?

I have been developing with Java for several years and last six months I have been building GWT based application. But I have almost no Flash or Action Script experience and I would like to try out some hobby programming with Flex. Especially 2D graphics and image manipulation would be interesting topics. Adobe's tutorials for Java deve...

Flex Flash based slideshows (no GUI tools)

Anyone know how to create a slideshow with flex, that has the following. Based with java flex (xml, java code whatever) Text Animation (text moving across the screen, etc) Ability to play mp3 or ogg (mainly mp3) Ability to add images on each slide. Essentially, I want to easily create better 'powerpoint' presentations. Ideally witho...

Flex - Mate framework - dispatching events

Hi, I've recently changed to Mate as a framework for flex. However am running into a few issues. I want to know how to dispatch events from classes generated via the methodInvoker tag. <resultHandlers> <MethodInvoker generator="{LoginSuccess}" method="setCurrentUser" arguments="{[resultObject]}"/> Then in the class I'd like to dis...

Returning typed objects from .Net - Flex - FlourineFX

Has anyone had experience with flourineFX? I have to fix something that uses fluorineFX on the backend to provide typed objects to the a flex presentation layer. I was under the impression that if I register the objects in Flex like so registerClassAlias("Kanpeki.Domain.Staff", Staff); [Bindable] public class Staff implements IListabl...

flex 3 accordion component and rounded corners

Hi guys, Im using the accordion component in Flex and cant seem to get the header to have rounded corners. The footer rounds no problem but the header remnains square, any suggestions? ...

Compc (Actionscript Library Compiler) Doesn't Fail Unless I Delete the File First?

Here's the scenario: I run compc on a source directory to recompile an already existing library after some changes, which completes successfully. Then I remove the library (the .swc file) and re-compile, which causes many errors to be thrown. Nothing changed in the interim - clearly this should have either succeeded both times or failed...

flex 3 and javascript layering issue

Hi guys. I have a flex object embedded in a velocity page. Above the flex object i have my navigation bar which has a number of drop down components built with Javascript. When i click on the drop down list they appear to be falling behind the Flex object. Its like as if the Flex object is ontop of the layer the Javscript is on. Has...

Flex: How to create an entirely new component?

I'd like to develop a network graph application for Flex - imagine placing nodes on a Canvas and connecting them with links. The nodes should have editable text and other UI components. I'm trying to find examples of creating an entirely new UI component from scratch, but all I've been able to find are trivial examples that extend exis...

Flex/ActionScript3: keyword "with" hides misspelled property names

In Flex 3, var anInstance : MyClass = new MyClass(); with (anInstance) { property1 = "fred"; property2 = 5; propert3 = 7; } does NOT flag "propert" as a non-existent property name. I thought this was a remainder of the evil JavaScript object behavior (referring to a property name of an object implicitly creates it), but i...

HTTP Basic Authentication with HTTPService Objects in Adobe Flex/AIR

I'm trying to request a HTTP resource that requires basic authorization headers from within an Adobe AIR application. I've tried manually adding the headers to the request, as well as using the setRemoteCredentials() method to set them, to no avail. Here's the code: <mx:Script> <![CDATA[ import mx.rpc.events.ResultEvent; ...

Flex AdvancedDataGrid: MXML ItemRenderers are not defaulting to the default style

I know AdvancedDataGrid has a styleFunction callback, but I don't want to change the style; I want the itemRenderer to get the global style that everything else (including normal columns) uses. My in-line item renderers use the default style, but not the ones I created as separate MXML classes (they extend Canvas). Any handle I need to...

Convert? Domain objects to DTOs - Cannot create an instance of an interface

Hi I need to pass some objects to and from .Net and a Flex presentation layer. I need to pass and recieve the following object. public class Room: BasicRoom { private int _seatingCap; private RoomType _roomType; private IList<Equipment> _equipment; public virtual RoomType roomType { get { return _roomType; }...

When handling a flash.events.MouseEvent, how do I find the localX/Y with respect to the currentTarget?

I have a component which draws a grid of things and I want a small highlight square to follow the mouse around highlighting the square that the mouse is currently over. The whole grid is basically just one big sprite (it's a very large grid and this was faster than using pre-existing components) and the highlight square is another sprit...

How do I enable autoresizing for a Flex UIComponent?

I have a class which extends UIComponent and draws directly onto a Sprite contained within. Currently I'm (probably incorrectly) listening to the Event.RESIZE event and drawing the contents when the width and height are non-zero. The problem is that even though I've passed percentage widths to the instance tag, it doesn't appear to be re...

What is the best practice for changing view states?

I have a component with two Pie Charts that display percentages at two specific dates (think start and end values). But, I have three views: Start Value only, End Value only, or show Both. I am using a ToggleButtonBar to control the display. What is the best practice for changing this kind of view state? Right now (since this code was in...

How to display an image in flex with Content-Type: image/jpeg ?

I have an .aspx page that generates thumbnails. It takes an ID and returns an image with response Content-Type: image/jpeg. How do I display this image in Flex? ...

Trying to attach a database to a currently open database but i'm getting an error saying ATTACH is not allowed from SQL

Hi, I'm trying to attach a database(db2.sqlite) to a currently open database(db1.sqlite) and copy the contents of one of the tables in db2 into one of the tables in db1. The logical way to do this I thought was to use the attach command and then select all from db2 and insert into db1:- attach 'C:\db2.sqlite' as newData; insert into ma...

PHP/Django/Rails/Flex hybrid demo - need project idea

Let's say you were crazy enough to want to try to combine a number of different technologies just to show that you could do so - what kind of app would lend itself to this type of project as a demo for a potential employer? Specifically I'm thinking of combining the following technologies: PHP/Django/Rails/Flex Does this sound ridicu...

Flex Repeaters and EventListeners

At first glance, the Repeater control looks extremely powerful, but now I'm having second thoughts. Problem at hand: Adding Event Listeners to the children Repeater object is bound to and iterates through an ArrayCollection creating new Vbox children for each item. Now for each child, the Repeater object will fire off a "repeat" event,...

What is the advantage of using an undocked ApplicationControlBar instead of plain HBox in Flex?

I see that Flex3 has a class called ApplicationControlBar dedicated to "holding components that provide global navigation and application commands." (quoted from the langref). The question is: is there an advantage of using this class instead of just adding a plain HBox with a greyish background, or is it just a matter of taste? In my c...