Jump to content


Strange bug in a dynamic slide show I can't figure out.


  • You cannot reply to this topic
No replies to this topic

#1 MattyG

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 28 January 2008 - 02:40 PM

Ok, this might be kind of a long explanation, but I want to explain it right the first time..

I'm building a dynamically XML loaded slide show with a few special features to accommodate my clients needs. It needs to read the XML sheet, fill an array with the node values, display them in a setInterval manner (but only if there is more than one image) and if the image is larger than the screen to do a pan untill the end of the pic is reached at a speed relative to the width of the image.

That being said, I have accomplished the task but with one very strange bug that I can't figure out. The system works great for the most part. It loads the XML nodes fine, it checks the array to see if there are more than one value and executes the relative function to cycle through the pics or to just stay still. It checks the width of the image and tweens the images larger than the stage and holds still the images smaller that the stage.

The problem I'm having is reseting the tween back to zero after its done (so the next image doesn't appear off the stage). It resets itself when changing from a larger image that's been tweened to another larger image that needs to be tweened, but not from a larger image to a smaller image. It does reset the x position of the image when switching from a smaller image that has appeared off the stage due to the previous image being tweened to another smaller image...

Here is a link to download a zip file with all the appropriate files and images for anyone that thinks they can help: http://www.commongro...MLslideshow.zip

Thanks in advance.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users