473,749 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to play and pause movie clip in flash

254 Contributor
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 16276
kestrel
1,071 Recognized Expert Top Contributor
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 New Member
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
kelleyg
4 New Member
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 Contributor
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 New Member
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
2915
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 have the movie clip on the same SCENE as were i want to the button to take me? Does any one have any ideas as i am stuck and need help!!
10
4906
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 to target back to the _root of the whole movie. It works great when the buttons and empty movieclip in the same stage or same movie clip, however I need to work out the right script to target right back to the root where i want the image to sit,...
2
3027
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, what I need to do is to set another variable the value of _root.test in the movie clip. I try to do this code : testMV = _root.test; and
0
2858
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 been modified slightly. Each question is in it's own movie clip and the whole test (all the questions) is in a container clip. When the user checks a box they can no longer scroll using the MouseWheel on a PC.
26
3902
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 almost no posts from the last 3 years: http://groups.google.com/group/comp.lang.javascript/search?group=comp.lang.javascript&q=how+to+play+a+sound+with+Javascript&qt_g=Search+this+group Even after sorting by date, there don't appear any...
3
4516
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. Where does one find such a thing on this site? Your search gives up no information regarding, 'sticky.' If this site does not provide that type of forum advice, you should post that on your home page.
2
3359
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. (frame 1 to 7) Problem: the background sound plays again on top of the ancient one. And as the movie starts again, one more piece will be played, and so on. I've tried to use different approach with action script but no luck, Please help.
1
5458
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
3000
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 the corresponding image, name and description form the xml onto the stage in respective movie clips. but its not loading the xml titles into the imagetitles movie clip i m uploading the zip file of the xml that i have at present ...plz check and...
0
8996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.