Solved

Rollover and start playing movie clip question

Posted on 2006-07-10
1
572 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

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

856 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