flex3

Flex Tree: prevent drop outside folder

Hi - How do I prevent a user from dropping an item outsider a folder? My dataProvider is only 1-level deep. It seems that with a DragEvent handler or DragDrop handler I can find the data of the item I'm dragging, but not where I'm dropping ( so I can prevent it ). The Tree has been giving me such problems all last week. Any helpful ti...

PROGRESSbAR VALUE MAXIMUM THEN SELECTED TREE NODE ICON SHOULD BE CHANGED IN FLEX

Hi, If progress bar value is maximum then the selected tree node icon should be changed. ...

Problem sending the parameters to an AS2 swf loaded in AS3.

Hi, I am a Flex developer and I am trying to load an AS2 swf in my AS3 code. The load itself works, but the parameters are not transported for some reason. This is my code. var urlrequest:URLRequest = new URLRequest(); urlrequest.url = "Pres.swf?test=test1"; var loader:Loader = new Loader(); loader.load(urlRequest); In the handler f...

Pass variables from AS3 swf to AS2 swf

I am trying to load an AS2 swf from an AS3 swf. The AS2 swf which was written long back, expects parameters from the timeline(_root). These were passed to it before from HTML using flashvars. Now I am trying to get rid of the HTML pages, by directly loading the AS2 swf from the AS3 swf. However, when I try to load the AS2 swf using the...

Id1120: Access of undefined property while trying to access a button defined in mxml thro' AS

I have a mxml component MatchedDataTab where i have a datagrid and few buttons. Now i am trying to hide/unhide these buttons in a action script file. The problem is i always get a compiler error saying Id 1120: Access of undefined property unmatchButton. I am not able to post my complete mxml file due to xml tags i guess!!. but the s...

How to Remove Flex Tab and clear contents?

I have several tabs, 5 are always displayed and 1 is dependent on the current seletedItem in a dataGrid. When I select a dataGrid item that requires TAB6, it will display without issue, but if I then select a dataGrid item that does not require TAB6 - the contents of TAB6 are still displayed I assume since there was no TabNavigator event...

How do you make a TileList's itemrenderer size itself to the content of its data?

(Flex 3) I have a horizontally oriented TileList that is using an ArrayCollection as its data provider, and an ItemRenderer based on a simple mx:Text component. How can I force newly added tiles to size themselves (specifically width) dynamically, according to the width of the element being added? I've tried some invalidateDisplayLis...

NetStream client property not working on recorded flv video

Hello, I have a flex app (3.0) working with a red5 server (0.63). (yes, we did not upgrade yet). My App records a video in Red5, and during the recording we use the ns.send to send some messages (such changing images). When playing back the live stream, it works perfectly. But when I playback the recorded videos, it does not work. Usin...

Flex3 app: Audio Only FLV don't play correctly

Hello, I got a flex3 app and a red5 0.63 server. My app plays audio only flv files stored in the server, but don't play correctly. It plays some milliseconds, and stops. It receives the metadata, the seekbar length is correct. When I try to seek, it goes back to the beginning and plays the same few milliseconds. do you have any idea? ...

Changing the default character of "displayAsPassword" property for a textinput component in Flex 3

Hi all, First of all thanks to this wonderful site for bringing all the developers from across the world on to a common platform. I am trying to develop an application in flex 3 wherein a form is also used. I want to change the default character of the "displayAsPassword" property, which is currently an asterik, * . I tried to override...

is there any tool to figure out the memory occupies by the swf??

Well i am not asking about the tool to compress or measure the size of swf file , i need a tool that can show me how many bytes or mbs, my swf is using ?? ...

How to play audio/video files in flex?

I'm using flex 3. I've successfully played video and audio files by using following libraries: flash.media.Video flash.media.Sound Live docs link. But the limitations are as follow: Video class can be used to play only flv file format. To play mp3 files I must use audio file. So can I play most of the famous audio/video files by...

Trouble with Flex 3 PopupManager

I'm trying to use the PopupManager class in a Flex3 AIR app to open different kinds of panels but I'm running into some problems with it. I'm using a method like the following with which all panels are opened .. private function createPopUp(clazz:Class, modal:Boolean = false):IFlexDisplayObject { var p:IFlexDisplayObject = IFlexDisplay...

Strange Issue in Internet Explorer using Flex

Hi, Im using a flex plugin with a methode: ExternalInterface.call("initialize_width"); This calls a jQuery Function witch initializes the width of the window: function initialize_width(){ $("#nav_content").css("width",900); } It works perfectly on all the browsers expect Internet Explorer... It says: "'null' is null or not an ...

flex tree itemclick event, doesn't work

Hello Stackoverflowers, i'm creating a reusable flex tree component. And i would like to stick in the itemclick funtion. So that when a user clicks anywhere on one of the tree's Branches. the branch expands. My problem is that i don't know how i can get the listener function to fire. What i would like to do is create the tree completely...

Getting the global coordinates of the visible area of a component

I am trying to determine the global coordinates of the visible rectangle that is currently rendered on the stage. Specifically, if a canvas has an explicit height and width and is a child of a panel that has a scrollbar, the scrollbar can "hide" a part of the canvas. ContentToGlobal(x,y) provides the global position of the content at th...

Flex 3.5a - Using a programmatic skin as the VerticalSeparatorSkin for a DataGrid

Hi there, I am trying to create a dotted line (1 pixel width, 1 pixel black/3 blank alternating along the line) as the vertical separator in a datagrid. I understand that you can use a ProgrammaticSkin to create skins for Flex, but I can't seem to get it to display the line I create. Here is my skin at the moment: package mypackage.sk...

Flex builder 3 not showing compilation errors

Hi everyone, I'm not getting any compilation errors in my flex builder 3. It was fine few days back. Even the ctrl+space is not working. I've already tried project clean and restarting IDE. Please resolve. FYI: i have imported new pluggins for Flair in my project, which is ofcourse no way related to this, but still felt like sharing. ...

keep 'down' state for spark skin button

I have spark skin a button with up, down, over, and disable states in a button component to create a modular. Is there a way when the user press and hold a key, the button will remain in 'down' state? The button component include skinclass: <?xml version="1.0" encoding="utf-8"?> <s:Button xmlns:fx="http://ns.adobe.com/mxml/2009" x...

MP3 Problem Flex 3

i am building an AIR application is flex 3, i have recorded a few sentences and saved them in a mp3 file, now what i am trying to achieve is to synchronized the mp3 file with scrolling text. i am able to do that by controlling the scrolling speed of the text and adjusting the font size. also keeping in mind that text is also readable eve...