Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : Frame Actions in a Slideshow


Paul002
3/17/2004 11:54:29 PM
Hello, I'm working on a project using the Slides layout. However, I cannot get
a simple from action to work within a slide. For instance; in the timeline for
SLIDE2 I have 5 frames. I would like the playback to stop on FRAME 1, then
proceed at the click of a button. Should be simple enough, but it just won't
stop. I've spent all day going through websites, documentation, forums, and
even Flash MX 2004 guides at the bookstore to no avail. It works fine when
using in regular mode "the old way." But in Presentation mode it does not. How
do I get the timeline to stop on a specified frame? Previously I would use:

stop();

Is this a bug? Or am I missing something?
Ed Skwarecki
3/18/2004 10:48:45 AM
The reason it's not stopping has to do with the way Flash treats frame 1 of movie clips
(which is essentially what slides are) and the fact that slides try to play their content
when they are revealed/unhidden.

I know this sounds weird, but what you have to do is insert 2 extra blank keyframes as
frame 1 and frame 2 of your Slide2. Then the stop() frame action on frame 3 will work as
you expect it to.

--
Ed Skwarecki
Principal Architect
eLearning
Paul002
3/18/2004 5:37:33 PM
AddThis Social Bookmark Button