Flash Player Security Sandbox is Smothering Me…

I’m currently building a standalone app in Flash/AS2 translated to an execuatable via Screenweaver. What has really been a downer are the incredible restictions placed upon BitmapData.draw(), which is used heavily throughgout the application. The really terrible thing is that we own all of the domains the loaded images and video are originating from, but since a standalone app is not necessarily part of any domain, I cannot use the draw() method on any of the digital objects being loaded into this app. I understand that there is a way around this in ActionScript 3.0 using “LoaderContext.checkPolicyFile”, but we need a solution for AS2. The image loading I can get around with a proxy script but (as I understand it) there is no way to successfully invoke draw() on an flv streaming from a Flash Media Server.

I’m looking forward to the Apollo beta release on labs to see whether or not some of these restrictions will be lifted within that runtime. I imagine Apollo would be ideal for this app but since there is so little information out there- I can really only hope at this point.

Multiple Application Directories (Flash Media Server)

It’s a dead simple task to set up multiple application directories in Flash Media Server 2. I’ve been trying to figure out exactly how to do this for a while now (on and off) and the simplicity of it is astounding. I was under the false impression that this would require configuring a number of vhosts on the server- each pointing to a separate directory or partition housing many apps. This is thankfully not the case. All that needs to be done is to change the VHOST.APPSDIR entry in ‘fms.ini’ to a semicolon-separated list of directories/partitions/whatever. That is it. I’ve never seen mention of this in the documentation. Maybe I just missed it?

Some examples of this follow:
VHOST.APPSDIR = C:\appsdirectory1;C:\appsdirectory2
VHOST.APPSDIR = E:\;F:\