loading another stack from splash

Mark Smith Mark_Smith at cpe.umanitoba.ca
Mon Sep 20 12:25:58 EDT 2010


Thanks Shadow, yes that was a typo in my email, not the hander. I'll cut/paste what I have

on preopenstack
   -- lock screen to true
   -- set visible to false
   answer the utargetstack of this stack
   go to stack (the utargetstack of this stack)
end preopenstack

There are some commented sections (suggested elsewhere) I want to test later. Notepad3 is just another stack residing in the same directory as Startup (might that be the problem? ie. I'm not providing a path or anything just the name of the stack), The bracketing did not help. Thanks

-- Mark
________________________________________
From: use-revolution-bounces at lists.runrev.com [use-revolution-bounces at lists.runrev.com] On Behalf Of Shadow Slash [shadow.slash at yahoo.com]
Sent: Monday, September 20, 2010 10:36 AM
To: How to use Revolution
Subject: Re: loading another stack from splash

Hi Mark,

First off, is that a typo in your handler? -> "preopenstackit".
IMO, that should be "preOpenStack".
Now for your problem, can you try this in place of your code instead?
on preopenstack
   answer the utargetstack of this stack
   go to stack (the utargetstack of this stack)
end preopenstack

If that still didn't work please do tell so I can try to further help you.

--- On Mon, 20/9/10, Mark Smith <Mark_Smith at cpe.umanitoba.ca> wrote:

> From: Mark Smith <Mark_Smith at cpe.umanitoba.ca>
> Subject: loading another stack from splash
> To: "use-revolution at lists.runrev.com" <use-revolution at lists.runrev.com>
> Date: Monday, 20 September, 2010, 3:28 PM
> Hi folks,
>
> I've written an application (a simple notepad) that I
> wanted to compile. RunRev documentation suggests creating a
> "splash screen" that
> calls the "notepad" so that notepad can save into itself.
> So I created a stack called Startup. So far it has a single
> script in the stack script that says
>
> on preopenstackit
>    answer the utargetstack of this
> stack  -- works
>    go to stack the utargetstack of this
> stack -- not working
> end preopenstack
>
> utargetstack is defined as Notepad3. When I open the
> startup stack it displays the name of the "target" stack
> correctly
> in a dialog (ie. Notepad3).
>
> The next line however does nothing. By that I mean it does
> not seem to load and run
> the Notepad3 stack. This is what I get when I say "put the
> openstacks"
>
> Message Box
> revMenubar
> revTools
> revStartCentre
> Startup
> revApplicationOverview
>
> Any suggestions?
>
> Thanks
>
> -- Mark
> _
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list