actionscript-3

Difficulty for user to precisely double-click a data point in Adobe Flex's charts

Hi, We have some actions associated with double-click events on a data point inside Flex charts. When user hovers mouse pointer, the mouse datatip is shown properly. However, user needs to double click 'precisely' onto the point, to fire the event correctly. Can we increase 'radius' or 'range' or 'region' or 'target area' of this click ...

AIR application design

Hello! I would like to make some AIR application which would be used for tracking jobs inside a company. The idea is to create some database which will handle all the data and, when other users form other computers modify data, it is always saved on that same 'server'. So, more than one user can edit same database, and it would be great ...

How to play MP3 sound from buffer (ByteArray/Stream) in ActionScript 3?

So.. I have a buffer with MP3 data (If I would save this buffer and call it buffer.mp3 it would play, but in this situation I should not save it to file system). I have to play it, but I can not, what shall I do? I tried the next code to play that buffrer(ByteArray\Stream) (I get MP3 data from server the method of getting data works ...

Flex: Intersecting 2 array collections

Hi! I am searching for a method to intersect my array collections. I have one collection: allItems and another subSet. I want to create another ArrayCollection where all items which do not exist in subSet will be stored. Is there a way to do this? ...

Is there an easy explanation for coding in AS3 w/ Flash?

I understand the syntax of AS3 just fine, but all the types and the strange hierarchy and all the inheritance is a bit confusing, and I am having trouble just getting something to show up. I see all these commands like addChild(etc); but they aren't tell me how I use it to do anything. And what is the main flash window called? How can I ...

setting depths of movieclip to numbers from array

i have a few movieclips on the stage, all the movieclipsnames are in an array togheter with what should be the depth. i need a way to set the depths according the numbers in the array. sample a$ = [{name:"item_name_1", depth: 10},{name:"item_name_2", depth: 11},{name:"item_name_3", depth: 12},{name:"item_name_4", depth: 13},{name:"item_...

actionscript: Using multidimentional arrays

Hi! I have problems defining indexed array with actionscript. The task is following. I have a board of point objects. I need to store them into one array, so I can access each point using simply it x,y coordinates. for example to get point one I want to be able use points[1][1], etc. I read the doc here http://livedocs.adobe.com/flex/...

tree maps using actionscript

can any body help me?? i have a task to make a tree map with actionscript 3.0 and using the rectangle packing algorithm!!! can anybody help me,,i cant find a resourse to teach me how to do this,,i only know what is a tree map and i know actionscript,,nothingmore will adobe flex help me in this task?? please i need your help.. ...

Flex: Controlling browser statusbar

Hi! My application has to call server several times per one second (to check if position on board changed or not). I didn't find anything better for now then implement a timer and call server so often to check if something was updated (actually only small amount of data is sent so I think nothing bad will happen). Anyway some browsers l...

Flex Tree Visit Indicators

How do I indicate the visit history on a flex tree component? I want to highlight the clicked/visited nodes to a different color and will not change after that, so that all the visited nodes will be one color. I tried adding an attribute to the underlying XML by var selected:XML=app.treeObj.selectedItem as XML; if(!selected.hasOwnProp...

How do I change the size and color of the stage in actionscript 3?

AFAIK, in AS2 it was "Stage.height = x;". ...

Modules and Panels issue

Hello everyone. I have the following problem. In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on)...

To check if an object is empty or not

Hi friends, I want to check in my function if a passed argument of type object is empty or not. Sometimes it is empty but still not null thus I can not rely on null condition. Is there some property like 'length'/'size' for flex objects which I can use here. Please help. Thanks in advance. ...

AS3 Passing and getting data to ASP

I've been researching for days on the issude but till now I still haven found a solution yet. I have 0 knowledge on ASP. And I just want to able to pass and get var/text from ASP. Anyone kind enuff to guide me how I can furthur from here? private function loadASP():void { var aspSend:URLRequest=new URLRequest("testASP.asp"); var as...

How to create progress bar on top of google map

How do I create a progress bar on top of google map in flex/as3? I tried to ask google maps API for flash, but no answer... May be some of you have done this already. Thanks EDIT: Can it be done using mx.controls.ProgressBar? ...

Advanced chroma key code samples

I'm working on an application that needs to key out the background from an image taken by a webcam in front of a green screen. I figured this would be a very common task, but to my surprise i'm having trouble finding code samples for anything more advanced than a simple color-threshold and those do not quite cut it quality wise. I've f...

Displaying bidirectional multiline text from XML file in flash

I have been asked to add support to a xml based website. I have been looking into it and have realised that it is not going to be very straight forward. The text does have english phrases in when describing products being used. After doing some research I have found that CS3 does not 'support' rtl text. I also read that CS4 has added s...

Does flash.display.Loader determine the file by filename or header?

Does flash.display.Loader determine the file by filename or header? The reason why I ask is that I'm getting an IOError: "Unknown File Type" when loading an swf which has a strange filename (in the form of "filename.randomnumbersandletters.swf"). Thanks! ...

Does flash.security.allowDomain("*") allow for redirects?

Does flash.security.allowDomain("*") allow for redirects? The reason why I ask is that I'm trying to load a swf which is redirected from a url, but am getting an IOError when loading. The AS2 docs shed light into adding the url for the final domain, but I was wondering if there were any changes for AS3 or any security updates. Thanks!...

Capture CTRL+A, CTRL+C keys/events in flex

How to capture CTRL+A, CTRL+C events in flex? It looks like they are special keys/combinations. As I understand in Flex 3.4 I can capture CTRL+A by capturing Event.SELECT_ALL, and CTRL+C by capturing Event.COPY. BUT it complains that there are no SELECT_ALL static const in Event class. I'm using Flex SDK 3.4 and Flex Builder for Linux ...