actionscript

Adobe AIR 2.0 read and play midi format?

I wonder since I am interested in developing an interactive musicial application to read and play midi or even midi keyboard through VST interface, can I do that or do I have to develop a command line application to handle it? ...

Chrome AS3 URLLoader different behavior on network error

In Chrome upon network error, the event object in error handler is behaving differently than IE and flash player (i.e. directly running the swf, not from the browser). Consider the following test code : private function loadData():void { var loader:URLLoader = new URLLoader(); loader.addEventListener(IOErrorEvent.IO_ERROR, onEr...

Is the && operator in actionscript lazy?

var b:Boolean = condition1() && condition2(); In this statement, if condition1() evaluates to false, will condition2() be evaluated? ...

[AS3] vertical scroll based on mouseY

hello! :) i've to write a simple method, wich allow me to move a movieclip inside another one, like in http://www.cballestimenti.it/ (i've to move it in vertical, instead of horizontal). i've write this simple code but it seems to not work properly...can anyone help me? thanks a lot in advance! public function factor():void { thumb...

Suggestion of best practices for implementing a Web Chat

I want to develop a good chat in my page, I know how to program in php, actionscript 2 and 3, and how to manage MySQL databases. So, given that I know to program, what do you suggest? Any good tutorials for making one? good open source projects? Implication of using this technologies in chats? ...

Passing parameters to .NET ClickOnce-deployed application from Flex without URL being visible

Hi folks, I'm passing parameters to a .NET ClickOnce-deployed application via the URL from a Flex application. This is done by simply redirecting the user to http://myDomain/myApplication.application?a=1. I would like the URL to not be visible in the browser that links to the application. From what I understand, ClickOnce does not wor...

Is it possible to upload image into flash with flash only?

Hello, as an work assignment, I have to alter old flash app written with actionscript 2 to let users upload image in one movieclip. Since i have no control over placement of that flash in server, is it possible to do this without any PHP code (yes, flash is on site on LAMP stack), with flash only? I.E. - user uploads image to flash app...

Is there any way to add a valueCommit lifecycle to non-mxml components in Actionscript?

The invalidate/commitProperties model used by mxml components is very useful, in my experience, and I'd like to be able to make use of it in domain model objects in my actionscript applications. How can I go about adding lifecycle events like that to my objects? Is there a global object lifecycle manager? ...

Intro repeats a few frames when using onClipEvent(enterFrame) and loadVars onLoad.

Hi All, I am using the following code to load my flash file, contact a php script and decide what frame to play based on the results. THat is all working fine, the problem is that when the animation starts from Frame 2 - gotoAndPlay(2) - it seems to repeat a few frames over and over until the whole animation is complete. I have done so...

How to make a Flash Video start playing on MouseOver, and stop on MouseOut

I'm wondering how I can make a Flash start playing a video on MouseOver, and stop playing on MouseOut. ...

AS2 Dynamic MovieClip Selection

If I have movieclips called "test1", "test2" and "test3" in the _root, I can use: for(i = 1; i <= 3; i++){ _root['test'+i]._x = 100; } How do i use the "_root['mc']" selection method if all my test mc's are in another mc called layout. I have tried this but got a syntax error. for(i = 1; i <= 3; i++){ layout.['test'+i]._x = 10...

How to Learn Canvas / ActionScript?

I want to learn to program the canvas element. Anyone got any recommendations of websites / books? ...

Cropping/Clipping A Sprite

How is cropping/clipping accomplished on a Sprite in Flex? <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="Init()"> <mx:Script> <![CDATA[ public function Init():void { var spr:Sprite=new Sprite(); uic.addChild(spr); ...

Actionscript style events in Objective-C?

I'm a newbie doing Objective-C, coming from Flex/Actionscript development. I have an iPhone app with an UIApplicationDelegate conforming delegate called MyAppDelegate - it has a UIWindow. Instead of adding buttons, labels and whatnot directly to the window, I guess I'm supposed to make a child class of UIViewController for every screen...

External swf is imported as AVM1Movie on one computer, causing problems, whereas same code imports same swf as MovieClip on other computers

I have a bunch of AS3 swfs. They are imported into an AS3 application using a Loader. On 10 or so different computers these AS3 swfs are imported as MovieClips and I can control them as necessary. However, on one computer no matter what I try (casting loader.content as MovieClip, remaking the AS3 swfs from scratch) they are always import...

Is is possible to add member variables to objects at runtime in Actionscript 3?

I have an object of type sprite. I would like to add a new field in the sprite object without deriving the class. I'm not sure is possible. I tried to do object.newField = 'value'; but it's not working. I need it because the Api expect that field in the sprite class. ...

How can I display a gird of data in an AIR application?

I want to display a 20x20 grid of integer numbers in an AIR application. I am new to ActionScript and AIR, so I am not sure how I could go about doing this. ...

AS3, Getting the class in which some method is defined.

Hello everyone, In ActionScript 3. Given some method! Is there a way to get the class that's defining my method (at runtime). Furthermore the method is static. Looked at http://www.as3commons.org/ but doesn't seem to find what I'm looking for. ...

how to settimeout in flex 4?

Hello friends, what is the setTimeout function in Flex 4? I tried the old methods like setTimeout () or setInterval but not working, not found any web references as well, anyone know? Thank you all ...

Extend from Number class in Flex Action Script

Hi, I need a way to "extend" or proxy the Number class in ActionScript. Basically I'll overload the toString method of it. But the Numbers should remain comparable with "<" and ">" operators. ...