actionscript-3

Flex extending ComboBox

I created a class CustomCombo.as that extends ComboBox. What is happening is that the CustomCombo combobox is showing as being editable. I do not want this and I cant find the properties to set the editable to false. I also tried setting the combobox's textInput.editable control to false, but to no avail. Any help would be greatly appr...

Need to know more about image Editing in flex

Hi, I need to know how to manipulate the images I am a very new at flex and AS3 progragramming.Can you help me out of clearing things like I want to use as3corelib and imageprocessing libraries in flex. ...

to pass variable from one swf to another swf in as3

Hi, I have a main swf in as3 and I load another swf in as3 in it. Now I want the main swf to pass variable to loaded swf. Which is not happening ? pls. help! Regards, Sagar ...

Actionscript 3 Facebook API limitations

I'm creating a Flash-based (AS3) Facebook Connect site using the Actionscript 3 API and though I've got basic FB Connect functionality in place in terms of allowing users to login correctly, I'm running into walls when trying to ask for certain extended permissions. I'm not positive, but it appears as though there are two fairly signifi...

Servering mulitple flv files from custom webserver while keeping the sockets open stops after the 6th connection

This is driving me nuts and because it's a combination of various technologies together I have a hard time tracking the problem. Scenario I wrote a tiny HTTP server that serves .flv files; these flv files are encoded on the spot. The flv files are encoded with adobe's screencodec (I started with libflv but that was too buggy so I ende...

How do I represent tiles in XML?

So, I'm writing an AS3 program that tiles floor tiles. I want the user to be to be able to create their own floor schematic represented by different rectangles. It'll be drag-and-drop. They will lay out their schematic (which is composed of different size rectangular tiles) and drop colors/patterns onto them. This schematic will then be...

How to correctly Deserialize obects while catching errors

I have a class DataFile which is the top level class that I am serializing. DataFile contains an ArrayCollection which in-turn contains objects which extend ArrayData, each which overrides readExternal in different ways. Over the course of the development the ArrayData object from version 1.0 is now different than the ArrayData object i...

How to implement shareThis component in Flex3?

Want to implement shareThis in flex? Can anyone help me in implementing this? ...

JavaScript vs AS3 for Interactive Globe

I am developing a web application that should display data points below the Earth's surface. It should also include user navigation, zoom, and rotational capabilities. It reads in the data from a XML file and should display 500-1000 spheres. Ideally, I would like to use HTML5, but it doesn't run in IE8. This is a Flash application that ...

Communication between flash files

How can I make something like this: http://www.litespell.com/altinorumcek/banner/etkilesimli/etkilesimli_craxla.html One flash triggers the other one. ...

Multiplayer online Flash games, is it possible?

Some time ago I tought that using the right click and giving it a real function wans't even possible in Flash world, 3 days ago I found out that via javascript is perfectly possible, and doable So, is it possible to make a Flash game that acts like a multiplayer pc game?, I mean, real online games, no delay, no lag. I heard that the ne...

FileReferenceList: Forcing browse() dialog box to stay on top

Hello all, This is probably going to be a simple question, but I can't seem to find my answer online after searching. I am using the following simple code: var fileReferenceList:FileReferenceList = new FileReferenceList(); fileReferenceList.addEventListener(Event.SELECT, onSelect); fileReferenceList.browse(); A big flash button trig...

How to make an swf compatible with all screen resolutions?

I'm not really sure how to go about it, but I'd like to have the swf get as big as possible for each user without requiring scrolling. Of course it would stick to a certain ratio, currently I'm using 2:1 but that could be changed (maybe I should use 16:9 since it is the standard widescreen ratio). I am only using Actionscript 3 for code...

Does spark List have something similar to itemsChangeEffect in mx list?

I'm trying to animate a list as I delete the top row. All the examples I can find use itemsChangeEffect to bind to the effect, but this property exists only in MX lists, not spark lists. Any idea how I can get the same effect done in Spark Lists? I'm trying to remove the top most item in the list with a slight fade out effect before t...

saving image file on Flash without PHP

Is it posible to save a flash scene into an image and save it on client-side hard drive ? Without PHP. I dont care if user has to change flash security options. ...

Flex line chart zooming

I have a problem zooming in on a line chart with a dateTimeAxis as horizontal axis. I want to zoom in and out, by setting the minimum and the maximum attribute of the dateTimeAxis with a slider. The date labels change as should, but the lines disappear as I set the minimum or the maximum. Here's a part of the code I have: private func...

as3 access an object inside a loaded swf

Hi, I have two swf, one loads the other using a Loader class, in the loaded swf I have a NetConnection object which I need to access from the host swf, but I can't, if I debug the app, I see the obejct is there, but I can't access it, if I try to set a variable like loadedSWF = connectorLoader.content (connectorLoader is the Loader obj...

AS3: Calculating the current upload speed (or throughput)

Hello, I am uploading files using the upload() method of the FileReference class. I want to display the current connection speed and I was wondering what was a good way to do that. My current technique is to use a Timer every 1 mili second such as follows: var speed:Function = function(event:TimerEvent):void { speed = Math.round((...

Return Array in ActionScript 3.0 (Flash and Air)

Hey guys, I'm trying to get the name of every files from a specific folder into an array, but I get this error and I can't find why... this may be a stupid question but whatever. TypeError: Error #1009: Cannot access a property or method of a null object reference. Here's my code: import flash.filesystem.File; function getFileLis...

Storing a FileReference in a SharedObject

Hello, I would like to store a FileReference object somehow and load it when the SWF loads again. I tried to use the SharedObject class but it does not seem to work. I suspect that what I want to do is not doable due to security issues (not using Adobe AIR), but I wanted to check. Does anyone please know if there is anyway to store a ...