Still teaching myself Flash - still confused about actionscript.
I have created a VERY simple slideshow. 6 pictures, same size, one per keyframe in the timeline, set to 1 frame per second. It plays just like I want it to.
Now I need actionscript.
I want the slideshow to pause when someone hovers a mouse over it and continue the slideshow when the mouse is moved.
That's it. No clicking, no enlarging, no special effects. Just pause and continue.
If someone could give me the actionscript to do this it would help as I learn by seeing, reading and trying.
Thank you!
...What I really need is a book that details for dummies how to use the actionscript events so I can learn how to fill them in and get them working - but that is for another day.... unless someone knows where can find that.
I appologize for being so dense when it comes to this. I converted my pictures to a movie clip and then added the coding/action to scene1 (the frame that holds the movie clip. I am not getting any error messages which is what I usually get but no actions either.
Maybe I did something wrong? I named the movie clip tshirts and this is the coding of yours I used:
tshirts.onRollOver = function () {
stop();
}
tshirts.onRollOut = function () {
play();
}
It sure looks like it should work. What am I missing?
// this removes hand cursor from appearing
tshirts.useHandCursor = false;
this.tshirts.onRollOver = function ()
{
this.stop();
}
this.tshirts.onRollOut = function ()
{
this.play();
}
Well I don't want to hide the hand but I tried the code just like you had and it didn't work. I even tried it with true (to show the hand) and it didn't work. And of course if I go in and try to edit the code in any way I get numerous error messages. I guess i just don't understand how actionscript works because that first code sure looked like it should work, perfectly and it did nothing.
Is there another code I can try? To add to a movie clip that will pause the movie clip when the mouse rolls over it and when the mouse moves away to start the movie clip again. It is just 6 pictures showing at one second at a time. It really seemed like it should be easier than this.
Does anyone know where I can read more abot actionscript, learn how the heck it works and how to fill out the actionscript assist?
I appreciate your patience and appologize for my ignorance. I went and downloaded your file and have spent over half an hour trying to figure out what is different on mine versus yours and can't.
The first thing I noticed was I hadn't made a seperate layer for the actions so I did that and gave it a try, still didn't work. I am of the beleif it is either in the name of the movie clip or the way the movie clip has been created.
My file is 450kb (too big to attach) so I have included a link to download it from my website and was hoping you could take a look at it and tell me what I am still doing wrong.
I could not have done this without your tip to research instance name. As long as I know WHAT it is I need to look for I can find it.
At first I was like, awe shucks he didn't insert the file, just the proof that it works but then I said, okay lets do this reasearch and I am SOOO GLAD I did. When I finally found where the instance name goes and tried out my file and it worked it FELT SO GREAT!!!
So thank you. Thank you for helping me figure this out. Now I feel one step closer to figuring out this darn program.
Bookmarks