flex

How to drag a movieclip to change different movieclip's value?

Hi guys.... I am trying to create a mc with drag function.My question is how to change another movieclip's x value when I drag my first mc... videoSlider.addEventListener(MouseEvent.MOUSE_DOWN, scrollMC); videoSlider.addEventListener(MouseEvent.MOUSE_UP, stopScrollMC); private function scrollMC(event:MouseEvent):void{ even...

Flex choke point by simple calculation

Hey everyone, I'm coding a small strategy game in Flex, now the game has the main map component and the minimap component - now when the main map is moved, the minimap's rectangle (that shows what you're currently looking at) moves with it. Now I use a very simple, apparently not memory/cpu heavy calculation to check the current locatio...

Flex asynchronous: in a for loop

I have a for loop; for (var i:int=0; i < 10; i++) { callJava.method(i); callJava.addEventListener("result", finalMethod); if (finallMethod) == "VAL: 1"; //validation failled, break the loop } private function finalMethod(e:ResultEvent):String { return "VAL: " + e.currentTarget.lastResult; } Now my problem...

FlashDevelop Compile settings

I'm using FlashDevelop (latest version) + Flex 4 SDK for some projects, and am finding it a very efficient setup so far. However, I have a problem. Say I create an AS3 project in FlashDevelop, and add AS3 10 classes to it (in 10 .as files), one of them being my main class which will be the principal SWF. As expected, my main class comp...

OSMF Flex examples

Hi there, Are there any examples on how to use the code found in the OSM framework in Flex? I would also need the player to be skinnable (hopefully by CSS). Thanks! ...

Actionscript 3 :Simple Drag Question.,..

Hi guys.. I am trying to create a scroller...The videoSlider is my scrollBar and I want to drag it so my secondMC will move....everything works fine in my code but if I mouse down in my videoSlider and up outside of it....The drag state still apply and it's not what I desire....any ideas?? Thanks... videoSlider.addEventListene...

Actionscript3: scrollBar drag area question....

Hi guys...My brain is fry now and I need you guy's help My last post http://stackoverflow.com/questions/3449725/actionscript-3-simple-drag-question I am trying to get the scrollBar(videoSlider) dragged to the certain point base on my secondMc(container) I have X number(dynamic) of small pics in my secondMc and I want my scrollBar stop...

drag and drop from datagrid to uicomponent in Flex

Hi, I'm trying to drag an item from a datagrid and drop it onto a UIComponet. Basically I just want the UIComponent to know that something has been dropped onto it and allow it to access the data of the dropped item. I thought just listening for the drop event would do it but it seems not. I found lots of documentation on dragging fro...

are interfaces essentially additional abstraction layers?

My knowledge of interfaces is quite limited. I'm trying to understand them better. What purpose exactly do they serve and when would it be advisable to use them? Thanks ...

ActionScript StrictMode (beginner)

How do I turn on the strict mode in Flash Builder 4? --update I found something about "Preferences -> Actionscript 3 Settings", but there is no such option in Flash Builder preferences. ...

flex chart candroplabels

In the below code, I have a large number of data points but the display is so small that it cannot be seen. I searched on the net and followed the canDropLabels = 'true'. But it doesn't seem to be working. Is there any additional setup needed ? Is there anyway to tell flex not to show all the points but only a few ? <mx:Application xm...

Challenge: How to efficiently fill data gaps in an sparse Flex ArrayCollection?

Hi, I have an ArrayCollection of Objects. Each Object with three attributes: CustomerID, Income and Date My goal is to chart this data for each customer (or a couple together) in a Income by Date LineChart display. Selection of customers is done with ArrayCollection filters. Data is fetched from an SQL database, however, each customer h...

Changing focusrectangle color in flex

Hi there, I have a flex app, in which I need to change the color of the focus rectangle of a textinput if the input is empty. This used to work when I was writing inside a mx:script tag, but now I'm writing a new component (an AS3 class that inherits from VBox) myself. And now it isn't working anymore. I used to run the following statem...

how to create setup crossdomain for Flash project..

Hi guys... I am trying to add a crossdomain file for my flash project...haven't done it before..and there are not too much information online....Anyone can help me about it??Thanks ...

adobe startus text chat broken @ connection setup

Hello the problem i'm experiencing is when I attempt to call javascript function. Using Jquery @ $("#flashtxtchat").get(0).startTxtChat() ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetConnection/get nearID() at textchat/startChat() at Function/http://adobe.com/AS3/2006...

How to use crossdomain.xml for my flash project...?

Guys.. This drives me crazy...I am trying to build a youtube player with flash and everytime I load a video, there is a runtime security sandbox error..I already put crossdomain.xml in my root server http://mysite.com but I am still getting the errors...Do I miss something? Do I have to load it into my flex project??Thanks for the rep...

How do I FlexUnit Test Parsley commands?

Hi guys, I needed some guidance on how to use FlexUnit 4 within Flash Builder, to unit test a Parsley-frameworked Flex application. I have tried lookign at one or two sites but with no avail. Thanks ...

Flex - ComboBox labelFunction Not Refreshing With Updating of an ArrayCollection

I have two issues with my ComboBox. My first issue is that when my ArrayCollection only has one item, for some reason I cannot select that first item. The change function set on the mxml never gets called when I try to select that one item. If I set a prompt, it works. I know that the item is not already selected because when debugging,...

Displaying rich text from database beyond capabilities RichText or htmlText.

I have thousands of quiz questions in a database which are in RTF format. The questions only change maybe once a month. At runtime, I need to choose a random subset of questions and display those questions in Flash/Flex. The formatting of the questions go beyond the capabilities of the RichText control or the HTML capabilities of a La...

How do Change swf file dimension in html....?

Hi guys... I just built a flex applcation with AS3 only.. the generated swf will expand as much as browser's window..I wish to reduce the dimension of swf file...any ideas?? Thanks.. ...