actionscript-3

Flex app with large number of UI objects == slow?

I'm building my first Flex custom component, in Flex 3. It is a data table based on the 'Grid' container class, with a simple text Label in each cell. (DataGrid and AdvancedDataGrid were not appropriate starting points for my needs.) The component works quite well using smallish tables, but I tried stress-testing it using a larger table,...

Flex adding event listeners with callback functions which have no arguments

fileReference.addEventListener(Event.COMPLETE, uploadCompleteHandler); private function uploadCompleteHandler(event:Event):void {} Above is one way to add an event listener in Actionscript. By default the callback function needs to have an argument with name event and type Event. Is there a way to declare this function without any ...

Gapless playback of sequential sounds in Flash

I'm making a flash, which is basically a very simple tracker. My question is about sequential playback and more specifically timing problems. The SoundChannel-object conveniently provides a SoundCompleted-event, but relying on that results in tiny gaps between sounds, which (sadly) makes it useless. All I've managed to dig up so far, a...

Free Map components For Flex?

I need to create a country map, is there any free map component available in Flex? ...

Which is more similar to AS3, Java or C++?

I am ActionScript 3/Flex programmer, it is the first language I learned. I want to learn either Java or C++. Would one of these be easier to learn based on my current knowledge? ...

Where should I store reused static string constants in Flex application?

I have two Cairngorm MVC Flex applications (a full version and lite version of the same app) that share many Classes. I have put these Classes into a Flex Library Project that compiles as an SWC. Both applications use some static String constants. Right now, I am storing these in the ModelLocator: package model { [Bindable] publ...

Does setting properties in AS3 prevent timeline tweens?

If I have a movieclip that has a class assigned to it and I change a property of that movieclip in code, it seems that the property can no longer be tweened on the timeline. For example, if my class sets this.x = 100, and later on the timeline I tween the position of the object, that timeline tween will not occur. Changing either scale...

Flash AS3 ... Visible = false not working?

So I have a simple flash movie. I have created 3 layers (actions, background, header) Background contains an image, header contains a movie clip with an instance name of "mc_header". In the actions layer I have said mc_header.visible = false; Yet when testing the movie it continues to show for no reason. ...

AS3 Textbox Change Event Not Firing

I built a quiz game with a cartoon question bubble. The bubble is re sized to the length of the question. I want to a change event on the dynamic textbox to call a function that changes the size of the question bubble. However, the change event is never called when my textbox value is modified dynamically from code. question_txt.add...

xml flash gallery / joomla help needed

Hi all, I've bought the "virtual gallery" from flashden but I'm having problems implementing it.. I'm not used to using flash galleries or xml files, so hopefully someone can help me out a bit. Here's the call to the flash (js): var so = new SWFObject("gallery.swf?xml=category_1.xml", "virtualgallery", "100%", "600", "10", "#414141")...

Collections in Adobe Flex

Is there any open source collection framework, written in ActionScript that would emulate HashMap, HashSet, LinkedHashMap and LinkedHashSet Java class implementations. ...

Export Video using Actionscript

Hi! Here is what I am trying to do: A user will launch my flash application from my website. When they do, it will ask for permission to use their webcam and then display the image coming from their webcam in my flash application. Then, they'll be able to see themselves in the flash application on my site through their webcam. What ...

Flex TextInput Left Click - Parent Steals Focus

Hi I have having a problem in my flex/air application, in which when the left mouse button is clicked on a TextInput the focus is stolen by the parent. So in more detail I have an hierarchy as follows... accordion ->panel(Custom) ->TextInput ->TextInput So some really annoying reason when I click on the TextInput's...

I need to design usa interactive Map in flex

i need of simple UsA map in flex ,all Area need to be click able as button . Is there any tool available for designing buttons in various shape in flex or any build in free map is available in flex. As vector format so that zoom in will not affect the quality. i need to design like as shown in this site http://www.futurevision.com.ua...

Flex datagrid control with expanding rows

I'm looking for a DataGrid with expandable rows implementation in Flex. I don't want to use Advanced DataGrid control because it's too slow and too complex. The desired behavior is like this: when you click a row, a panel opens between the rows with some details and the rest of the rows are moved down, and when you click again the panel...

What is the equivalent of foreach (with keys) in ActionScript

I am looking for the equivalent of a foreach loop with keys in Actionscript. In PHP this would be: foreach($array as $key => $value) { } I found two solutions that will work, but I am wondering if there is a better way to do this. The first solution is to use the for..in loop. Which gives you the keys, but you still have to use the ke...

Flex: Run scripts before/after build?

Currently I'm building my Flex projects using Flex Builder's "built in" build system (ie, "clicking the run button"), but I'd like to start running scripts before/after the build. What's the easiest way to do that? Or, even, where should I start looking? ...

AsUnit verses FlexUnit – which is "better"?

I'm learning ActionScript/Flex at the moment, and it's come time for me to start unit testing. My reading shows that there are two main frameworks out there: FlexUnit and AsUnit. Is there any reason to learn one over the other? Is one, in some way, "better"? ...

Extracting Actionscript from .fla file

I'm just starting to learn some actionscript and have been given an example project that I'd like to hack around on a bit. I'm learning AS by writing in a text editor and compiling with mxmlc. I have Flash CS3, but I'd like to learn with the editor. The project that I've been given was delivered only in a .fla project. How can I extract...

Installing Air App for all users

I am making an AIR app that is launched from the browser. When the user is changed the browser cannot launch the AIR app. Is there a way to set some param in the application.xml file or somewhere else to have the app be installed so that all users have access to it? ...