views:

417

answers:

2

When publishing a flash project, is a flash projector simply the swf file and plugin wrapped into an executable (.exe for win, .app for mac)? with the goal being that the project doesn't run in a browser and is therefore not browser/plugin dependent?

Are there more differences in terms of what actionscript can be run? can files that are usually loaded externally be included (videos etc)...

thanks heaps!

A: 

You got the idea mainly. The standalone player+your swf = flash projects as far as I know.

One difference I can think is Sandbox Security. The Projector version should behave the way your swf behaves in the IDE, which means some security restrictions aren't applied so you can easily test your swf without uploading the result on the server all the time.

I guess there are others as well, but nothing else comes from the top of my head. Looking forward to see other answers :)

George Profenza
the security restrictions are a big win for when the end result is a cd/dvd rom, where you aren't running on a web server...
davidsleeps
yup, I had to show a client a map using the Yahoo Maps API and I was happy to have everything working in the projector without changing anything
George Profenza
A: 

As George said, you basically have the idea. A projector is a copy of your SWF wrapped together with an executable player, so that it can be played anywhere.

To expand on George's answer, projectors have the following differences from SWFs:

  • SWFs are inherently limited to accessing either the external network or the local file system, but never both. Projectors can read local files and also make net connections.
  • Projectors have some rudimentary functionality for running local processes. If you make a folder called "fscommand" and put it in the same directory as your projector, your projector's content can run batch files in that folder. There's no way to ever execute a batch file or run a local program from inside a SWF.
  • I assume, but haven't tested, that cross-scripting restrictions do not apply to projectors - i.e. loading in an external SWF and running methods or accessing variables inside it. I'd be wary of relying on this for AS3 though, as projectors aren't used so much these days, and may not have gotten much attention in the AS3 era.

There used to be a couple of other differences, regarding fscommand features that were only available in projectors, but I don't think any of them apply to modern players.

fenomas