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