|
-
panning in fullscreen browser issue
Hi Guys,
Using AS2.
Basically my issue is that I am running full browser flash, and I want to have a scrolling gallery that extends from the right to left of the browser window, but i can't get it to stop panning horizontally where i would like.
My stage resizes in accordance to the browser size.
This is the code on the panning MC, which itself is contained in another MC on the stage:
onClipEvent(enterFrame) {
if (_x> _root._x) {
_x= _root._x;
}
if (_x< -900) {
_x= -900;
}
}
_x> _root._x works fine in that when I hover over my arrow which makes the MC pan back to the start of the thumbnail images, it pans to the right and stops at the start of the MC (0,0)
now, using (_x< -1300) isn't reliable because thats a fixed size. people with smaller browser windows wont scroll to that point. it'd have to be much larger value for them to see it scroll to the end, say maybe 1500. but then to a user with a widescreen monitor and a much larger browser size, this would continue to scroll well past the end of the MC contents.
How am i able to get it to stop at the end of the MC contents, everytime, no matter the browser size?
If i cant do that, is there anyway i can make it scroll in a seemless infinite loop so at least it doesnt scroll away into nothingness?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|