Maybe someone can help with this problem.
In the flash file, data is loaded from an external xml file. Using Actionscript, I wrote a loop that attaches a movieclip that loads an image through xml, which is attached to a movieclip called “tray”. Each of the buttons are going to have events that execute when pressed, but that is not my question. On the stage I have created buttons that, using the tween class, animate the tray movieclip across the stage. If you press either the next or prev button, the tray continues to animate along the x axis past the parameter of the stage. I tried to code it to where the button would be disabled if the x position of the tray mc made it past a certain point, but I was unsuccessful. I thought this could be one solution, maybe it is and I’m not coding it correctly. I also tried using
combination of using getBounds() with the x positions,but was unsuccessful again.
Another solution could be to continually loop the tray mc clip, however I don’t know where to start in regards to that. The final version will have a total of 35 images that will be loaded using
xml and I am try to make the animation stop once it reaches the end of either side of the tray movieclip.
I have attached the files that I’m trying to modify and if anyone can help, I would be very grateful.
Thanks,
Jt