flash

play midi files in flash

is there a way to play midi files in flash? using actionscript 3? ...

Get dominant or average color in getPixels ByteArray

So, I've got this code: import flash.display.BitmapData; import flash.display.Bitmap; import flash.geom.Rectangle; import flash.utils.ByteArray; var bmd:BitmapData = new BitmapData(10, 10, true); var seed:int = int(Math.random() * int.MAX_VALUE); bmd.noise(seed); var bounds:Rectangle = new Rectangle(0, 0, bmd.width, bmd.height); var p...

flash as2: how to create a popup alert while having a hidden stage ?

Hi. I've created a main swf application that loads other swf files to use their classes (using getUrl()). i would like that these swf files would output popup alert messages when errors occur without changing the main swf file. how can i do so ? the external swf files that i load got a hidden stage which disallows me from viewing anyth...

Flash AS2 (CS4) - play sounds in sequence when each has ended.

Hi people, I have 3 sounds that i would like to play, they are in my library. I can play any of of them using soundName.start(0,1) with the code below: firstSound = new Sound(); firstSound.attachSound("Sound1"); secondSound = new Sound(); secondSound.attachSound("Sound2"); thirdSound = new Sound(); thirdSo...

Any plans to update this to AS3?

In my experience, the text rendering is better in flash 9/10 AS3. Are there any plans to get sIFR working with AS3? ...

Zend AMF and Flash Tutorials

I'm trying to learn Zend AMF but with Flash instead of Flex. I've seen Lee Brimelow's introduction tut, but are there any others out there that cover things more in depth? Cheers, Lee ...

Problem with components after migration project from Flash CS3 to CS4

I start flash as3 project on Flash CS3, about one year ago. After compile it on CS4, I get this error (on Russian): TypeError: Error #1009: Не удается вызвать свойство или метод со ссылкой на объект "null". at fl.controls::TextArea/drawLayout() at fl.controls::TextArea/draw() at fl.core::UIComponent/callLaterDispatcher() B...

Can the Flash CS4 [embed] tag be made to export assets to frame 2 rather than frame 1?

We're working on a Flash CS4 project where the main .fla file has ballooned in size and 'Publish' is taking forever. I suspect a large amount of the size (and at least some of the compile time) is due to the quantity of audio symbols in the library. I would love to remove this unnecessary bloat from the .fla file. I've experimented with...

Run Adobe Fireworks commands from Command Line

Heya, I've written few Fireworks commands (jsfw files) and Flash commands that I use for my image processing. Is it possible to run them from command line without launching the whole UI app for Fireworks or Flash? ...

AS3 border layout manager?

What's the simplest, quickest way to achieve a fluid border layout in pure AS3 / Flash? I'm using Flex SDK + FlashDevelop to develop a video player and I want to put some controls on the left, some controls on the right, but leave the scrubber in the middle. I want the scrubber to resize horizontally depending on the size of the player. ...

Passing array through localConnection

Hi, I was wondering is it possible to pass an array through the localConnection in flash? My local connects connect my flash application with the javascript and passes variables between them. ...

Div Z-Index issue with Flash movie

Hello All, I have two simple HTML divs one contains flash movie and another div contains simple text now my problem is that i have to put textual div onto the flash movie div what i am doing is setting the position of both divs to Absolute in CSS and setting the Z-Index of flash movie div to 1 and Z-Index of textual div to 2 but the text...

how to overlay elements over flash ?

how can i overlay html elements over flash ? ...

is there a web agent that can click and extract text from flash apps ?

is there a program for linux or some librayr package that can click and extract text from flash apps ? ...

How do I change a fill colour using ActionScript 2?

I have a very simple .fla file. There's a shape on the stage with a fill, and I want to change its colour when the movie starts. Googling seemed to suggest: myColor = new Color(myClip); myColor.setRGB(0xFFFF00); but it didn't seem to work. Any suggestions?.. ...

Problem Using Sifr - Invisible Text

Hello, I'm trying to use sIFR for the first time and I have bit of a problem. Without the sIFR CSS included (I'm trying to get everything right first) the selected element just gets pushed down to make way for the sIFR text, but it's not visible. Any idea what could be going wrong? Cheers, Jon ...

why is ExternalInterface available inside Flash ide

hey I'm trying to build this simple debugger class so i can see flash vars inside the browser console and if I'm testing it inside the flash ide i will get the good old tracer. But for some reason ExternalInterface.available returns true inside the Flash ide!? package libs { import flash.external.ExternalInterface; public class...

flash action script - is there a library to simulate human dancing?

I want to write a flash to simulate people dancing, but I think if I make all the animation by hand, it will be a huge work. So I am thinking if there is a library(or other things people has done previously) that I can make use of. I can build the character, the foot, the arm and head etc. What I want is an algorithm to apply to the who...

Looking for a method in flash to read a string from a local app

I am looking for a way that can be used in my flash app to read a string from my local application, currently I am using activex to communication with the app and then pass that to flash. But I am wondering is there any alternatives that use pure flash techniques. ...

advantages and disadvantages to having multiple loops flash

What are the advantages and disadvantages of having just one main loop and having a main class control individual objects on your stage, in oppose to having each individual object have its own loop and giving it the responsibilities of doing what ever it has to do on its own. What are consider best practices. ...