flash

MovieClip changes Stage alignment

I am loading a MovieClip using MovieClipLoader. When the MovieClip starts playing, it changes the alignment of my stage to LT, which incorrectly repositions all the other objects on my stage. Is there anyway for me to: Prevent the MovieClip from changing the alignment of my stage? Adding an event handler to an appro...

I've only programmed in AS3; What's the easiest practice in Flash CS4 to create simple animations?

So I've been using Flash for awhile, but rarely ever use the authoring tool. I want to create a quick little slideshow in which a user clicks buttons, and assets on the screen fade in an out as you move from slide to slide. I don't want to do this programatically...what's the quickest route to go about doing this, with using some AS3 bu...

Best practices for handling math calculations in a flash project?

I'm building a Flash project where it needs to handle some math, like an acceleration formula. My director has recommended a design pattern where I include the calculations directly in the flash object, but that doesn't seem like it's very good OOP. What's the best practice for calculations in Flash? Should it be a separate object, so I...

Flash - current time plus 30 minutes

hey all, im really new to flash, how do i go about creating a variable which will get the current date and time and add 30 minutes to it ? thanks ...

Real game flash developer animation ?

I have a game and in this game , i programed player can pick up an item for use , example "gun", "blade". But this is a trouble, I am thinking about this trouble because if i have many item in game , i must create many animation for character for using item. I want ask people have experience in game flash development about experience cre...

Comparing/exporting FLA files

Is there a way of exporting an FLA file to a human-readable format, so that different revisions of a file can be compared? I found a script for exporting to XML here (post 6): http://www.actionscript.org/forums/showthread.php3?t=155434 -- but it doesn't work as advertised - e.g. it doesn't export any details of items in the library. ...

open source flash or ajax sketchpad?

For a non-profit (charity) site I need a simple sketchpad (drawing) component. It should be able to: Let the user draw a simple black on white sketch. Save to server the full drawing steps. Save to server the final image. Re-play the drawing steps to future users. http://www.sketchswap.com/ has a similar component. Do you know wher...

Flex - How to browse and get the full path of a file on local machine's file system?

I am working with Flex, Flash, Action Script and I want to browse the local machine file system using Operating System's file browse window and select a file then i want to get the full path of the selected file. How can I do this? Please give me some code. Thanks in advance! ...

how to embed flash that is trying to access xml in it's original folder.

I've got various flash files stored on my server. For this exmaple - here is the directory structure: Files > Example > -> example.swf -> example.xml So then on a separate webpage stored in the root of my server.. i'm embeding the flash. ... <param name="movie" value="http://www.example.com/Files/Example/example.swf"&gt; ... N...

AS2: LoadMovieClip.onError doesn't seem to catch some errors.

I have some AS2 code that opens a SWF file through an HttpHandler. I'm trying to get the program to recognize when a requested file is missing. My first attempt involved using LoadVars and "load", and only calling loadMovie if the file successfully loaded (found the technique somewhere out here). However, I found that the ProcessRequ...

AS3 - Unloaded AVM1 swfs trace out as unloaded but memory is not freed for the AVM2 machine

I have a large project built in as3. Part of its main functionality is to load and unload various as2 swfs. The problem is that the memory ins't free up once they are unloaded. I have access to the as2 swfs code base and destroyed all objects, stopped and killed timers, listeners, removed from stage, destroyed all the MovieClip.protoyp...

Flash CS4: I want to compile multiple fla's with one command, is make or ant a good solution?

I'm working on a large Flash CS4 project with multiple swfs and want to consolidate my build process. Are ant/make overkill or have people out there successfully used them on large Flash projects? Thanks ...

Pixel bender shaders with multiple outputs in flash?

According to the pixel bender specs a shader can have one or more outputs. The pixel bender toolkit, whose "export to flash" option tends to be preety strict about the flash specific do's and dont's, would even compile such a shader without complaints. However actionscript's shader related classes seem to be geared toward single output ...

Flash/AIR AS3: comparing contents of Screen.screens

In a sane world, this works as expected: var array:Array = ['a','b','c']; trace(array.indexOf(array[0])); // returns 0 In an insane world, this happens: trace(Screen.screens.indexOf(Screen.screens[0])); // returns -1 ... if Screen.screens is an Array of the available instances of Screen, why can't that array give an accurate indexO...

Flash Error #1010

hey all, when i run my flash file (test it) in the output panel i get the following error TypeError: Error #1010: A term is undefined and has no properties. i read some where, that this was caused because one of the variables is set to null. after looking at my code i found out that the following line was causing this output arrSelec...

AS3 mouseX and mouseY values wrong in Firefox

Hi there, I'm getting some strange behaviour in my Flash movie, only in Firefox for MAC (3.6.2). Basically, the mouseX and mouseY properties of all display objects become massive numbers: > 100000000. This issue only occurs on Firefox, it is not present when the movie is run standalone, nor when it is run on any other browser. The swf...

what does the following single code line mean in flash

var so = new SWFObject("zoom.swf", "sotester", "1200", "600", "9", "#FFFFFF"); ...

SVG -- Replacement for Flash application

We are currently looking at developing flash based applications (using Flex) in a web application. We are now leaning towards to use SVG rapheljs for developing this components. The questions are: Is still SVG platform is widely adopted by browsers (without any plug-ins) are at least down the line of 8-10 months, any adoption is expect...

facebook application using flex

how to develop new facebook application (login , add photos ) using the api of flex ...

Comparing bitmap data in AS3 pixel for pixel

Hi, I am looking for a fairly simple image comparison method in AS3. I have taken an image from a web cam (with no subject) passed it in to bitmap data, then a second image is taken (this time with a subject) to compare this data, from these two images I would like to create a mask from the pixels that match on both bitmaps. I have been...