1 Reply Latest reply on Jul 9, 2007 4:37 PM by NickTheNameless

    scrolling pics imported via xml

    NickTheNameless Level 1
      i have pics imported via an xml file and i would like to display the pics by allowing the user to use a left and right button to scrxoll through them. i would like the center pic in the "spotlight" to be displayed with no distortion and 4 pictures on each side of that are skewed a bit. i would also like the scrolling to loop, so that when you reach the last picture, the first one is the next one in line. the effect i want is much like the movies section of iTunes (without the slide bar).

      i'm very close to getting the effect to work, but it's off a bit. what would be the best way to accomplish this scrolling effect? when i import this pictures in flash, i get a count of how many there are; call numOfItems. i've been trying to use this number to determine which picture is being displayed as the center spotlight, which pictures should be skewed to either side of the spotlight picture, and when to start over with the first picture (or the last picture, depending on which direction you go... left or right).

      does this make sense? if not, but you think you could help, please ask me some questions or ask me to post some more code. right now i'm posting the initial frame that places the pictures after they have been loaded from the xml file. when this frame plays it plays through 5 more frames that make the animation happen. in that last 5th frame, depending on the direction clicked, it adds or subtracts 1 to the spotlight count and then send it back to this frame.

        • 1. Re: scrolling pics imported via xml
          NickTheNameless Level 1
          i made some progress, so thought i'd post it here even though i'm pretty sure this won't get any response as it's very hard to explain in a forum.

          anyweezer, as with most of my problems, it was caused by syntax (funny how it checked out just fine though). lines like...

          if (spotlight == [numOfItems-4]) {

          ....are incorrect. i had to take away the [ and ], although they are necessary in the eval statements where i add string on to a computation. crazy syntax. this solved some of my major problems. if it solved all of them i'll mark this resolved.

          if anyone does run across this, i'd like some critique on how i accomplished this effect. the movie only has 8 frames and there are no tweens, but i do make use of the timeline actually playing. i'd love to see this done in one frame. possible?