Thank you so much for this video! I tried figuring out for hours how to link my buttons to frames and I knew I was forgetting a step, which was titling my instance label.
Thank you so much! I have been working on a slideshow for 12 hours or more. I got the forward and back buttons to work but the show would only go through once then get stuck. I found the solution through your video! I had to Convert to Keyframes each frames I wanted to jump to on the buttons layer. Then highlight the button and give it another instance name! I did that and adjusted the action-script for each button and it works! Thank you so much. I have read so many tutorials and watched so many videos and yours gave me the solution!
Glad it worked for you. 1/ Are you going to have a previous and a next button? Just 2 buttons? OR 2/ Are you keeping the buttons and code you have now and adding a previous and a next button? 3/ How many frames are you going to have or is this going to change over time? Please respond to each question by number. Makes it easier for me to help you.
Thats a very good tutorial, but for people who just want to animate and have a quick play button after their preloader, just create your button, select it, press F9, and type on (release) { gotoAndPlay(x); } where x is the frame you want it to go to when you release the button.. :D
Sometimes even if you put the instance name in you can still get that error message. Its like the code does not recognize what you typed in.Try copying the instance name from the properties panel and paste that copied name into your Action Script. This has worked for me more than one time. Good luck.
This should be easy to fix.. 1/ When you test it do you get any error codes/messages in the output panel? If yes ..what are the codes and messages? 2/ Do you have "stop();" codes in each of the three frames of the actions script layer?
Thanks a bunch! This was really helpful, although it took me a while to figure out that I accidentally made the outline the button instead of the fill haha..
Thanks for the feed back. I am using AS3 in this tutorial. I think what you are saying is OK for AS2. I don't think you can put code on a symbol or use the "on (release)"code in AS3. Thanks again for your comment.
How many pictures do you want to have? What frame are they on? Is each picture a button or just a part of each picture is a button? Language is no problem.
I dont have all the images donwloaded yet but there will be around 20 of them. I dont understand what you mean by "what frame are they in". they all are blank keyframe with button inside. (there is a part of it which is actual button) - i have been cutting button in each image precisely and than putting it back to place.
Thank you for your video, it was clear and brilliant, but I have just a few problem to ask about the action script you typed: Um... so I know that Shoot_1 is a name, but what exactly was it? I mean, what did you name Shoot_1? When did you name Shoot_1? Pls help me!!! In super great hurry, thx
It took me like 20 to 25 years to get some understanding of writing code. I could not get it at all. Some people get it right away. There are 2 play list on my you tube that may help you. "Flash Basics" and "Flash From Scratch" One of them has basic coding, the other is basic Flash.
This is a very common mistake to make. There has been a few times that I gave it the instance name and it looked exactly as the name I used in the code but it still never worked. I typed in new code: no luck. I typed in new instance name (again) it worked. Now when I think I have a problem with an instance name I copy it from the PROPERTIES PANEL and paste it into my action script code. That way there I am sure I gave it an instance name and I am sure they are exactly the same.
hey, first great tutorial, tho i have a problem, I did all as u showed, but still when i test it, it keep on moving ( from frame1 to trame2 to frame3 and then again to frame1 and so on and so on) withouth me clicking any buttons. Does any1 know what i might do wrong? or if there is are any setting that i dont have set right? Ty for your help
"Shoot_1" is a name I gave to the function. You can use any name you wish as the word used does not turn a different color. If it turns a different color that means you are using a reserved code word.
Should I write this code?! Cant I just draw the shapes, convert them to bottons, write on them "pause, play or end" then I could enable them from control 'enable botton'?!
when i was at school my lecturer tought me to make script without typing.. i mean, by using the plus button in the action script tab and choosing actions/functions that we desired..its been 3 years since last time i made a flash project.. i reaaaally wanted to remember that but i cant refresh my mind. sir can you teach that?? how to insert action script without typing.
I think you are talking about "code snippets". They are good for basic coding. They are very limited. There are a few videos on my you tube now. Go to the play list "Flash From Scratch" and "Flash Basics". Look for the tutorials about code snippets.
Hey sir, I want to ask, I make 3 scenes, and in the 2nd scene, I make the next and prev button, but at the beginning of the 2nd scene frame when I click prev, this goes to scene 1 and end of scene 2 when click next this goes to the 3rd scene, how can I enable it to not be in another scene, just in the frame in scene 2? i am use AS3.0
Buttons will allow things to happen through functions. Functions are a place in menory where code is written to allow something to happen. They are not a symbol. You can basically use any name for these functions as long as it is not a reserved word (a word used for action script). If you do it will turn color to remind you. To save time I will often copy and paste action code from one fla. to another. In this case the code I copied had Shoot_1 as the function name. You can change it.
I have a question I have 2 interactive flash files and in both of the files there is a button, what action script do I use to go from one file to another by clicking the button?
Is this what you want to do? You have two independent fla. files. You want to go from one file to the other by clicking a button. I do not believe that you can write code to go to another fla. or a swf file. Do you know what is means to publish a fla.? Ther may be a way to do this.
Flashthingy nope I dont. I have to make a little game for school, freddy fish type. you know one drawing you can click on stuff and thing happen en then click on a arrow and go to the second drawing.
I am sure I can help you. How long have you been writing code in Flash? Do you know how to use the drawing tools in Flash? Do you know how to code buttons?
Flashthingy uhmm 1 year only in school, I do the drawing in photoshop and export it to flash. I know how to make animations in buttens when you hold it, put the mouse on it and one script that makes a animation play when you press something. but I'm not good with codes, the code I need for this is something like: click on the arrow, go to "file 3" maybe I can sent it to you :P
how do i do this Sketch a map of North America with areas being the three countries (Canada, America, and Mexico). When a country is clicked, that country is enlarged and some info (including the name, population, land area, and a symbolic picture) about that country is displayed. After the enlarged country is displayed for a few seconds, it automatically goes back to the original area on the map.
+Umair Hafeez I have the second video no my youtube. It is titled "Flash Tutorial Request 97 Map Of Knowledge Part 2". It is in a playlist called "Flash By Request". Let me know how you make out.
Hey sir, I want to ask, I make 3 scenes, and in the 2nd scene, I make the next and prev button, but at the beginning of the 2nd scene frame when I click prev, this goes to scene 1 and end of scene 2 when click next this goes to the 3rd scene, how can I enable it to not be in another scene, just in the frame in scene 2? i am use AS3.0
If you DO NOT want this to happen: you must remove the prev button from frame 1 (only) on scene 2 and remove the next button from the last frame (only)on scene 2.
I dont have all pictures yet. But i think it will be maybe 20. I want it will be a loop. And just some part of pictures is button. And i dont understand wnat you mean "what frame are they on". I have one layer as i pictures and there i have 10 blank keyframe with mine pictures. and then i have second layer wwith button andthen trhirt layer like "as" like you in this video.
Thank you, but I have this for school. And my teacher said that it must be in AS2. I really dont know whats different but we must doing this in AS2. Please can you do some tutorial for me? I have Flash CS5 and i just need click to some part of picture and go to another frame. But you have the same button in one layer, I have different button in different pictures. Do you understand me? I know that i want much. And I apologize for my bad english. Im from czech republic. :D Sory.
I'm trying to look through your videos here....But, do you have a vide on using a button to cycle through a movie clip? I'm making a dressup game, and I need to be able to have the user click on, say, the dress button and it cycles through the dress movie clip. Do you have anything like that? I can't find a whole lot of info.
I have been thinking about making a dressup game but I am not good with the graphics. What you need to do is make the dress a button and when the dress button is pushed, instead of going to a different frame on the main time line , have it go to another frame on a movie clip. Is that something you are able to do? I would like to help you out. Sounds like a good project/challange.
Flashthingy I actually have all the assets made. It's a school project. I've got buttons made, and I've got the movie clips made, but I don't know how to make it work.
Flashthingy It's no trouble. :) I appreciate you even responding. I'm swamped with schoolwork myself! Anyway, when you click the button, it should just cycle through the movie clip frames each time it's clicked. I hope that makes sense.
Uh I do not know too much, basically it is for a game that uses Flash Player and it is to know if it is possible to realized a script that jumps images I do not know how to explain it
Mine just skip from frame to frame fast like thejack1594 but write me this error. Please help. Scene=Scene 1, layer=as, frame=1, Line 4 The class or interface 'MouseEvent' could not be loaded. Scene=Scene 1, layer=as, frame=2, Line 4 The class or interface 'MouseEvent' could not be loaded. Scene=Scene 1, layer=as, frame=3, Line 4 The class or interface 'MouseEvent' could not be loaded.
Hi, do you have a tutorial where it shows how to make a click, play, stop, show message Flash tutorial? for example, when i click on an image of the globe i've created then the image of a plane flys to the spot i clicked on the globe and the plane stops / disappears and a message pops up. I'm wanting to do this for more than 1 spot on the globe though, for example, UK and NY, so each time i click on a different spot the plane will fly to that spot and a different message will pop up for each county that is clicked on, thanks.
No I don't have such a tutorial. I can give it a try. Not sure if I can do it or not. I will get back to you in a few days and let you know. Could be interesting. I need a few questions answered first. 1/ Is the globe a flat page like a map? 2/ Where does the plane come from? 3/ How long does the pop up message stay?
Flashthingy Thank you. :) 1/Yes it is a flat page, 2/The plane starts from NY because that is the starting point then it will go to another country on the map when you click on it another part of the map. 3/ the message pops up and stays till you click on another country on the map.
I put a new video on my youtube channel. It is in the playlist of "Request". It is tilted "Flash Tutorial Request 29 Global Destinations". There are 2 more videos to complete your request. May I suggest you use the same names (buttons, cities, etc) as I did. It will make it easier to help you if you have problems.Let me know how you make out.
You can make as many buttons as you want, Make sure the added buttons have their own instance name. If you can not do this let me know and I will try to help you.
Flashthingy Thank you. Currently, I can make all the buttons that I want individually, however, once I combined them into one doc, it doesn't work. (It only works for one button, but I can't reach to other buttons once I pressed it.)
Are you getting any error codes? If yes.. what are the code numbers and what does the code say? IF NO ERROR CODES ... tell me where you have these buttons that do not work. Tell me how you get to them.
On my TH-cam Channel there is a PlayList called "Flash From Scratch" there is a tutorial 34 Controlling Movie Clips. I suggest you do this first. Make sure it works for you before you try to incorporate it with you project. Another video is in the PlayList called "Flash By Request" it is tutorial 12 Inflate A Balloon. Again make sure you can make it work before you use it with your project. Good luck
It's easy tutorial. I did all the same thing and the final result when I test a movie and the movie doesn't stop. I have studied from different tutorials from other people and the result come the same, it doesn't stop. Please help me! I stuck in this problem for a long time.
+King Souvannapha This should be easy to fix.1/ Are you getting any code errors when you test movie? If yes: what is the code number and code message.2/ Do you have a "stop();" on each frame?3/ Are you using "gotoAndStop(X);" on each frame.
+Flashthingy Sorry for disturbing your time. I'm a beginner for flash. Thank you so much for your kindness.This is what I did..I created 6 frames with a different background colour. I created click button and I named my buttons from click1_btn to click6_btn in Instance Name box. Let say I did the same as you did. Anyway, there are errors code when I test movie. Here it is: Scene 1, Layer'Actions', Frame 1, Line 8 1180: Call to a possibly undefined method gotoAndstop. All the same from frame 1 to frame 6. Below are some sample code that I did. stop(); click1_btn.addEventListener (MouseEvent.CLICK, Shoot_1); function Shoot_1 (event:MouseEvent) : void { gotoAndstop(2); } stop(); click6_btn.addEventListener (MouseEvent.CLICK, Shoot_6); function Shoot_6 (event:MouseEvent) : void { gotoAndstop(1); }
I am working on 2 short tutorials. The first shows an easy way to turn part of a picture into a button. The second tutorial shows how to write code to press button and go to another frame using AS2. I will let you know when they are on my youtube channel.
This error code is telling you that the name you used to make and call your function do not match. If you look at the video around the 4 min 15 sec mark to about the 4 min 37 sec mark you will see that the name you used on line 2 has to match the function name called on line 4. Make them the same and this error should go away. I used Shoot_1 on line 2 and line 4. Do all 3 frames. Let me know how you make out. I am guessing you are a student.
There are 2 new tutorials on my youtube channel. They are in Play List "Flash By Request". The first one is "Flash Tutorial Request 16 Turn Part Of Picture Into A Button" and the Second one is " Flash Tutorial Request 17 Click On Part Of Picture And Go To Another Frame". Good Luck. Let me know if you need help.
+Lord Clovej "Shoot" is a name I selected for the function. Each eventlistener needs to call up a function. The function must be given a name. I selected "Shoot".
The code will not work if the function has no name. Action Script 3 (AS3) uses event listeners. They have to have some name attached to them (a function name). Then to allow it to work the function has to be called up by its name. As clear as mud. Are you having problems with this tutorial? If yes I can help you make it work. Let me know.
Flashthingy i clearly understand your tutorial.. just want to know more about as3.. i'm more to as2 and still learning the as3 from your videos. thanks for sharing all of this. i really appreciate it.
This error code usually means you are using Action Script 2. This tutorial was done using AS3. You need to be using Action Script 3. If you are using Flash CS5 program, just change the Script from AS2 to AS3. If you are using Flash 8 you can not use this code. If you are using Flasn 8 let me know and I could make this tutorial using AS2.This would not take very long, a couple of days. Let me know how you make out.
I am currently putting something together for studying. And I would like to be able to go to a random frame when I click a 'next' button. So that I get the questions and stuff in random orders, and don't know the answers by the order of the keyframes, you know? xD So I sorta need something that jumps back and forth on the timeline at random. If there's a code for that I would appreciate having someone share it with me. ♥
This video shows you how to go to a random frame. Use the same techniques to jump to a different frame each time a question is answered. There are 4 videos on my youtube that allow for random question testing. The first one is titled "Flash CS6 Tutorial 14 Random Question Test". There are 3 parts that follow. I suggest you check them out.
This error message usually means that you have not given this symbol (Button1_btn) an instance name or you have an error in that line of code ( frame 1 line 2). On the video from around 5:40 to 6:45 it talks about giving instance names to the 3 buttons. Since I looked at this tut I see that around 4:20 line 2 of frame 1 action script layer I said end the line with a colon; I should have said semicolon. This would not give you the error you have now. Try the instance name first.
+Flashthingy I saw an old video how to add a link to the video and the page apear when the video rich to the piont of the link but he said i can hide this page and no one can see it but he didn't tell the methode he said explore it by yourself can we do it§
+ALG397 I do not understand what you mean. If you open a link the content of the link will appear. That is opening a link. Why would you open a link and not want to see something?
"Shoot_1" is a function name. You need to give a function a name. It can be anything you want to call it. It cannot be a code word like "stop". If you give it a word that is not good the word will turn another color. Anyway if you want to make it work, I can help you. When you test it out do you get any error messages? If yes what is the message and what is the error code number. If you do not want to make it work, thank you for the comment.
When I feel that I have insomnia, I put this video on and listen to. I always fall asleep instantly. Thanks, Flashthingy!
Thank you so much for this video! I tried figuring out for hours how to link my buttons to frames and I knew I was forgetting a step, which was titling my instance label.
Thank you so much! I have been working on a slideshow for 12 hours or more. I got the forward and back buttons to work but the show would only go through once then get stuck. I found the solution through your video! I had to Convert to Keyframes each frames I wanted to jump to on the buttons layer. Then highlight the button and give it another instance name! I did that and adjusted the action-script for each button and it works! Thank you so much. I have read so many tutorials and watched so many videos and yours gave me the solution!
Rachel, there is a video on my youtube channel. It is in playlist "Flash Basics" It is tutorial 11 "Make A Slideshow".
Flashthingy
Dis is n00bish, but helpful.
Finally someone who just got to the point without unnecessary fancy stuff! Just as a tutorial should be! Nice work man, helped alot! :D
Glad it worked for you.
1/ Are you going to have a previous and a next button? Just 2 buttons?
OR
2/ Are you keeping the buttons and code you have now and adding a previous and a next button?
3/ How many frames are you going to have or is this going to change over time?
Please respond to each question by number. Makes it easier for me to help you.
thanks so much, I have headache a week to figure out it via your video
+Danny Dang OK, I Think.
Thank you for putting up this video. It worked the first time i tried it.
Thank you very much! a bit drawn out - but so so so handy. Thank you sir!
very good tutorial really made my life easier following your steps
AdzDatKid Thank you. Good luck.
Thats a very good tutorial, but for people who just want to animate and have a quick play button after their preloader, just create your button, select it, press F9, and type
on (release) {
gotoAndPlay(x);
}
where x is the frame you want it to go to when you release the button.. :D
Thank you for this video
Coz of this My Click On Button Go To Another Frame Problem is now
OVER!!!
:D
Sometimes even if you put the instance name in you can still get that error message. Its like the code does not recognize what you typed in.Try copying the instance name from the properties panel and paste that copied name into your Action Script. This has worked for me more than one time. Good luck.
This should be easy to fix.. 1/ When you test it do you get any error codes/messages in the output panel? If yes ..what are the codes and messages? 2/ Do you have "stop();" codes in each of the three frames of the actions script layer?
Thanks a bunch! This was really helpful, although it took me a while to figure out that I accidentally made the outline the button instead of the fill haha..
You are welcome. Thank you for your comment.
Thank you so much! This video helps me a lot!
Glad you could follow it. Thanks for the comment.
Thanks for the feed back. I am using AS3 in this tutorial. I think what you are saying is OK for AS2. I don't think you can put code on a symbol or use the "on (release)"code in AS3. Thanks again for your comment.
Thank you very much for your help! It means a lot. :D
Thank you for the kind words.You are welcome.
Thanks for putting this tutorial up!
thanks for the video! it helped me out a lot!
You are welcome.
This may work if you do it the proper way.
Are you making a slide presentation?
It is really useful TT !!
Thanks for making this, it help a lot :)
You are welcome.
How many pictures do you want to have?
What frame are they on?
Is each picture a button or just a part of each picture is a button?
Language is no problem.
I dont have all the images donwloaded yet but there will be around 20 of them. I dont understand what you mean by "what frame are they in". they all are blank keyframe with button inside. (there is a part of it which is actual button) - i have been cutting button in each image precisely and than putting it back to place.
thanks broo,perfect tutorial !!!!
+gregorius franshawman Thanks for the comment. You are welcome.
very very professional !
good for you
i'v played abit with the stop ();'s and it works ok now :) tnx for the fast replay tho :)
Thank you for your video, it was clear and brilliant, but I have just a few problem to ask about the action script you typed:
Um... so I know that Shoot_1 is a name, but what exactly was it? I mean, what did you name Shoot_1? When did you name Shoot_1?
Pls help me!!! In super great hurry, thx
Thank you! This was super helpful!
You are welcome.
easily understandable i worked it and liked it satisfied
It took me like 20 to 25 years to get some understanding of writing code. I could not get it at all. Some people get it right away. There are 2 play list on my you tube that may help you. "Flash Basics" and "Flash From Scratch" One of them has basic coding, the other is basic Flash.
Thank you for your comment.
This is a very common mistake to make. There has been a few times that I gave it the instance name and it looked exactly as the name I used in the code but it still never worked. I typed in new code: no luck. I typed in new instance name (again) it worked. Now when I think I have a problem with an instance name I copy it from the PROPERTIES PANEL and paste it into my action script code. That way there I am sure I gave it an instance name and I am sure they are exactly the same.
Its better in As2. Thank you so much!
hey, first great tutorial, tho i have a problem, I did all as u showed, but still when i test it, it keep on moving ( from frame1 to trame2 to frame3 and then again to frame1 and so on and so on) withouth me clicking any buttons. Does any1 know what i might do wrong? or if there is are any setting that i dont have set right?
Ty for your help
Thanks for the feedback.
Hi, may i know what does the "Shoot_1" meant in your actionscript and what can I replace the "Shoot_1" with?
"Shoot_1" is a name I gave to the function. You can use any name you wish as the word used does not turn a different color. If it turns a different color that means you are using a reserved code word.
Thank you
good tutorial!!
thanks u so much flashthingy
Should I write this code?!
Cant I just draw the shapes, convert them to bottons, write on them "pause, play or end" then I could enable them from control 'enable botton'?!
Thanks in advance.. Ur TT is really helpful :)
Great, glad to help.
If I want to jump from FRAME 1 to another frame which is not to
(for Example: I want to jump from frame 1 to 15 or 16 Using button)
What I should do?
You do what is shown in this video. But go to frame 15 or 16, not to frame 1,2 or 3.
useful for my assignment
Thank u so much!
when i was at school my lecturer tought me to make script without typing.. i mean, by using the plus button in the action script tab and choosing actions/functions that we desired..its been 3 years since last time i made a flash project.. i reaaaally wanted to remember that but i cant refresh my mind. sir can you teach that?? how to insert action script without typing.
I think you are talking about "code snippets". They are good for basic coding. They are very limited. There are a few videos on my you tube now. Go to the play list "Flash From Scratch" and "Flash Basics". Look for the tutorials about code snippets.
You use keyframes whenever you want to make a change on a layer.
ɷɷ I Haveee Watchedddd Thisss Moviee Leakedddd Versionnnn Hereeee : - t.co/NdLgwVlw7a
Hey sir, I want to ask, I make 3 scenes, and in the 2nd scene, I make the next and prev button, but at the beginning of the 2nd scene frame when I click prev, this goes to scene 1 and end of scene 2 when click next this goes to the 3rd scene, how can I enable it to not be in another scene, just in the frame in scene 2? i am use AS3.0
But when I clicked a button multiple time, another button stopped working. How to fix that?
You have more than 1 button?
Buttons will allow things to happen through functions. Functions are a place in menory where code is written to allow something to happen. They are not a symbol. You can basically use any name for these functions as long as it is not a reserved word (a word used for action script). If you do it will turn color to remind you. To save time I will often copy and paste action code from one fla. to another. In this case the code I copied had Shoot_1 as the function name. You can change it.
I have a question
I have 2 interactive flash files and in both of the files there is a button, what action script do I use to go from one file to another by clicking the button?
Is this what you want to do? You have two independent fla. files. You want to go from one file to the other by clicking a button. I do not believe that you can write code to go to another fla. or a swf file. Do you know what is means to publish a fla.? Ther may be a way to do this.
Flashthingy nope I dont.
I have to make a little game for school, freddy fish type. you know one drawing you can click on stuff and thing happen en then click on a arrow and go to the second drawing.
I am sure I can help you. How long have you been writing code in Flash? Do you know how to use the drawing tools in Flash? Do you know how to code buttons?
Flashthingy uhmm 1 year only in school, I do the drawing in photoshop and export it to flash. I know how to make animations in buttens when you hold it, put the mouse on it and one script that makes a animation play when you press something.
but I'm not good with codes, the code I need for this is something like: click on the arrow, go to "file 3"
maybe I can sent it to you :P
Send me your e-mail adddress. I will contact you.
Ok. Thank you !
how do i do this
Sketch a map of North America with areas being the three countries (Canada, America, and Mexico). When a country is clicked, that country is enlarged and some info (including the name, population, land area, and a symbolic picture) about that country is displayed. After the enlarged country is displayed for a few seconds, it automatically goes back to the original area on the map.
+Umair Hafeez This is a good idea. I will see what I can do for you.
ty
+Umair Hafeez I have a video no my youtube. It is titled "Flash Tutorial Request 97 Map Of Knowledge". It is in a playlist called "Flash By Request".
+Umair Hafeez I have the second video no my youtube. It is titled "Flash Tutorial Request 97 Map Of Knowledge Part 2". It is in a playlist called "Flash By Request". Let me know how you make out.
Hey sir, I want to ask, I make 3 scenes, and in the 2nd scene, I make the next and prev button, but at the beginning of the 2nd scene frame when I click prev, this goes to scene 1 and end of scene 2 when click next this goes to the 3rd scene, how can I enable it to not be in another scene, just in the frame in scene 2? i am use AS3.0
When you are on the 1st frame of scene 2 and click prev it will go back to scene 1. Is this your problem?
Flashthingy Yes it is true, and if you click next in the 2nd scene at the end of the frame, it goes to scene 3
If you DO NOT want this to happen: you must remove the prev button from frame 1 (only) on scene 2 and remove the next button from the last frame (only)on scene 2.
thank you very much, this works
I dont have all pictures yet. But i think it will be maybe 20. I want it will be a loop. And just some part of pictures is button. And i dont understand wnat you mean "what frame are they on". I have one layer as i pictures and there i have 10 blank keyframe with mine pictures. and then i have second layer wwith button andthen trhirt layer like "as" like you in this video.
Thank you, but I have this for school. And my teacher said that it must be in AS2. I really dont know whats different but we must doing this in AS2. Please can you do some tutorial for me? I have Flash CS5 and i just need click to some part of picture and go to another frame. But you have the same button in one layer, I have different button in different pictures. Do you understand me? I know that i want much. And I apologize for my bad english. Im from czech republic. :D Sory.
that was perfect !!! :) :like:
+Mahdi Mortazavi Thank you for the comment.
I'm trying to look through your videos here....But, do you have a vide on using a button to cycle through a movie clip? I'm making a dressup game, and I need to be able to have the user click on, say, the dress button and it cycles through the dress movie clip. Do you have anything like that? I can't find a whole lot of info.
I have been thinking about making a dressup game but I am not good with the graphics. What you need to do is make the dress a button and when the dress button is pushed, instead of going to a different frame on the main time line , have it go to another frame on a movie clip. Is that something you are able to do? I would like to help you out. Sounds like a good project/challange.
Flashthingy I actually have all the assets made. It's a school project. I've got buttons made, and I've got the movie clips made, but I don't know how to make it work.
Give me a description of what you are trying to do. I will have a look at it and get back to you. I am fairly busy but it sounds interesting.
Flashthingy It's no trouble. :) I appreciate you even responding. I'm swamped with schoolwork myself! Anyway, when you click the button, it should just cycle through the movie clip frames each time it's clicked. I hope that makes sense.
I'll see what I can do for you. I will get back to you.
very good video.... thank u all...
Thank you for the comment.
No. I making playground. Please can you do some tutorial for me? :)
I must have it in the end of this month.
Do you know how to make a script so that when we click We pass several images? In Flash Player
I am not sure what you mean. When you say Flash Player; do you mean SWF format?
Uh I do not know too much, basically it is for a game that uses Flash Player and it is to know if it is possible to realized a script that jumps images I do not know how to explain it
Is it like a slide show? If you can not tell me what you want; I can not help you.
Mine just skip from frame to frame fast like thejack1594 but write me this error. Please help.
Scene=Scene 1, layer=as, frame=1, Line 4 The class or interface 'MouseEvent' could not be loaded.
Scene=Scene 1, layer=as, frame=2, Line 4 The class or interface 'MouseEvent' could not be loaded.
Scene=Scene 1, layer=as, frame=3, Line 4 The class or interface 'MouseEvent' could not be loaded.
Hi, do you have a tutorial where it shows how to make a click, play, stop, show message Flash tutorial? for example, when i click on an image of the globe i've created then the image of a plane flys to the spot i clicked on the globe and the plane stops / disappears and a message pops up. I'm wanting to do this for more than 1 spot on the globe though, for example, UK and NY, so each time i click on a different spot the plane will fly to that spot and a different message will pop up for each county that is clicked on, thanks.
No I don't have such a tutorial. I can give it a try. Not sure if I can do it or not. I will get back to you in a few days and let you know. Could be interesting. I need a few questions answered first.
1/ Is the globe a flat page like a map?
2/ Where does the plane come from?
3/ How long does the pop up message stay?
Flashthingy Thank you. :)
1/Yes it is a flat page,
2/The plane starts from NY because that is the starting point then it will go to another country on the map when you click on it another part of the map.
3/ the message pops up and stays till you click on another country on the map.
Give me a few days. I'll get back to you.
Flashthingy Thank you for your help.
I put a new video on my youtube channel. It is in the playlist of "Request". It is tilted "Flash Tutorial Request 29 Global Destinations". There are 2 more videos to complete your request. May I suggest you use the same names (buttons, cities, etc) as I did. It will make it easier to help you if you have problems.Let me know how you make out.
you are welcome
This works only for the one button. How can I combine with other buttons together in the same scene?
You can make as many buttons as you want, Make sure the added buttons have their own instance name. If you can not do this let me know and I will try to help you.
Flashthingy Thank you. Currently, I can make all the buttons that I want individually, however, once I combined them into one doc, it doesn't work. (It only works for one button, but I can't reach to other buttons once I pressed it.)
Are you getting any error codes? If yes.. what are the code numbers and what does the code say? IF NO ERROR CODES ... tell me where you have these buttons that do not work. Tell me how you get to them.
if I want to click on blank area and get background image how to do that?
Make the background area a movie clip. Make it invisible. When you click on it make it visible.
On my TH-cam Channel there is a PlayList called "Flash From Scratch" there is a tutorial 34 Controlling Movie Clips. I suggest you do this first. Make sure it works for you before you try to incorporate it with you project. Another video is in the PlayList called "Flash By Request" it is tutorial 12 Inflate A Balloon. Again make sure you can make it work before you use it with your project. Good luck
It's easy tutorial. I did all the same thing and the final result when I test a movie and the movie doesn't stop. I have studied from different tutorials from other people and the result come the same, it doesn't stop. Please help me! I stuck in this problem for a long time.
+King Souvannapha This should be easy to fix.1/ Are you getting any code errors when you test movie? If yes: what is the code number and code message.2/ Do you have a "stop();" on each frame?3/ Are you using "gotoAndStop(X);" on each frame.
+Flashthingy Sorry for disturbing your time. I'm a beginner for flash. Thank you so much for your kindness.This is what I did..I created 6 frames with a different background colour. I created click button and I named my buttons from click1_btn to click6_btn in Instance Name box. Let say I did the same as you did. Anyway, there are errors code when I test movie. Here it is: Scene 1, Layer'Actions', Frame 1, Line 8 1180: Call to a possibly undefined method gotoAndstop. All the same from frame 1 to frame 6. Below are some sample code that I did.
stop();
click1_btn.addEventListener (MouseEvent.CLICK, Shoot_1);
function Shoot_1 (event:MouseEvent) : void
{
gotoAndstop(2);
}
stop();
click6_btn.addEventListener (MouseEvent.CLICK, Shoot_6);
function Shoot_6 (event:MouseEvent) : void
{
gotoAndstop(1);
}
+King Souvannapha Flash is very case sensitive. You have "gotoAndstop(X);" The "S" in stop must be upper case capital: "gotoAndStop(X);".
I am working on 2 short tutorials. The first shows an easy way to turn part of a picture into a button. The second tutorial shows how to write code to press button and go to another frame using AS2. I will let you know when they are on my youtube channel.
@Prodigeris Thank for you comment.
This error code is telling you that the name you used to make and call your function do not match. If you look at the video around the 4 min 15 sec mark to about the 4 min 37 sec mark you will see that the name you used on line 2 has to match the function name called on line 4. Make them the same and this error should go away. I used Shoot_1 on line 2 and line 4. Do all 3 frames. Let me know how you make out. I am guessing you are a student.
There are 2 new tutorials on my youtube channel. They are in Play List "Flash By Request". The first one is "Flash Tutorial Request 16 Turn Part Of Picture Into A Button" and the Second one is " Flash Tutorial Request 17 Click On Part Of Picture And Go To Another Frame". Good Luck. Let me know if you need help.
Thanks for comment.
what does the "shoot" mean?
is it same with frame?
+Lord Clovej "Shoot" is a name I selected for the function. Each eventlistener needs to call up a function. The function must be given a name. I selected "Shoot".
what happen if we not give it a name? is it gonna break the code?
The code will not work if the function has no name. Action Script 3 (AS3) uses event listeners. They have to have some name attached to them (a function name). Then to allow it to work the function has to be called up by its name. As clear as mud. Are you having problems with this tutorial? If yes I can help you make it work. Let me know.
Flashthingy
i clearly understand your tutorial.. just want to know more about as3.. i'm more to as2 and still learning the as3 from your videos. thanks for sharing all of this. i really appreciate it.
You are welcome. There is a play list on my you tube channel. It is called "Flash Basics". There are; I think, 33 tutorials about AS3. Check them out.
Do you want tutorial in AS3 or AS2?
I want to start on this tonight.
This error code usually means you are using Action Script 2. This tutorial was done using AS3. You need to be using Action Script 3. If you are using Flash CS5 program, just change the Script from AS2 to AS3. If you are using Flash 8 you can not use this code. If you are using Flasn 8 let me know and I could make this tutorial using AS2.This would not take very long, a couple of days. Let me know how you make out.
I am currently putting something together for studying. And I would like to be able to go to a random frame when I click a 'next' button. So that I get the questions and stuff in random orders, and don't know the answers by the order of the keyframes, you know? xD So I sorta need something that jumps back and forth on the timeline at random. If there's a code for that I would appreciate having someone share it with me. ♥
This video shows you how to go to a random frame. Use the same techniques to jump to a different frame each time a question is answered.
There are 4 videos on my youtube that allow for random question testing. The first one is titled "Flash CS6 Tutorial 14 Random Question Test". There are 3 parts that follow. I suggest you check them out.
Allright, Thanks! :D
This error message usually means that you have not given this symbol (Button1_btn) an instance name or you have an error in that line of code ( frame 1 line 2). On the video from around 5:40 to 6:45 it talks about giving instance names to the 3 buttons.
Since I looked at this tut I see that around 4:20 line 2 of frame 1 action script layer I said end the line with a colon; I should have said semicolon. This would not give you the error you have now. Try the instance name first.
Now i try got this for as3 and it wrote me this error:
Scene1, Layer"Layer 3", Frame 2, Line 4 1021: Duplicate function definition.
thank you
i wana ask you can we open link(new page) put it doesn't appear
+ALG397 I need more information.
+Flashthingy
I saw an old video how to add a link to the video and the page apear when the video rich to the piont of the link but he said i can hide this page and no one can see it but he didn't tell the methode
he said explore it by yourself
can we do it§
+ALG397 I do not understand what you mean. If you open a link the content of the link will appear. That is opening a link. Why would you open a link and not want to see something?
like a popup pages to earn from it
i asked this quetion to confirme if it is true or not
+ALG397 You will have to give me specific information on what you want. You have to tell me everything before I can start this request.
at least 480p. quality would be nice
But nevertheless thank You so much 4 great work
+Andy Lu Thank you for the comment.
you can do it by using the F6 button...............a easier way
sorry. code doesn't work. the shoot_ thing
"Shoot_1" is a function name. You need to give a function a name. It can be anything you want to call it. It cannot be a code word like "stop". If you give it a word that is not good the word will turn another color. Anyway if you want to make it work, I can help you. When you test it out do you get any error messages? If yes what is the message and what is the error code number. If you do not want to make it work, thank you for the comment.
Thanks, but I already figured it out. I was using a more recent Flash version and the actual code for shoot_1 was shoot1
You are welcome. Good luck.
I will have something on youtube today or tomorrow. I will get back to you.
you have made 51.66 $dollars from this?!
It doesn't even follow the command stop
If you want to get this to work let me know. I may be able to help you. Thanks for the comment.
I just copied the script from one of the comments and it worked. Turns out I wrote something wrong the first try, so nevermind. Thanks!
please send me more videos
Vivek Kumar There are 341 videos on my you tube channel "Flashthingy". I am sure you will find something interesting.
Thank you
Vivek Kumar You are welcome.
stop();
Button1_btn.addEventListener(MouseEvent.CLICK, Shoot_1);
function Shoot_1(event:MouseEvent):void
{
gotoAndPlay(45);
}
Thank you very much. It helps a lot :).