I've got that done, a simple function that calls itself and moves the background back and forth.
But I can't get it to start when the app starts.
It works if I push a button, but not if I place the same call from on openstack or on opencard
Code: Select all
on aniBack
if checkit contains "start" then
if direction = "left" then
set the left of image "background" to the left of image "background" -1
if the left of image "background" < -200
then
put "right" into direction
end if
else if direction = "right" then
set the left of image "background" to the left of image "background" +1
if the left of image "background" > -5
then
put "left" into direction
end if
end if
send aniBack to me in 20 milliseconds
end if
end aniBack
on openstack
mobileSetAllowedOrientations ("landscape left,landscape right")
set the left of image "background" to 0
set the top of image "background" to 0
aniBack
end openstack
Any help or ideas would be greatly appreciated, I've been fighting with this for the past few hours.