still trouble with standalone
Posted: Sat May 21, 2016 9:39 pm
i've tried to save data as an IOS standalone following these lessons verbatim and with different lines of code. The problem is that only the splash screen shows. i don't see the other stack in contents package or when i launch the stack. i am including it in the stack files of the stand alone.
For my splash screen, i use a stack with a colored rectangle on the card. I've tried the following many many times. The first throws an error before you even save as a standalone.
i've tried this with lc 8.0.0 and 8,0.0 rc1.
i never got this to work either, using i believe 7.1.2 and 7.1.3
What simple thing am i missing again, thanks
Larry
For my splash screen, i use a stack with a colored rectangle on the card. I've tried the following many many times. The first throws an error before you even save as a standalone.
i've tried this with lc 8.0.0 and 8,0.0 rc1.
Code: Select all
on preOpenStack
if the environment is "mobile" then
set the loc of this stack to the screenLoc
put the document folder into thedocPath
--put the engine folder into the docPath
--put specialFolderPath("engine") into theDocPath
put "/number.livecode" after theDocPath
end if
if there is not a file theDocPath then
put the effective fileName of this stack into theMoveFromPath
set the itemDel to slash
put "number.livecode" into the last item of theMoveFromPath
rename file theMoveFromPath to theDocPath
end if
--answer theDocPath
go invisible stack theDocPath
end preOpenStack
on OpenStack
wait 3 seconds
show stack "number"
close stack "sp"
end OpenStack
Code: Select all
on openStack
open stack "Main Application.livecode"
close stack "Launcher"
end openStack
on mouseUp
set the cName of this stack to fld "name"
put empty into fld "name"
end mouseUp
on closeStack
save this stack
pass closeStack
end closeStack
Larry