flash

flash external preloader to load a swf thats loading another file

I have my preloader loading my main swf where I'm loading another swf that contains a background. When my preloader is done it shows my main swf but it takes a while after that for the background to load. Whats the easiest way to get my preloader to wait until the background swf is done loading? ...

How to dispatch a different event from inside an event handler?

I have an event listener for a custom event type. This custom event overrides the clone method as required. In this event listener I want to dispatch an instance of a different type of event... a different custom event instance altogether. It also overrides the clone method as required. The problem is I'm getting a type coercion error...

Is it possible to add a attachment to a mail with the mailto function in actionscript 3?

Is it possible to add a attachment to a mail with the mailto function in actionscript 3? Thats the thing, i want to open the default mail program compose window with some data but i also need to add a file as attachment, and that file must be a screen capture of the app. Im doing some research and cant find nothing even close to this, so...

Equivalent of describeType for Flex Component EVENTS

Using "introspection" In Flex I can say: var classInfo:XML=describeType(SomeObject); Which will list for me the Accessors, Methods And Variables. (http://livedocs.adobe.com/flex/3/html/help.html?content=usingas_8.html) But what is the equivalent to programmatically inspect all of an object's possible EVENTS? (NOT JUST the events f...

Moving 2d objects on a 3d plane - AS3

I have a 2d plane rotated on its x axis, with 2d display objects I want to move around on the plane. Its pretty similar to a chess board: http://static.open.salon.com/files/chess011237853612.jpg The board is a rotated rectangle, and the pieces are just 2d display objects. Whats the easiest way to manipulate those objects so they appe...

Anyone else unable to listen to uncaughtErrorEvent when loaded by another swf?

When I try to access the uncaughtErrorEvents dispatcher when loaded directly, everything works well. But when I try the same code when loaded by another swf I get a reference error. protected function onAddedToStage(e:Event):void { trace("Flash version: " + Capabilities.version); try { loaderInfo.uncaughtErrorEvents.addEve...

As3 printing problem, blanks swf after print or cancel

Hey all! ok back at another issues in as3 printing //Function to print entire screen function printFunction(event:MouseEvent):void { var myPrintJob:PrintJob = new PrintJob(); var oldScaleX:Number = root.scaleX; var oldScaleY:Number = root.scaleY; //Start the print job myPrintJob.start(); //Figure out the new...

Are there any open source FLV players with minimal player controls?

Can anyone please suggest an open source FLV player which has a minimal set of player controls? I have a client requirement to overlay FLV videos with DIV contents. When the div overlays the FLV then most of the FLV players end up having their player controls obscured by the div content. I basically need an FLV player which has a play...

Assemble an image browser side with JavaScript or Flash?

Would it be possible to assemble an image on the browser by 'concatenating' other downloaded images together? The use case is this. The page will display 36 different tiles (small images). The user should be able to arrange those tiles into a 6 x 6 grid and save the resulting grid to disk as an image. The best solution would be to do ...

Array from flash to php/mysql

Hi all, How can I save to my mysql db an array from flash? I pass the array as a parameter to a php script. What I have to do next? ...

Flash Player 10.1 for Flash Professional CS4 playerglobal.swc?

Adobe released projector, debugger and plugin for Flash 10.1 yesterday. on my Mac i've installed the standalone player and debugger in Adobe Flash CS4/Players/ and Adobe Flash CS4/Players/Debug respectively. however, i think i need to download the globalplayer.swc for 10.1 so that Flash CS4 IDE is directed to use the new players. i'...

How to get the flash related source files from the swf file ?

Hi, I have a small flash project. I created a SWF from the flash sources. Unfortunately all my flash sources related to the project are deleted. I left with the SWF file. Is there any way that I can retrieve all the flash source files from the swf file ? ...

Is it possible to decode and recompile flash using c#?

I'd like to decode a SWF file into its base FLA file and then recompile that back into an SWF. Can this be done using C#? ...

Check the cumulative status of onLoadInit in a for statement

In a setup like this is it possible to check the cumulative status of all onLoadInit? for(var i:Number = 0; i < limit; i++) { var mcLoader:MovieClipLoader = new MovieClipLoader(); var mclListener:Object = new Object(); mclListener.onLoadInit = function(mc:MovieClip) { trace(i + " is finished loading!"); } mcL...

Flex 4 Keeping Data Providers In Memory

I am working on a modularized Flex application, and I am trying to cut-down on the amount of client-server interaction. Every time a module is opened, a request is made to a web service to get values to bind to the Flex form. If a user closes the module, and then reopens it at another time during their session, the same web request wil...

Flex Richtext control with background color support

I would like to highlight some text within a Flex control (changing the background color of a particular section of text). The Flex htmlText property supports extremely limited html, and therefore does not appear able to do this. Is there an alternative control that is capable of doing this basic task? ...

Flash - HTTP requests won't work on localhost.

First off, I'm trying to fix something that I didn't build to begin with and the guy who's project it was assures me it was working fine when he left, although a version I haven't touched since he left seems to have the same issues. I'm also a bit new to programming in general so let me know if I've left out important information in my f...

Embedding Flash & Quicktime Via JavaScript

I have a JavaScript function that loads a flash movie into a webpage div using swfobject.embedSWF(). I want to be able to, alternatively, load a .mov file into the same div, in the event that this is the file found instead of the .swf. Is there a close equivalent to swfobject.embedSWF for the purposes of embedding a .mov file? If not,...

Can I create rain effect in javascript?

I need to achieve something like this for my website: Flash Rain Effect Is that possible to do in Javascript? I want it to be just as smooth as it is in Flash. Another flash rain drop water effect ...

Is there a way to embed an mp3 player in a website that isn't flash based (so that the website is iPhone OS compatible)

I did a lot of searching for what I thought would be a pretty common question, but I came up with nothing. If there is another thread with a similar topic, please let me know. Basically, I'm looking for a way to have an .mp3 file play in a website without relying on a flash-based player. I've searched w3 schools and every forum I can th...