This is the code I am using for the card containing the browser:
Code: Select all
on preOpenCard
openBrowser
end preOpenCard
on closeCard
closeBrowser
end closeCard
local sBrowserId, tPath
on openBrowser
put the windowid of this stack into tWinID
set the itemdel to "/"
put the effective filename of stack "Food Chain" into tPath
delete last item of tPath
put "/dissolvedOxygen.html" after tPath
put "file://" before tPath
-- Open the browser, using the windowId and initial url
put revBrowserOpen(tWinID,tPath) into sBrowserId
-- Set some basic properties for the browser
revBrowserSet sBrowserId, "showborder",false
revBrowserSet sBrowserId, "scrollbars",false
revBrowserSet sBrowserId, "rect", (250,220,900,600)
end openBrowser
on closeBrowser
revBrowserClose sBrowserId
end closeBrowser
Thanks.