I created my browser in the card script:
Code: Select all
local sBrowserId
on preOpenCard
hide fld "galleryText"
hide group "panoramaButton"
show group "browser"
show group "galleryInfoButton"
if the environment is not "mobile" then
exit preOpenCard
end if
mobileControlCreate "Browser"
put the result into sBrowserId
local tURL
put ("file:" & specialFolderPath("engine") & "/assets/pano/dream/dream.html") into tURL
replace space with "%20" in tURL
mobileControlSet sBrowserId, "rect", the rect of group "Browser"
mobileControlSet sBrowserId, "visible", "true"
mobileControlSet sBrowserId, "autofit", "true"
mobileControlSet sBrowserId, "url", tURL
end preOpenCard
on closeCard
if the environment is not "mobile" then
exit closeCard
end if
mobileControlDelete sBrowserId
end closeCard
Code: Select all
on mouseUp
lock screen for visual effect
show fld "galleryText"
hide group "browser"
hide group "galleryInfoButton"
show group "panoramaButton"
unlock screen with visual effect dissolve
end mouseUp