Solved

Rollover and start playing movie clip question

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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…
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 select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

757 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now