-
How can I launch a projector from a projector in Macs?
Can someone tell me how I can launch a projector from another in Macs?
I have two exe's and I can easily call one exe from the other one in Flash.
But, how can I make solution that I can use to burn a CD that will work on both PC' and Macs?
The only way I can see is take a version of the exe's for Macs from within Flash? If this is the only way, how do I know what file names I should be calling?
Any help would be appreciated.
Thanks.
Jam
-
Lifetime Friend of Site Staff
I posted this little snippet a while ago for another problem, but it might make your life easier too. Just call SmartExec instead of calling FSCommand("exec", "whatever") directly and you can forget about platform differences.
Code:
function SmartExec(target)
{
platform = $version.slice(0,3);
if (platform == "WIN") {
fscommnd("exec", target + ".exe");
} else {
fscommand("exec", target);
}
}
Note: You still have to worry about the FSCommand directory if you're using Flash MX or MX2004. That means you can call projector B from projector A, but you can't call A from B again because A isn't in the FSCommand folder.
-
Thanks for the reply.
I'm using Flash 5 to make my exe's.
Will that function work in Flash 5?
(I can't really test it to try it out because I don't have a Mac.)
-
Lifetime Friend of Site Staff
The only part I was really concerned about (in Flash 5) was $version.slice(0,3);, but the documentation says that String.slice existed in Flash 5 so it should work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|