flex

How do I send a video stream to a Red5 server using Flex?

I'm trying to send a video stream to a Red5 server using Flex. My Red5 setup seems to work for remote method invocations and shared objects, but I've yet to succeed in getting video working. This is the AS3 code that connects to Red5: # connect to RTMP server netConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);...

Dynamically setting xml by string concatenation

I'm trying to read xml fields (with actionscript 3), but the problem is that I choose which field to read dynamically. For example, I may need to read test19 or test39 or test12 or anything else. var value:Number = event.result.test19; var value:Number = event.result.test39; var value:Number = event.result.test12; Is there a way to co...

Flash/flex component Youtube like seekbar

I am developing a audio player in flex. I need a seekbar kind of like on youtube's video player. To implement the basic seek functionality the HSlider component is enough. But I also want to show the stream progress on the seek bar. (youtube colors the already streamed part of the seekbar red). Is there a way I can achieve the same? I a...

Flex API for com.adobe.serializers.xml.XMLSerializationFilter?

I'm running into a problem with a poorly formed response that's causing an xml parsing error. I don't have any control over the response, so I've been trying to subclass the XMLSerializationFilter, and catch the error in my own override deserializeResult. But flex is complaining that I'm not matching the method signature. I can't seem...

Flex - How To Modify The Verticle Gap In A Repeater

Hi, I Have a VBox, and set the verticleGap = 0. Inside the VBox I have a Repeater. When I run the App, the items listed from the Repeater have a large gap between each line. Is there a way to set the verticleGap on the Repeater, or reduce that space? Thanks ...

Is there any opensourse set of components or some framework for creating Flex mxml graphs (Node-based UIs)?

Is there any opensourse, free set of components for creating Flex mxml graphs? like aviary Peacock style ones with at least Drag, drop, and connect generators so each graph element could have or something like that. Framework should be opensource (like GPL, LGPL etc) BTW: I found one wary bacic made by Erno Aapa with Degrafa ...

constructing breadcrumbs from leaf node in Flex Tree control

hello all- I'm looking to generate a string that shows the path from the upper most branch node to the selected leaf. So for example: The user opens a branch which has two children, which are branches. They then open one of these branches, which have multiple children. These are all leaves. When the user clicks on one of the leaves,...

How to play a sound every 2 seconds ?

I want to know how to play a mp3 sound every 2 seconds. Thanks :) ...

Can't apply filter to Sprite

I have this simple class: import spark.effects.GlowFilter; public class Letter extends Sprite { private var glowFilter:GlowFilter = new GlowFilter(); public function Letter() { filters = [glowFilter]; } } And in gaves "Error #2005: Parameter 0 - incorrect type. Should be type Filter" in runtime. If I change par...

How to stop sounds ?

How to stop this sound ? : MySound.play(0,100,null); ...

Flex Pan & Zoom with vector images

I've looked at http://www.adobe.com/devnet/flex/samples/fig_panzoom/ for pan & zoom, and it does a very good job of it. However, it only works with raster images. Does anyone know how to modify this for vector images (SVG converted to SWF). My limited attempts have not gone well, as the Imageviewer.as class is clearly designed around ...

Flex 4 css cheat sheet

Hello, Is there any cheat sheet or something similar that shows me all the Flex 4 CSS styles available? Thank you ...

External Config file in Actionscript 3

I need to be able to load external configuration files into my flex app. I've read that this is possible using embeds, so long as the mimeType is set to application/octet-stream. package learning { import org.flixel.*; public class PlayState extends FlxState { [Embed(source = "../../data/tiles.png")] private var _tiles:C...

How to remove the highlight/selection on AdvancedDataGrid

This page describes how to override the drawHighlightIndicator/drawSelectionIndicators methods for the header of a DataGrid, but an AdvancedDataGrid does not have "headerClass" in mx_internal. It instead has an headerRenderer. How can I remove those blasted highlights over an AdvancedDataGrid in Flex 3? ...

What is event bubbling in Flex?

What is event bubbling in Flex? ...

Downgrading Flex components - Best practice

Very often I face the same problem with Flex: When I create a skin for spark component or create new spark component based on another spark component I have inherited properties that I don't need. For example, when I create a custom skin for spark.components.Panel I don't need RectangularDropShadow. At the moment to get rid of it I remov...

How to make transparent color in BitmapData in flex

I have a code like this: var bitmapData:BitmapData = new BitmapData(width, height); bitmapData.draw(this); var ba:ByteArray = (new PNGEncoder()).encodeByteArray(bitmapData.getPixels(clipRect),width,height,true); I want to make the white color in the generated PNG transparent. What is the best way to do so? ...

How to install Flash Builder 4 or a Flash Builder plugin on Eclipse in Ubuntu 10.04 ?

I want to install Flash Builder 4 or a Flash Builder plugin on Eclipse in Ubuntu. There are two methods I know to achieve it. 1. Use fb4linux. 2. Use wine and follow these steps http://diariolinux.com/2009/06/22/how-to-install-flash-builder-on-linux/ Second method gave me errors while installing. First method is good and installs...

Flex error: could not resolve to a component implementation

Hi, I am trying to create a menu bar with the following items: File, Database, Navigate, Window. However, I am getting an error which I do not understand: Could not resolve <mx:XMLList> to a component implementation. Can anyone explain the error to me? My code is as follows: ` <mx:XMLList id="topLevelMenu"> <menuitem label="File" /...

flex ButtonBar problem

Hello, I want to generate a button sequence on ButtonBar with some disabled buttons: <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var nav:ArrayCollection=new ArrayCollection(); ... function initApp():void { ...