stand alone

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
rushvan
Posts: 10
Joined: Mon Oct 15, 2007 8:50 pm

stand alone

Post by rushvan » Sat Oct 20, 2007 7:27 pm

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.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Oct 20, 2007 10:26 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

olivierauverlot
Posts: 11
Joined: Sun May 14, 2006 9:10 am

Post by olivierauverlot » Mon Oct 22, 2007 12:33 pm

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

Post Reply