| Flash
Projectors and CD Burning
FAQ
Whenever
you want to distribute your Flash creations offline (and you do not want
to worry if the user has Flash Player installed or not) you have the option
to publish your movie as Standalone Projector. In File menu chose Pubblish
Settings and check the Windows Projector or Macintosh Projector option
in the dialog window. This will "wrap" your .swf movie into
a Standalone Flash Player which can be reproduced outside the browser.
You can find the Standalone Player (together with Player Installers) in
the folder where where you installed Flash on your computer (usualy it
is C:\Program files\Macromedia\Flash 5\Players on Windows).
Flash 5 supports six FSCommands:
In Flash 5 there is also an undocumented "save" FSCommand which allows you to write variables to users HD and it was (also) suppressed in Flash MX. You can try using Shared Local Objects instead or 3rd party tools to regain some of the "old power" of 'Exec' and 'Save' fscommands.
Normaly all above code should work on Macintosh platform without problems
(Flash was made to be crossplatform). One thing you will not be able to
do with Mac projector is to write variables on user's HD. Also, when opening
files with FSCommand in Flash 5 projectors you should remember to use
colons (:) (and not slashes (/) as in PC) to separate folders in a pathname:
FSCommand ("exec", ":folder:filename");. On the other
side, OSX uses standard Unix path notation (/) and not colon.
Ok, you have your flaming projector and you want to burn it on CD for
distribution. Presuming most of us know how to burn CD for our own platform,
only burning hybrid CD (crossplatform) will be covered here.
Since Mac recognizes the ISO 9660 file system and Windows file formats, and Windows do not understand Mac's Hierarchical File System (HFS) file format, hybrid CDs used to be burned on Macintosh. But PC users should not despare because there are workarounds to this (see below). Toast is one of the burning programs which allows making Hybrid CDs on Mac. You will need to make temporary disk partition on your Desktop and copy your Mac projector and eventualy the shared .swf files (those that will be seen on both Mac and PC) on it. In another folder on your desktop (but not in the temporary partition) put all PC files (projector, autorun.inf and icon). Then in Toast window choose Custom Hybrid, select Mac volume, press Data button and then simply select your temporary partition (or drag it on Toast window). Now choose ISO volume, hit ISO button and select your PC files from the folder you made (just files, not whole folder), and select also all shared .swf files from the temporary Mac partition. This way the shared files will be burned only once, but will be seen on both Mac and PC. You will have to specify "Joliet" naming settings for PC files so the names can be longer then 8.3 characters. Autostart feature on Mac is handled by QuickTime and you can choose the file you want to autostart (your projector) from the settings in Mac volume of Toast window. If you want your PC projector to autorun when CD is inserted, you'll have to make autorun.inf file. You can use free program BBEdit to create this file for PC on your Mac. Choose New document and write this: open=yourprojector.exe icon=youricon.ico Save the file as autorun.inf. It should be on
the root of CD to work correctly. If you want your CD to show custom icon
in Windows Explorer, it should be Windows icon format, any simple graphic
image will not work. Program called Iconographer can make
Windows icons on Mac.
It may be vise to allocate enough RAM memory (size of your projector, size of .swf files to load into the main one and a couple more Mb just to be sure) to your Mac partition before burning, because CD inherits its memory settings. When you have all this done, burn your CD and enjoy...
The only way to create crossplatform (hybrid) CDs on PC is to use specific program which makes image file (nothing to do with graphic images) containing your Mac and PC projector and eventual shared files. Image file is then burned to CD with your favourite burning software. The result is functional and autorun works on PC as autostart does on Mac. Here is the procedure to use with program called MacImage:
Give
the name to the Project, launch Explorer and drag your files in their
places: PC projector, autorun file and icon into the ISO view of the MacImage
window (files with yellow spots in the picture) and Mac projector into
the HSF view (file with green spot). Do not worry about decoding of .hqx
file, program takes care of it. Shared files (both yellow and green spots)
go into ISO/HSF view because this way PC users will see only PC files,
Mac users will see only Mac files and both will see shared files.
Standalone & Applications
and Macintosh
Forums on FlashKit Board should be a best place to start (and continue).
There are also interesting tutorials
on FlashKit about manipulating projectors, opening files from projector
with batch files and autorun features.
Basic info about FSCommand and Flash size from Macromedia site. Three useful tutorials in our own AS.org tutorial section: Launch Applications, Opening Documents and Execute Files from Flash projectors. All the things you ever dreamed of doing with Flash (but never dared to ask how): check "Flash and offline usage" part of Sx's "Must Read Threads" at were-here.com and enjoy (there is a smaller version of it at FlashKit)... Very good FREE application to launch, save, copy, move, print, delete files, manipulate windows, play with registry and dll's... from Flash projector is called Flash Command Line Tools. Works with Flash 3 to 5 but not with MX. FlashGeek is a program originaly meant to let you open documents from Flash 5 projectors, but will work with MX also since it passes arguments though text files (the only drawback is that you need a separate copies of program's .exe and .txt file for every document you want to open). If you want to launch files from MX projector you could use another two free applications: Executor and freeMX. Both need Flash OCX to be installed on users machine, but the latter is more complete since it will check for ocx and if it is not there, freeMX will install it (you should include the full player installer on CD - it is free but be sure to sign the licence agreement at Macromedia site). Les Paone recently renewed his site (you can still find his FREE edited player) and included a new tool for MX projectors called SOP. Using Flash Shared Objects it allows running programs, opening, deleting and printing files, minimizing and maximizing your projector. Here is (partial) list of 3rd party tools with which you can customize your projector and enhance its functionalities: SWF Studio, Flash 'N Pack, LPFlashEX, FlashAnts, Jugglor. They are all comercial. If you are looking for a freeware tool try Resource Hacker (here is a nice tutorial about it). It will let you customize some of the projector features, but beware because the issue about its legality is not quite clear. Northcode Inc. has some nice free utilities too: Topmost will let you open browser window (or any other) in front of fullscreen projector; Browse will open an Windows Explorer on the root of the drive it's launched from (it has no parameters so it will work from Flash 5 and MX); Center will let you center the window of application launched from projector (Flash 5 and MX); Kill is used to close any window from projector (Flash 5, check here for the documentation); with Min you can minimize any application running alongside your projector (Flash 5); Wallpapr allows you to set Desktop wallpaper from projector (Flash 5) and if you are interested in making Flash projector "talk" with Visual Basic, check these examples: fscommand.zip and flashvb.zip. Tim Goss (known as Northcode - moderator of FlashKit Standalone & Applications Forum) started other two sites you may find interesting: BeyondFlash is informational and ExtendingFlash is practical with some of his free utilities. If for any reason you prefer to mantain your movie as .swf inside HTML page but you would still like to have it autorun from CD you may use these two tools: autohtml.exe or Northcode's RunFile. All above mentioned resources are only for PC. To edit basic features of Mac projectors (title, icon, right click menu) you could use ResEdit. But there are no 3rd party tools to significantly manipulate and extend Mac projectors. This may be the only possible solution at the moment. Here is the link for details about that problem/bug for MX fullscreen projector on Mac (together with some problems about Autostart feature on OSX). Applescript in detail from apple.com. You will need to have CarbonLib 1.5 or latter installed if you want to run Flash MX projector on Mac OS 9.x (read the technote). Another conflict that may cause problems with executing MX projectors in OS 9.x (they may run slow or not even run at all) is with Logitech MouseWare extension (technote).
Comprehensive tutorial for burning hybrid CDs with Toast from the Roxio site. You can find David Hrycyszyn's very good in-detail tutorial about burning hybrid CDs on Mac (the one that used to be on were-here.com) here. Although not Flash centered, this two tutes can also be interesting: setpixel's one about burning Director projects, and Rose Marshack's one about enhanced music CDs. More usefull info about extra CDs (music and multimedia content) can be found in this thread. As seen before, MacImage will allow PC users to create hybrid/crossplatform CDs (check their site, it's full of precious information about Mac/PC file transfer issues). Another program (much bigger and more expensive though) with same features is CDEveryWhere. BBEdit and Iconographer for Mac users. Nice FREE icon editor for PC is @icon sushi. Happy flashing and burning folks!!! DiDi PS: I welcome any feedback, comments, suggestions, more useful resouces... but PLEASE, do not e-mail me (unless, of course, you have a personal or business proposal ;) ), post on the original thread. I am not a guru for this subject, and when you post your comment or question on the forums, more people will see it and chances are better that you (and me and everybody else in the future) would get faster and better solution there then in my inbox. Cheers... Last updated April 22, 2003 |
|||||||||||||||||||||||||||||||||||||
| FAQ
by didinomade - viewed by |
|