?
Solved

Rollover and start playing movie clip question

Posted on 2006-07-10
1
Medium Priority
?
575 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 2000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

771 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