For a start, the reason why the slideshow goes back to the start when
you press the 'start slideshow' button is defined in the code for the
function onSlideshow, it explicitly states _slideIndex = 0.

Without going through the code carefully, I'd say at a guess the
slideshow isn't advancing because either the onSlideshowTimer function
isn't being called repeatedly or the _slideIndex variable isn't being
properly incremented.

To check for these, put in a trace command in the onSlideshowTimer
function to print out the value of _slideIndex to the console, that
way you can see what is happening to the variable.



--- In flexcoders@yahoogroups.com, "brucewhealton" <[EMAIL PROTECTED]> wrote:
>
> I meant to point out a reason why I might run into troubles.  I am
> following a training title on Lynda.com on Actionscript 3.0 with Flex.
>  The instructor is using Flex 2.0 and I am using Flex 3.0 with
> Actionscript 3.0 (obviously).  I'm not sure if that could be a cause
> of my difficulties or not.
> Thanks,
> Bruce
> >>>>>>>>>>>>>>>>>
> Flex Developers forum - with support for newbies:
> http://futurewavedesigns.com/aria/
> Please check it out.
> >>>>>>>>>>>>>>>>>
> 
> --- In flexcoders@yahoogroups.com, "brucewhealton" <bruce@> wrote:
> >
> > Hello all, 
> >        I think I would need to include the code to get an idea as to
> > what I might be doing wrong.  So, I posted the code for the three
> > files here: 
http://futurewave.biz/PhotoViewer/sourceCode/PhotoViewer.as
> > http://futurewave.biz/PhotoViewer/sourceCode/SlideshowViewer.as
> > http://futurewave.biz/PhotoViewer/sourceCode/Thumbnail.as
> > 
> > The application itself, which partially works is here:
> > http://futurewave.biz/PhotoViewer/PhotoViewer.html
> > 
> > This application takes a few images and displays a slideshow of those
> > images.  It first displays thumbnails and when the user clicks on a
> > thumbnail it opens up the full size image.  Then if you click
> > slideshow, it should display each image in sequence.  Unfortunately,
> > my code for the slideshow does not work.  If you click on any image
> > and then select slideshow, it just jumps back to the first image and
> > stops.
> > 
> >   The main class is Photoviewer.as and it calls a list of photos
> > called Vacation1.jpg through Vacation12.jpg and ThumbnailVacation1.jpg
> > through ThumbnailVacation12.jpg  This was from a training class I took
> > online.  Where it says import
> > com.lynda.as3et.photoviewer.ui.SlideshowViewer;  I put a subdirectory
> > in the main application folder called com, followed by a subdirectory
> > below that called lynda, followed by a subdirectory below that called
> > as3et, etc. to reach the
> > 
> > These files are included in the attachments to this posting for
> reference.
> > Thanks,
> > Bruce
> >
>


Reply via email to