flex

How to use flex to create a person

Based on user input height, weight, measurements and other data, dynamically generate a person (can produce 3D graphics?, if you can please tell me how to do) Who can tell the specific technology, if can please tell me some reference material. ...

Adobe flex layout redraw

Hi, this is a very basic question but I could not figure out. My flex application gets some parameters from URL when the application opens for the first time(ex: layout=<1,2,3,4> ). Based on layout(1,2,3,4) value I have to change the layout. However the problem is the application is already drawn(Layout is initialized) by the time the...

Can an flash menu coded in AS3 be used in Flex Builder 3

Hi I wish to use a flash menu coded in AS3 in a flex project. The menu in question is at: http://www.oxylusflash.com/flashfiles/horizontal-resizable-ultra-menu-as3 Can this be done? Thanks ...

How to prevent the other looking to your SWC library?

Hi, everyone Thank you for your interesting in my question. I hope I would not waste your time too much. I am going to publish my Adobe Flex library to sell in commercial, but I don't need anyone can open my SWC file and study the code in there. I see Adobe Flex library can prevent this activity. How could I do this too? ...

How to ensure an item gets deleted inside Repeater in Flex

I have a code like this: <mx:Repeater id="allItemRepeator" dataProvider="{_model.allItems}" > <components:ComponentSelector id="componentSelector" dataLoad="{allItemRepeator.currentItem}" /> </mx:Repeater> When c...

Equivalent of "View Source" for <mx:HTML> Component

After setting an control's location to some site. How could I then take a peek at the associated HTML? I notice that as soon as I set Location, htmlText becomes null and vice-versa... So how would one go about looking at the HTML displayed in the control in TEXT form? ...

FLEX F5 Refresh event handler does not work in IE8?

Hi, I have an issue in handling the F5(Refresh) option in IE8 using FLEX. As i got some code by surfing..which is as follows public function handleKeyDown(event:KeyboardEvent) :void { display.text = "Key was pressed: " + event.keyCode; } ]]> The main intention of the code is to handle F5(refresh) event. It wo...

Flex + SBI + dpHibernate, I think I missed something...

Hi all, So, my problem is : All my project is (well ?) configured but I don't have lazy loading ! This a sample project I'm making to prepare the real project coming just after. In simple words, I have 3 tables : Category, Product, Client, and the association between the last two, Buy. On the Flex side I have two simple datagrid, the ...

Significance of : xmlns:mx="http://www.adobe.com/2006/mxml"

Dear Friends, I want to know a bit more about 'xmlns:mx="http://www.adobe.com/2006/mxml". Generally namespaces acts as the pointers to the component location, but I've always seen them directing resources within local directory structure. When 'xmlns:mx="http://www.adobe.com/2006/mxml"' is used than is a new connection is set with adob...

Easiest way to migrate to swfaddress?

I have a flex 3 app I made a while ago. I used the built in BrowserManager to do the deep linking for the app. I now have Flash builder 4 and I am starting to build Flex 4 apps, which now use SWFAddress for deep linking. I want to migrate my old flex 3 app to use swfaddress instead of the flex 3 default. What is the easiest way? should I...

Flex 3 - Custom tab navigator

Hello Community! I'm trying to create a custom tab navigator that has to look like . Also, when there's a rollover, the borders of the arrow have to be in blue (like the label in the current tab). For that purpose, I've created a custom component: a hbox containing a label and a canvas with 3 images inside (for the arrow tip that has...

How to remove all event listeners in flex

Dear Friends, Is there some way where I can remove all event listeneres on my components all at once. Expecially when I dont have any prior knowledge of, what all listeners are being attached to my component. Thanks in advance. ...

Flash transparent JPEG through Flex

In Flash, via the authoring environment, you can put bitmaps in your movie that are compressed with JPEG but still support full alpha transparency, something JPEG does not support out-of-the-box. Is there a way to achieve the same when embedding bitmaps via the Flex [Embed] tag? ...

inf actionscript 3 (as3), how to pass parameter in anonymous function?

In as3, I am adding event listener and then attaching the anonymous function to it: myBox.addEventListener(MouseEvent.ROLL_OVER, function(e:MouseEvent):void { Alert.show(count, 'Alert Box'); ); Now this whole piece of code is looped n times. Now, I have n myBoxes and whenever I roll my mouse over the box, it should alert the name. But,...

inline formatting of a tooltip of an itemrenderer of a datagrid?

How to style parts of the tooltip e.g. bold? I’m generating a tooltip in an itemrenderer for an datagrid, displaying the column name and then the value: I want to display the value bold… public override function set data(value:Object):void { var dg:DataGrid = this.listData.owner as DataGrid; var dataField:String = (dg.columns[this.l...

Check if data sent from Flex to Java server is zipped or not

Hello, I want to analyse if the XML I send from my client Flex to my Java using remoteObject is compressed or not. for this, I'm using Wireshark, but it can't get packets in the localhost (windows vista) how can I do that ? ...

Enumerate the properties of an AS3 object that may or may not be dynamic

In order to send a POST request I need to enumerate all properties of a given object. This object may or may not be dynamic. I'm looking for the most elegant solution. This is what I've got so far: function createURLVariables(params:Object):URLVariables { // Workaround: Flash Player performs a GET if no params are passed...

Is it possible to set static constants using conditional compilation?

I am trying to set some public static constants on a class conditionally by passing variables to the compiler e.g. -define=CONFIG::ENVIRONMENT,'testing_server' This is what I'd like to do: if(CONFIG::ENVIRONMENT=='production') public static const DOMAIN:String="production_site.com"; else if(CONFIG::ENVIRONMENT=='testing_server') ...

How to stop image tearing with scrolled externally loaded SWF files in Flex?

I am loading a large number (50 - 500) of swf files into a viewer that scrolls them horizontally. Each of the swf files is loaded into a container (internally it is Hbox(Canvas(SWF)), and this is done to allow overlays on top of the swf (which works fine)). Each of these containers is then loaded into an Hbox, and then that hbox is set...

Conflicts between SWC skin and Spark drawing API

I have a project where we are trying to skin Spark components from a third party library that are built up from the drawing API primitives. Our first attempt involved creating a Flex skin (SWC) in Illustrator/Flash and applying that skin to the Spark components via CSS. We found that even with only a single instance of one of the comp...