actionscript

Flex : Filter operator not supported

<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Label id="lb" text="check" click="init1()"/> <mx:Script> <![CDATA[ public function init1():void { lb.text = this.width.toString().concat("-").concat.(this.height.toString()); ...

Progress indicator using flash.display.Loader

I need to do a simple progress indicator while loading an image on background. I’m using the flash.display.Loader class in what seems to be the standard way. The problem is that even though I can see that flash.display.LoaderInfo fires the ProgressEvent.PROGRESS at regular intervals using tracing, a dynamically updated text (or any other...

Embedding only selected characters from fonts with ActionScript?

I would like to embed just a subset of characters from a font (for example only a certain number of Chinese characters instead of the whole character set). The traditional way I've known how to do this is using the "Include these characters" input box method outlined below: http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?conten...

How would I debug Flex 3 databinding?

Hi, I'm trying to connect a datagrid to an HTTPService via a simple external XML document, and this is failing. How would I go about debugging where the problem is arising? I'm using the following: <mx:HTTPService id = "licenseService" resultFormat="e4x" url="http://localhost/licenseTest.xml" /> with <mx:DataGrid horizontalCenter...

Why do singletons pervade ActionScript culture?

I have recently started doing some ActionScript/Flex programming and I am... Surprised... By the number of singletons I see. They are everywhere! The standard library, the frameworks... Heck, I even read a blog post this morning where the author mentioned that he refactored some of his classes INTO singletons! Is there any reasonable ex...

Combobox [object object] error

Hi All , I was trying to get an object from backend which inturn consists of several object and I was trying to filter the object and assing it to the combobox , But I was getting [object object] .Can somebody please look at the code and let me know where it went wrong. public function init():void { measureTypesList = model.Lo...

Actionscript On Mouse Click

Simple question. I have a movieclip. I have an onrollover event for it: this.mc.onRollOver = function() { } Whats the equivelent for a mouse click event? I tried onMouseClick but it didnt work. I havent used flash in a long time and im a little lost :( ...

is there a way to format actionscript in flashdevelop?

is there a way to format/beautify actionscript (as3) in flashdevelop? if not are there easy ways to do this without using the Flash IDE. Thanks, Josh ...

ActionScript RemoteObject Response Headers

Can I get the response headers from a RemoteObject request? If so, how? I am in the process of writing an application in Flex 3.3, using the Cairngorm framework, for deployment as an AIR application. The application heavily utilizes RemoteObject services to get data from a web server. Each of my service delegates extends a common class...

How to get the time online from actionscript?

I need to be able to find the current time from an online source rather than the system to make sure the time is correct. I need to do this in actionscript, preferably 2 rather than 3 though if you have any solution at all post it. Thanks ahead of time for the help. ...

How to getDefinitionByName of a packageless class in AS3?

Say you have a flexunit test that looks like this: package foo { import flexunit.framework.TestCase; import flash.utils.getDefinitionByName; import flash.utils.getQualifiedSuperclassName; class DescribeTypeTest { public function testDescribeInnerType():void { var currentInstance:ChildBar = new ChildBar(); ...

Flex: Custom Menu Functionality

Does anyone know of a way to keep a menu open after clicking one of its menu items? I have a custom menu (extended the menu object) it contains a bunch of ‘check’ type menu items, the requirement I am trying to fulfill is to allow the user to click multiple menu items without the menu closing, and then have the menu close when it loses ...

Creating network graph in flex

Ok I had asked a question recently based on this. But I need to narrow down more.. I need to create a network graph with nodes in flex. Once I give the input the nodes must get connected with each other if they have something in common. The nodes must be click-able to show which other nodes it is connected to. A simple code example w...

Export transparent png from Actionscript to .NET

Can you export a drawing made in flash as a transparent png in actionscript I know you can do it as a jpg with a white background but can you export the transparency? ...

ModuleBase vs. Module

Does anyone have insight into when to use mx.modules.ModuleBase over mx.modules.Module? The documentation that I have seen isn't very clear on what each was designed for. What do they mean by "interacts with the framework" exactly? Does it just come down to visual vs. non visual components? Obviously a BaseModule which doesn't interact w...

AS3: How accurate are the getTimer() method and the Timer class?

I'm in the process of making a game (a shmup) and I've started to question the accuracy of the timers in ActionScript. Sure, they're accurate enough when you want to time things on the order of a few seconds or deciseconds, but it seems to perform pretty poorly when you get to finer ranges. This makes it pretty tough to do things like ...

Actionscript Translation transformation

Hi I am working on actionscript 3 which I have to use translation rotation scaling to a movieclip. I have the rotation and scaling working properly but when I dealing with translation I find the problem that the translation will move the object outside of the origin so when I wanted to rotate the object, the object no longer rotate as ex...

Get IE proxy settings from action script

In our product we use a small flash applet for realtime communication with server application (rpc). We sell this product to corporative clients with internal security police, sometimes strange :) As i known (but not sure) flash socket connect to specified host directly, using system (or intranet) proxy settings, if needed. This is suit...

flex interface question

<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Label id="lb" text="check"/> <mx:Script> <![CDATA[ import mx.managers.BrowserManager; import mx.managers.IBrowserManager; public var brm:IBrowserManager = Brow...

Are there wrappers for the Actionscripts's LocalConnection for C# or Java?

Hi, I want to communicate with the LocalConnection framework of Flash via C#/Java/C++. My search for already implemented wrappers was not as successfull as I wish ;). There exist several servers (like FluorineFx) which support binding of C# objects to the LocalConnection. The problem is I am not looking for a server but only for a simpl...