flash

XSLT: Cannot get xslt to output an (&) even after escaping the character.

I am trying to create a query string of variable assignments separated by the & symbol. (ex: "var1=x&var2=y&...") I plan to pass this string into an embedded flash file. I am having trouble getting an & symbol to show up in xslt. If I just type "&" with no tags around it there is a problem rendering the xslt document. If I type "&" w...

What Causes Flash Error #2012 (Can't instantiate class)?

I am new to ActionScript 3 and have run into a problem: Using Flex Builder 3, I have a created a project with a few simple classes. If code in class A instantiates an object of class B (class B is in its own source file) then the code compiles fine, but I get the following run time error: ArgumentError: Error #2012: B class cannot be i...

Combinging SWFs and other resources into a single SWF file

We have a program that produces several SWF files, some CSS and XML files, all of which need to be deployed for the thing to work. Is there a program or technique out there for wrapping all these files together into a single SWF file? ...

Actionscript 3 - Completely removing a child

I have an array of objects that when another object hits one of them, the object will be removed. I have removed it from the stage using removeChild() and removed from the array using splice(), but somehow the object is still calling some of its functions which is causing errors. How do I completely get rid of an object? There are no eve...

Best way to switch between multiple versions of the Flash player for easier testing?

Are there any utilities or browser plugins that let you easily switch the version of the Flash player that is being used? ...

What is the best way to handle photo uploads?

I'm doing a website for a family member's wedding. A feature they requested was a photo section where all the guests could go after the wedding and upload their snaps. I said this was a stellar idea and I went off to build it. Well there's just the one problem: logistics. Upload speeds are slow and photos from modern cameras are huge (2...

Interactive world map - suggestions?

Hi. I'm looking to create a "Countries You've Visited" map - just like the ones you've probably seen on Facebook, TravelAdvisor and whatnot. I've tried different flash kits, but they're not quite as advanced as I'd like them to be. The main problem I've encountered with all the different kits is changing the background color on a count...

Are there any projects for replacing HTML and the current javascript?

Google created protocol buffers as a replacement for the bulky XML method of data transition. Faster XML processing was just not good enough. Most of the web has grown up as a hodge podge of different technologies that have been integrated to work within the browser or to generate html. JavaScript is separate from HTML. Flash and Sil...

How to stop a mp3 file from being downloaded by flash when in streaming mode

Hi, I have a flash player that has a set of songs loaded via an xml file. The files dont start getting stream until you pick one. If I quickly cycle through each of the 8 files, then flash starts trying to download each of the 8 files at the same time. I'm wondering if there is a way to clear the file that is being downloaded. So tha...

How to play WMV in a WindowMediaPlayer activeX controlled by a flash component?

How to play WMV in a WindowMediaPlayer activeX controlled by a flash component? I've seen it done here: http://sport5.co.il/ Does anyone know how? ...

Getting java and flash to talk to each other

I have an application written in java, and I want to add a flash front end to it. The flash front end will run on the same computer as the java app in the stand alone flash player. I need two way communication between the two parts, and have no idea how to even start going about this. I suppose I could open a socket between the two prog...

SWFAddress Deeplinks and C# library?

Is there a C# class for interacting with SWFAddress deeplink URL strings (reading deeplink parameters, building SWFAddress URLs, etc.)? Planning to write one myself otherwise; but I wanted to make sure I wasn't reinventing the wheel first. ...

Best way to get the color where a mouse was clicked in AS3

I have an image (mx) and i want to get the uint of the pixel that was clicked. Any ideas? ...

How to: Pass an ampersand in a lousy filename to a flash object on a webpage

Argghh. I have a site that offers audio previews of songs hosted elsewhere. Some file names have an ampersand in them - see below where it passes "soundFile." Anytime there's an ampersand, Flash can't get the file - I think it drops the filename after the ampersand. It doesn't matter if I pass it as an "&" or an HTML entity ("& a m p ;")...

How to handle errors loading with the Flex Sound class

I am seeing strange behaviour with the flash.media.Sound class in Flex 3. var sound:Sound = new Sound(); try{ sound.load(new URLRequest("directory/file.mp3")) } catch(e:IOError){ ... } However this isn't helping. I'm getting a stream error, and it actually sees to be in the Sound constructor. Error #2044: Unhandled IOErrorEvent:....

Can I call an external script or program when building a SWF file in Flash CS3?

Is there a way to call an external script or program from Flash CS3 every time it builds a SWF file? I'd like to add subversion information using subwcrev - the SVN keywords don't work because they only update when the version class file is updated. ...

How to set an HTTP header while using a Flex RemoteObject method ?

I am running blazeds on the server side. I would like to filter http requests using an http header. My goal is to send extra parameters to the server without changing the signatures of my blazeds services. On the client side, I am using Flex RemoteObject methods. With Flex WebService components, it is possible to set an http header us...

Looking for DOS/DDOS protection tools and strategies

I am working on a java application that exposes webservices for a flash client. Any idea on how to prevent DOS/DDOS attacks ? I cannot use mechanism unfriendly for the end user such as captcha. So far I have found mod_evasive, an apache module which looks quite promising... Any suggestions, best practices, tools I might use ? Thanks in a...

Is it possible to drag and drop from/to outside a Flash applet with JavaScript?

Let's say I want a web page that contains a Flash applet and I'd like to drag and drop some objects from or to the rest of the web page, is this at all possible? Bonus if you know a website somewhere that does that! ...

In Flex/AS3, how do I get a class definition of an embedded asset with getDefinitionByName

I have a class with many embedded assets. Within the class, I would like to get the class definition of an asset by name. I have tried using getDefinitionByName(), and also ApplicationDomain.currentDomain.getDefinition() but neither work. Example: public class MyClass { [Embed(source="images/image1.png")] private static var Image1...