Page 1 of 1

stand alone

Posted: Sat Oct 20, 2007 7:27 pm
by rushvan
how do i build a stand alone player so a user on a different computer can play my project? when my rev program starts it asks about ide and laucher. i don't know how to implement them.

Posted: Sat Oct 20, 2007 10:26 pm
by Mark
Dear rushvan,

The easiest way to do this is to use a so-called splash stack, which opens the mainstack of your project automatically. You need a script in the "splash" stack similar to this:

Code: Select all

on preOpenstack
  hide this stack
  set the itemDel to slash
  set the defaultFolder to item 1 to -2 of the effective filename of this stack 
  go stack "Your Stack.rev" in new window
end preOpenStack
Now make a standalone of this splash-stack and it should open your mainstack. Of course, if you have a startUp handler in your mainstack, you need to make sure that this handler runs before any other handler. For example, with

Code: Select all

on preOpenstack
  lock messages
  hide this stack
  set the itemDel to slash
  set the defaultFolder to item 1 to -2 of the effective filename of this stack 
  go stack "Your Stack.rev" in new window
  send "startUp" to cd 1 of stack "Your Stack" -- short name
  send "preOpenStack" to cd 1 of stack "Your Stack"
  -- send as needed, until all
  -- necessary handlers ran in the correct sequence
end preOpenStack
You will have to adjust above script to the requirements of your own project.

Best,

Mark

Posted: Mon Oct 22, 2007 12:33 pm
by olivierauverlot
You can try "Broadcast". It is a tool to distributing an application made with Media. It can be downloaded on my Web site (http://www.auverlot.fr/broadcasten.html).

Olivier :D
http://www.auverlot.fr