flex

Why use Flex instead of HTML/AJAX/PHP frameworks?

Hello all I have some experience of developing in Flex/Actionscript using Cairngorm framework. At that time I had no prior experience of ActionScript/Flex and it took me some good 3 months to get started with seriously developing an application. That time too, I was skeptical developing an app based in Flash, which won't be viewable on ...

Actionscript, BorderContainer.addElement(...) doesn't work !?

i have this: public class AditionalPane extends BorderContainer { //..... private function storeRetrievedData(e : Event) : void { var titleLabel : Label = new Label(); titleLabel.text = "Members: "; titleLabel.height = 100; titleLabel.x = 1; titleLabel.y = 1; //titleLabel.vis...

SampleDataEvent.SAMPLE_DATA never fires in Flex??

microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, gotMicData); the event gotMicData is never fired.. however i tried using dispatchEvent but that will return null byteArray.. However similar code works fine in Flashcs5... import flash.events.SampleDataEvent; import flash.media.Microphone; import...

How to make a some button on web form with Action Script

I am absolute beginner in Flash, and AS3. I need to make dynamically some amount of buttons in web page. I must use Action Script and MXML. If It will be PHP I will call echo function. So help me please. ...

Compress and decompress XML in Flex and Java

I want to compress XML in Flex, send it to Java, decompress it in Java and recompress it in Java, resend it to Flex, decompress it and use it. How to do please ? thnx ...

use of cairngormEvent in cairngorm framework

What is the use to event extend the cairngorm event in cairngorm framework.? Can anyone explain about the cairngorm event. Thanks, Ravi ...

Create editable shapes in Flex/Flash AS3?

I need to build a room designer, ultimately in Flex (Flash Builder 4). The part I am having trouble with is creating the room outline AND allowing the user to add/remove/move points to edit the room's shape. See this application for what I mean: http://www.deltaportercable.com/shopdesigner/ I know how to create a normal Rect, but not...

in Flex, how to add child as first child?

I am adding child as: containerComponent.addChild(newComponent); But, it adds it as last child. How can I add newComponent as first child of containerComponent? ...

Calculating the Area of a Polygon When the Polygon's Points are Lat Longs: Which Function is More Accurate?

Hi, I'm trying to find a way to calculate the area of a polygon using lat long coordinates in a Flex 3 site. Hong007 on Google Maps for Flash group was cool enough to post the following function: private function GetPolygonArea (polygon : Polygon):Number { var nVer : int = polygon.getOuterVertexCount(); ...

Freely creating BlazeDS RemoteObjects

Hi all, So I know BlazeDS's standard MXML syntax for creating remote objects. Ex: <s:RemoteObject id="sim" destination="SimulationWebService" > <s:method name="getAvailableTargetNames" result="setTargetNames(event)" /> <s:method name="getAvailableToolNames" result="setToolNames(event)" /> <s:method name="ge...

In flex, how to pass data to handling function?

In flex, I am handling event like this, myImage.addEventListener(MouseEvent.CLICK, redoOperation); Now, I want to pass some value to redoOperation. (function redoOperation(myId:String)) How can I pass String to it? ...

Flex 3: How to change sate in code, using a variable

How do I change the application state in code, using a variable? when I provide a static string it works fine, but not with a variable. For example, this works: (parent as mx.core.Application).currentState= 'history' And this does not: (parent as mx.core.Application).currentState= @data Yes, I know that @data is being populated, a...

How do I change the size of an HBox in Flex to fit it's container?

I create an HBox, fill it with a grid of buttons, and set the scroll policy. When I resize the window, the stage changes size, and so does the HBox ... to a point. Once it reaches the height of the Grid it contains, it stops shrinking, like it has a "min-height". This ruins the scrollbar that I'm trying to establish in this case. I've ...

Flex image component not canvas container when added to canvas.

I am adding a flex image component to a mx:canvas component with a fairly large image. I have the horizontal and vertical scroll policies set to "on", but when I add the image to the canvas, it doesn't expand to show the whole image (the scrollbars aren't activated). Anybody else have this issue. The code is pretty straightforward: <m...

Compiling content of directories/wildcard to SWC using Flex compc ant tasks

Here is how I usually write the compile task: <compc keep-generated-actionscript="true" include-classes="Class1 Class2 com.package.Class3" output="${module.output.dir}/output.swc" fork="${flex.fork}" maxmemory="256m"> <source-path path-element="${module.basedir}/src"/> </compc> What I'm looking for is a...

Controlling an embeded SWF movie(audio/sound) file in flex

So I'm trying to get sound on my flex application. Then tried to load an swf movie with only audio in it. But when it loads on init(), it loops non-stop. Here's a sample code: [Embed(source="assets/alert03.swf")] private var alert01Swf:Class; private var alert01Loader:MovieClip; private function init():v...

Flex 4 cursor (special hit area)

How I can make a cursor with an image, but the mouse click area must be at the center of the image In addition, if any way to change the img size this will be great ...

BitmapData and JpegEncoder Limitations

I am trying to save out a large image from flash using bitmapdata and the jpegencoder. I am looking into the limitations of this process and have noticed you can only set bitmapdata pizel width and height to a certain amount and this might be flexible with what you set the jpegencoder quality to (1-100). Does anyone know what the specif...

How to push information from a PHP proxy to a Flex application

So I have a PHP proxy that gets information from a website. Let's say the proxy gets the information from (www.example.com). It checks if the number of lines returned is the same as before, if not then there are more lines, it counts the difference then it need to push this information to the Flex client saying that it has new informatio...

Problem loading html with flash page using https in Internet Explorer.

I have a html paga which loads a flash(flex) swf file. Using https it loads successfully with Chrome, Safari and Firefox, but not with Internet Explorer. Another page, a simple aspx page, does load in Internet Explorer using https (and no flash in it). Haven't found anything so far on the internet to solve this... Anyone? UPDATE: When...