473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to play and pause movie clip in flash

254 100+
Hi

I want to play/pause a movie clip when I click a button and the value of button should changed to play when it is paused and pause when it is playing.

I am new to flash so how can I do it.
May 3 '08 #1
5 16254
kestrel
1,071 Expert 1GB
Look through the tutorials listed on the sticky on the Flash Forum. You can find all that you need there.

--
Kestrel
May 6 '08 #2
jitu78
30
Hi

I want to play/pause a movie clip when I click a button and the value of button should changed to play when it is paused and pause when it is playing.

I am new to flash so how can I do it.

you need to create a common movie clip for play pause control, and flag there with play and pause on different frames for each state.
now, change position on click event.

- Jitendra
[removed link]
May 11 '08 #3
Your response states, "Look through the tutorials listed on the sticky on the Flash Forum. You can find all that you need there."

What is a 'sticky?' I am new to this forum and have not been able to find any area called 'sticky.'
Jun 6 '08 #4
joedeene
583 512MB
What is a 'sticky?' I am new to this forum and have not been able to find any area called 'sticky.'
If you still don't know what a sticky is or are still working on this project let me know, and a sticky is just threads that have been posted by Moderators or Administrators that are called sticky because they are always the top on the list and never get moved down(rather than normal questions that have been posted to be answered). I believe the 'sticky' he was talking about was this one. Stickies are not just a section or their own forum, each forum has different ones, depending on what has been posted by the Admins or Mods to remain sticky. There is also a yellow strip that says sticky under the threads...

joedeene
Nov 1 '08 #5
Fabez
29
Make a move clip with two frames, on the first one put a play symbol and on the second one a stop symbol. On both of the frames place the code.

Expand|Select|Wrap|Line Numbers
  1. stop();
Then go back to the main time line and give your movie clip an instance name in the properties box at the bottom. For example you could call it StopNGo_mc. After you have done this, then add the following code to your main timeline.

Expand|Select|Wrap|Line Numbers
  1. _root.StopNGo_mc.onRelease = function() {
  2.     if (_root.StopNGo._currentFrame == 1) {
  3.         _root.StopNGo.gotoAndStop(2);
  4.         _root.Movie_mc.stop();
  5.     } else {
  6.         _root.StopNGo.gotoAndStop(1);
  7.         _root.Movie_mc.play();
  8.     }
  9. };
In the code above, Movie_mc is the instance name of the movieclip you want to control. If you have any questions, just ask.
Nov 2 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: P3dro0203 | last post by:
I have got a Movie clip that i have made in FLASH MX, and when i attach a actionscript to the button the hit CTRL + ENTER so veiw the SWF file, the actionscripting does not work. Is this becasue i...
10
elamberdor
by: elamberdor | last post by:
Hello All! Well, I can load in swf's just loverly, but what I have is a sliding menu, with buttons in it, that when pressed, load an image into an empty movieclip. I really just need to know how...
2
by: teenIce | last post by:
Hi all, Please help me with this problem. I'm new in flash and actionscript, sorry if my question is too easy. I have a variable name _root.test at Scene 1, and I have a movie clip name Answer,...
0
by: RLW | last post by:
Hi, I inherited a Flash usability problem: It's a self assessment test created in Flash. I think it was originally built using individual flash files for each question and arrays. Now it has...
26
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are...
3
by: kelleyg | last post by:
I see this has been asked already, but the answer was insufficient: 'check the sticky' is not an answer. What, pray tell, is a 'sticky?' There is nothing called 'sticky' in the Flash forum. ...
2
by: Mickey Flores | last post by:
I have just tried to attach a background sound with on/off button to my movie clip at frame 1 of the main Timeline. Flash Movie: the movie will keep on replaying until a viewer clicks a button....
1
by: gusheneshin | last post by:
hi everyone im Using this code to Creat a Movie Clip and load a movie "SWF" into this Flash ------------ stop(); loady._x = 226.4;this.createEmptyMovieClip("loady",5);
1
by: angelicdevil | last post by:
ok wat i m trying to do it get flash to read a xml file and load the titles in xml as a button into the imagetitles movie clip made on stage in flash . so that when i click on a title it displays...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.