It works for me (but when I had a space in it, it failed.) The dictionary has the same syntax. The "iphoneSetAllowedOrientations" is an older implementation that is now supposed to be a synonym of the "mobile" variety, but maybe that's not so.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
--Put this in the card script of the first card:
on preOpenStack
set the visible of this stack to false -- hide it
end preOpenStack
on openStack -- it's still invisible
getTheDevice -- your substack opens here; it is visible
end openStack
--This is in the stack script
on getTheDevice
put the machine into tDevice
switch tDevice
case "iPhone Simulator"
case "iPhone"
case "iPod Touch"
go to stack "iPhonestack"
break
case "iPad Simulator"
case "iPad"
go to stack "iPadStack"
break
end switch
end getTheDevice
You are quite correct... perhaps my daughters are right, that I am not 'keeping up' with the changing times... I will change the lines in my scripts accordingly.
on openstack
--mobileSetAllowedOrientations "landscape left,landscape right"
end openstack
on getTheDevice
put the machine into tDevice
switch tDevice
case "iPhone Simulator"
case "iPhone"
case "iPod Touch"
mobileSetAllowedOrientations "landscape left,landscape right"
go to stack "iPhonestack"
break
case "iPad Simulator"
case "iPad"
mobileSetAllowedOrientations "landscape left,landscape right"
go to stack "iPadStack"
break
end switch
end getTheDevice