Question
This should be simple, but....
Hi,
I've written some actionscript code that basically displays a series of images across a background in movie strip fashion. You can scroll through the images left to right or right to left and the images wrap when you get to the end. Each image is also clickable to a given url, and has a caption under it. I load in all the images with the actionscript, and the image locations, links, and captions are read in from an xml file. This all works great and an example can be seen here: http://www.summitwebpages.com/flash/test_image.html.
Here's my problem: I would like to be able to have the images begin to disappear about 20-30 pixels from the left and right ends of the background, so I can put the scroll buttons in the middle of the left and right ends of the background, rather than below the background as they are now. This would be easy if I was just places the objects on the stage myself and doing a motion tween of the images. I just put a mask at the end of the stage, and have the images scroll behind the mask. But, I have tried for days to get something to work with the actionscript that loads everything from the xml file, with no luck. I have tried adding a 30px wide mask on the ends of the background - both by placing it on the stage, and by loading it in, but either it does not appear, or it appears but the background goes invisible. I know I'm missing something. Any suggestions would be greatly appreciated. Thanks!
I've written some actionscript code that basically displays a series of images across a background in movie strip fashion. You can scroll through the images left to right or right to left and the images wrap when you get to the end. Each image is also clickable to a given url, and has a caption under it. I load in all the images with the actionscript, and the image locations, links, and captions are read in from an xml file. This all works great and an example can be seen here: http://www.summitwebpages.com/flash/test_image.html.
Here's my problem: I would like to be able to have the images begin to disappear about 20-30 pixels from the left and right ends of the background, so I can put the scroll buttons in the middle of the left and right ends of the background, rather than below the background as they are now. This would be easy if I was just places the objects on the stage myself and doing a motion tween of the images. I just put a mask at the end of the stage, and have the images scroll behind the mask. But, I have tried for days to get something to work with the actionscript that loads everything from the xml file, with no luck. I have tried adding a 30px wide mask on the ends of the background - both by placing it on the stage, and by loading it in, but either it does not appear, or it appears but the background goes invisible. I know I'm missing something. Any suggestions would be greatly appreciated. Thanks!
