Hi,

With the PC used CS3 to create a PC & Mac projector. CS3 now creates a mac app folder rather than a compressed hqx file - nice.

I used CDEverywhere to create a cross platform ISO image for PC / Mac, this has an autorun file for PC, but OSX does not allow autorun like the older versions. Burnt my CD using a burner of choice...

This tutorial is really useful: http://www.s-j-t.co.uk/flashkit/HybridCDv1.1.pdf and it tells you how to do it on both PC & Mac.

There is a bit of caveat for loading Flex produced SWF's into a Flash SWF which I am guessing applies to Projectors too - you have to be careful about interacting with them before the Flex SWF is fully initialised I think (http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg37081.html). Will probably try to blog this, but the code below is all I have in my projector.fla file. It listens for 3 events from the loaded SWF - if when you dispatch these you can set the 3rd parameter "bubbles" to true and as long as you don't catch it, it will pass all the way up to the parent.

The only thing to remember is not to try and compile in Flex whilst your SWF is loaded in a running projector - the Flex compiler throws it's toys out of the pram and you have to restart before it will compile again.

   Glen

// Set up the loader object
import flash.display.StageDisplayState;
import flash.display.Stage;
import events.ScreenEvent;

this.stage.displayState = StageDisplayState.FULL_SCREEN;

var request:URLRequest = new URLRequest("main.swf"); // File path is relative to this preloader
var loader:Loader = new Loader();

loader.addEventListener(Event.ADDED_TO_STAGE, setupLoader);
this.addChild(loader);
loader.load(request);

function setupLoader(evt:Event):void {
   trace("loaded " + evt.target + " name " + evt.target.name);
   trace("loader width " + loader.width + " height " + loader.height);
   loader.addEventListener(ScreenEvent.QUIT, quit);
   loader.addEventListener(ScreenEvent.FULLSCREEN_ON, fullscreenOn);
   loader.addEventListener(ScreenEvent.FULLSCREEN_OFF, fullscreenOff);
}

function quit(evt:Event):void {
   trace("quit");
   fscommand("quit");
}

function fullscreenOff(evt:Event):void {
   trace("fullscreenOff");
   this.stage.displayState = StageDisplayState.NORMAL;
}

function fullscreenOn(evt:Event):void {
   trace("fullscreenOn");
   this.stage.displayState = StageDisplayState.FULL_SCREEN;
}

Romuald Quantin wrote:
I don't know if you tried but, I've done some and this has never worked for
me. In fact, it seems if you do both on a mac it is working and if you do
both on a PC the mac version get corrupted if I remember well.

I had to export them both on each OS and make an image with macimage for
example.

Maybe it is solved now?

By the way, if you have autorun problem with bat file and Flash CS3, read
this:
http://www.northcode.com/blog.php/2007/08/14/FSCommand-EXEC-is-Broken-in-Fla
sh-CS3




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: 16 May 2008 15:12
To: Flash Coders List
Subject: Re: [Flashcoders] Why do you compile with the Flash IDE?

you can make a pc projector in the mac flash ide - you can do a mac one on the pc but it needs to be decompressed before it gets burnt to cd


On 16 May 2008, at 13:42, Glen Pike wrote:

But this can't create a Mac projector on a PC and I am guessing vice-versa. My aim was to create a PC / Mac CDROM, so I needed both types, sorry should have said I wanted a .app or whatever it's called.

Christoffer Enedahl wrote:
Glen Pike skrev:
Because I needed to produce a projector and I could not work out how to get Flex to do that - don't want an AIR app, just an exe.
Open the swf file in flash player, File > Create projector

/Christoffer
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to