Solved

Rollover and start playing movie clip question

Posted on 2006-07-10
1
573 Views
Last Modified: 2012-08-14
Hi, experts

I put a onRollover to start a movie clip to move ( mc.gotoAndPlay(2)) then...if I keep rollOver then every time i roll over then it will play mc.gotoAndPlay(2) over again....how do I make it just play once even I roll over wheile mc.gotoAndPlay(2) is still playing... thanks
0
Comment
Question by:mingchih
1 Comment
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 17078645
Hi,

use following code
------------
on (rollOver) {
      if (mc._currentframe == 1) {
            mc.gotoAndPlay(2);
      }
}
----------

above code will check, if current frame is 1 than only it will start playing from frame 2

Rgds
Aneesh
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question