However, when I restart the app, the screen flashes between the splash screen, my main card and my login card and there is nothing in the code (as far as I can see) that reveals why this strange behavior occurs.
Code: Select all
on preOpenStack
set the fullscreenmode of this stack to "letterBox"
end preOpenStack
on openStack
set the cVerifiedLogIn of cd "logIn" of stack "ID-check" to "false"
set the cTestRun of cd "mainCard" of stack "ID-check" to "false"
end openStack
Code: Select all
on preOpenCard
if the environment is "mobile"
then
set the defaultFolder to specialFolderPath("documents")
get URL ("file:agree.txt")
if it is not ""
then
put the base64Decode of it into it
set the cAgree of this cd to it
else
set the cAgree of this cd to ""
end if
end if
get URL ("file:Konto.txt")
if it is not ""
then
put the base64Decode of it into it
set the cKontoUppgifter of this cd to it
set the cNamn of cd "mainCard" to line 1 of it
set the cPersNr of cd "mainCard" to line 2 of it
set the cMobil of cd "mainCard" to line 3 of it
set the cEpost of cd "mainCard" to line 4 of it
set the cUser of cd "mainCard" to line 5 of it
set the cPassword of cd "mainCard" to line 6 of it
end if
end preOpenCard
on openCard
if the cVerifiedLogIn of cd "logIn" is "true"
then
set the icon of btn "krediter" to the cKreditIcon of cd "mainCard"
else
set the icon of btn "krediter" to 1007
end if
end openCard
///Peter