flex

How to load a sub-application from a main application in Flex

Hi all I've created a client with login acces in Flex. After the succesful login i have to show a table based on a mySQL server. The database is composed by some tables, and I have created 6 flex mxml components with each own scripts for each of those tables. How can i load sub-applications, for example with a PopUpButton or a TabBar in ...

how to override base path parameter inside flex application

Hello, I'm having difficult time solving an absolute/relative path issues. When using as3 and embed my swf via swf object JS, one of the parameters that being transferred to the embed JS function is "base=http://www.mydomain.com" which needed in order to load external widget into application. Now, am also loading external assets like ...

web base online diagramming (how are those software implemented)

could someone guide me on how web based online diagramming software's work. i would really appreciate if you could point me example resource to get some knowledge on this. Following are the some of the samples web based online tools that i have been trying to studying www.creatly.com http://smoot.sourceforge.net/smoot/ this second ...

Flex + Image + Disable Drag

How do I diable the drag-drop of an image. I've tried to stopPropagation, but that didn't help. Here is the snippet of the code that I've written <mx:Image width="24" height="24" complete="init()" dragStart="disableMove(event)" source="{(data.id==null)?'': (data.id.search('\\.') > 0) ? 'assets/icons...

How to improve the performance of Flex App ?

I am working on a flex application.The application occupies 100% of the browser screen, but it is slow to load.How should i improve the performance, what are the best techniques one should follow for improving the performance of a flex App. I did try some stuff though, i am not using relative layout instead i am using absolute layout an...

Web service vs Socket connection

To create a client-server GAME applications in Flash, which would be more practical to use and faster in terms of client-server data exchange: a. web services (flash / flex the client and PHP the server) or b. socket connection (flash / flex the client and C / C + + the server) Any help is welcome. Thanks. ...

AS3: Graphics.lineStyle() -- Change ALPHA only?

In the method Graphics.lineStyle() you pass the alpha as the third parameter. I don't want to change the thickness or color which are the first 2 parameters, so is there a way I can just change the alpha? or at least "get" the thickness and color so I can re-pass them so they wont change? Thanks!! ...

Flex 3 - Style not applying completely on dynamically created tabs in TabNavigator

When I create a tab dynamically via ActionScript, the style for the newly created (and selected) tab get applied to the skins, but not the text, unless I click on another tab and then click back to it. This is the A/S, MXML and CSS code I am using: private function clickAddTabHandler(event:Event):void{ var vbox:VBox = new VBox; v...

Connect to adobe stratus server in a flex application from inside a proxy

Hi, I am trying to develop a P2P conferencing application in flex using RTMFP. So I have to make connection to Adobe Stratus server for Id of Flash Player instance. I am a student and behind the http proxy. I have checked in NetConnection class but, didn't find anything related proxy configuration.So, How can I configure proxy settings ...

detect change in Flex Form elements (textinput, textarea, combobox, checkbox..)

I have various (read lots of..) flex forms in my app, and I now want to create a system by which the user is notified that he hasn't saved if he modifies anything in the form... now.. I don't want to rewrite every form I have.. is there some nice way to implement this? Extending the TextInput (and others..) classes somehow? thanks ...

Flex Panel doesn't call focusInHandler() when it gets focus.

I want to be notified when a FLex Panel gets or loses focus. I've overridden the focusInHandler() and the focusOutHandler(), but they don't get called when I click on the panel. The panels style changes indicating that it has the focus, but the handler doesn't get called. What am I missing? ...

KonamiCode Error ?

I tried to copy & paste this .. http://stackoverflow.com/questions/1546356/konami-code-in-flex and it doesn't work.. but i don't know why ! Here is my Project : http://www.rebourne.de/konami/Konami.html The Erromessage in Flexbuilder is : Could not resolve to a component implementation. ...

Drag from one tilelist to another - scroll problem

Hi All I have two tile lists which display images. Both are enabled for drag and drop using the built in handling. In both cases I over-ride the default handling with preventDefault. When I drag an item within the left list, it all works great. If I drag an item from the right list to the left, it seems to work ok, however there is one ...

Loading external images from another domain

Hi Is it possible to load an image(jpg, png, gif) from another domain and manipulate the pixels? I guess when the image is downloaded/copied it is in my domain. Using the Loader and add the content to an Image component I get an error in my debugger. I guess there are some cross domain polices at work here. But I need to be more sure ...

How to put ads on a flex based application ?

Can you please tell how can we place ADS (whether Google Adsense or others) on a website completely designed in FLEX? ...

Calling javascript from flex

I am using ExtrernalInterface.call(javascript_function, args); to call javascript functions from Flex. But this fails in case of browsers that have javascript disabled. Is there any other way to call javascript functions from flex? ...

Font Embedding in Flexbuilder Vs. CS4

I have an all-AS3 Flex project in which I embed fonts. I'm trying to run this project from CS4. However, for some reason the text isn't showing up at all. The code in the Flex AS3 looks like this: [Embed(source='C:/WINDOWS/Fonts/ArialBD.TTF', fontWeight = 'bold', fontName='ArialBold', unicodeRange='U+0020-U+0020,U+0021-...')] //a ...

DataGrid edits label instead of data

I have an editable DataGrid in Flex, with data full of numbers. The columns have no special itemRenderer, but a labelFunction, which returns the number as-is if positive, but puts it in parentheses if it is negative, like so 27.3 => "27.3" -27.3 => "(27.3)" Now, these cells are editable. When I try to edit a cell with a positive numbe...

How do we reduce the height of the list based on the state of its item renderer...

We have a requirement to show a list of appointment slots. So every hour of a schedule has a set of 10 min slots. The requirement is that if we click on a arrow button at the 8:00, 9:00 hour slot, the layout of the hour slots should change from a vertical list to a horizontal list. For this we modeled the system as follows: ScheduleCo...

Simple calculation problem with Flex

Im having a trouble with the flex calculation, im trying to transform a pixel value to mm and reversing it. Starting out with 69.8: Calculating MM to pixel from: 69.8 mm 69.8*300 = 20940 20940 / 2.54 = 8244.094488188975 8244.094488188975 / 10 = 824.4094488188975 And calculating back: Calculating pixel to MM from: 824.4094488188975 8...