Two MCs To Play On One Click?
Does anyone know how to make two movie clips play on the click of one button? When I place two gotoAndPlay actions, the second one plays only when you click the button the second time.
I would like them to play simultaneously. My book says gotoAndPlay can only reference one MC per block. Is there any way around this?
on (release) { _level0.nav_holder.gotoAndPlay ("nav_expand"); _level0.main_holder.gotoAndPlay("intro_collapse"); }
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-27-2002, 11:41 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[MX04] Click A Button Once To Play, Then Again To Play In Reverse
Alright, so I've got this MC that is set up to play 2 other Movie clips upon being clicked, and what I would like to have happen is; upon clicking this MC again, these 2 other movie clips will being playing in reverse, and if clicked again will play forward, and so on ad infinitum.
I've attempted to do this by having this code in the first frame of the "button" MC, in a separate actions layer.
PHP Code:
stop();
this.onRelease = function() {
gotoAndPlay(2);
this._parent.wing1.play();
this._parent.wing2.play();
};
And this code on the second frame.
PHP Code:
stop();
this.onRelease = function() {
gotoAndPlay(1);
this._parent.wing1.prevFrame();
this._parent.wing2.prevFrame();
};
As of right now, this will simply play the two movie clips upon clicking, stop them and reverse them a single frame, when clicked a second time, then begin playing them again from that point if clicked a third time.
Once the two MCs finish reach their final frames, the button does nothing.
Any help would be appreciated.
Play Movie When Play Button Is Click.
Hi all,
I am a newbie, and I did use the tutorial on how to create a video with FLV and it works beatiful. There is something I can not figuere out yet.
How do I make the movie not to start playing until I click the play button?
Any questions let me know and thank you in advance for your help.
mperez6109
On Click, Play AVI
I am creating a Flash exe to play on a CD. I've got a button created that I'd like to play an AVI - externally. So when someone clicks on the button, Windows Media Player launches and plays the video. How do I set up the action on the Mouse Event? Thanks in advance.
Click To Play?
I originally posted this in the Flash 8 forum, but it seems more appropriate here.
I'm building a flash game and I have my "click to play again" movie clip fade in at the end using its alpha channel. This "click to play" movie clip is embedded within another movie clip, entitled "type". "type" is in the main movie clip. Also in the main movie clip is the code:
type.play_again.onRelease = function()
{
type.play_again._visible = false;
carpet_type._visible = false;
ebay_type._visible = false;
gershman_type._visible = false;
new_mom_type._visible = false;
pez_type._visible = false;
logo_type._visible = false;
titleScreen._visible = false;
setup();
}
This should make all of the game elements invisible again. And then run setup() to start the game once again. This identical code works when it is run the first time around to start the game.
Unfortunately, the "play_again" movie clip appears to be unclickable. I'm thoroughly frustrated and cannot figure out what the problem is. I would appreciate any and all help. Thanks.
[CS2] Click To Play
I need to know how to make a movie clip play when i click on it in my test video. I have the frames set-up, i just need to know the code and where to enter it.
Click To Play Flv
I have embedded an flv into a page. I do not want to use the movie controller. I just want the users to click the video to play. How can I do this?
Click To Play On PCs?
I'm designing a website on my MAC using and I've noticed that when I visit the site on PCs via Internet Explorer the SWF movie has to be clicked before it becomes interactive. I use Safari and that doesn't seem to be necessary but it is with IE. Is there a way around this? Anyone? Thanks in advance.
Swf Need Click To Play?
Hey guys,
I'm new here and i will be glad if any of you can help me fix this lil problem
I'm currently working on my site in flash but for some reason i need to click on swf to see it playing... here is the link .. www.ervald.com
thanks again
Ervald K
How To Play On Click?
First and foremost, hi to everyone .
So I got my animation ready, now I just want to export it as Flash movie, and make it play on click. How do I do this?
Sorry for the noob question, but I'm still on the learning proces .
Thanks in advanced.
Click A Button - Play An MC - How?
I have a button which I want to play a movieclip when clicked. However, I dont want to use a goto action, but instead play the specified MC on the same frame of the main timeline.
Anyone???? Im sure its V Easy
Click, Then Jump, But First Play...help
I'm a bit stuck on something here.
Scenario: I've got 2 scenes; Scene 1 has 10 icons on it, each leading to different frame labels in Scene 2.
What I want to have happen: Click on any of the 10 icons in scene 1, FINISH playing the rest of scene 1 (which is a transition type animation between the 2 scenes), and when that's done, THEN jump to frame 30 in scene 2. I can do one OR the other, not both.
The action is the same for all 10 icons, but each icon naturally leads to a different frame (or label) on scene2.
I'm thinking it would have to be some kind of loop to delay the gotoandplay action long enough for the rest of scene 1 to finish. Otherwise I'm stuck creating 10 transition animations for each icon.
Thanks
Play Backwards On Btn Click
-=Explanation=-
The site I am making is for my church. At first there's a little cross, then it expands to where the center of it fills the screen. There are links on the four sides of it. You click a link and the cross slides to one of the 4 sides. I need a back button to slide it back the same way it came, it would make it needlessly complicated to have a back animation for each of the 4 sides. Is it possible to have the timeline play backwards for like 20 frames then stop? How? plz!
Play Movieclip Where You Click
Hi,
Flash 5.
I have an MC of two frames only which is required to play in the position where the mouse is clicked.
I know how to use the x, y, coords but not how to trigger the clip in the given position.
Can anyone help?
AJJA17
P.S.
I recently found a thread on this site and wrote it down so I could come back to it later. However, when I type in the title "playing a mc wherever you click" (that is how it is written) the search engine rejects it because a word is less than three letters. I have scoured the site but cannot find it again.
How To Play My MC When You Click In Its Text Box
well
I have a MovieClip including a text box, in Flash MX. the first frame has "stop" action, and My question is, how do I make my MC plays and goes to frame 2 when the user clicks in the field to activte it...
Thanks.
aria
Play Movieclip On Click
How do you make it so that by clicking on a movieclip or button it activates a short animation? For example, during a cartoon you click on an object and something moves across the screen and no matter how many times you click, it always does that. Also, how would you make it for the animation to be terminated on another click? Thank You
Click And Play Sounds
Hi everybody!
How do I get flash to play a specific sound when I click on a button?
One Click... Two Movies Play?
Here's a dumb one:
When you roll over my button, the word "glows in" .. when you roll out, it "glows out"
on (rollOver) {
this.gotoAndPlay("glow");
}
on (rollOut) {
this.gotoAndPlay("glowOff");
------
I also want some little stars to come flying out. But not on the same timeline as my "glow" ....
Question: Can the same rollover action play two little movies at once?
Click To Play .swf File?
hey guys, Im really new to flash and was directed here by a friend to learn. I would appreciate any help with this small question...
I have a .wmv file that I want to convert to .swf. Then Im trying to put that .swf movie on a page in a website, but I dont want it to start until it is clicked.
Im working with Flash 8. If anyone can help ASAP I would really appreciate it. My yahoo IM is call_me_the_kid_2 and AIM is KidCJ3318.
Click To Play Rather Than Autoplay
Hi!
I've just downloaded Flash CS3 and I love how they will provide you with a player automatically when you import a video. I've exported it into Dreamweaver and my problem is even though I have autoplay and loop unchecked it still plays automatically when it loads. I'd like it to just show the first frame until the user presses the play button. Can anyone help me?
Right Click > Play .. Goes To Next Frame?
I have a 3-frame flash script. The first page contains the actionscript. It then either does gotoAndStop for frame 2 or 3 depending on some settings.
However, if it sends me to frame 2 and I right click and choose "play", it goes to frame 3. I am 100% new to flash and understand that different "pages" or "screens" are stored in different keyframes (or do I make them just normal frames?). I will have some pages require a login, and if my users can just click play a few times to bypass it... well.. I need to fix that loophole.
I have stop(); at the top of each frame. I'm sure this is simple?
How To Click And Play FLV From A List?
Sorry for being new to AS3.0, i have a list of like 3 flv to choose from and play on the stage once clicked. My idea was to click on one flv link and i will goto frame 2, click on another one and i will goto frame3.
I can do it in AS 2.0 but not in AS 3.0...heres my script
function frame2(event:MouseEvent):void
{
this.gotoAndStop(2);}
this.movie02.addEventListener(MouseEvent.CLICK,fra me2);
function frame3(event:MouseEvent):void
{
this.gotoAndStop(3);
}
this.movie03.addEventListener(MouseEvent.CLICK,fra me3);
Click And Play Animation
Ok so this isn't like most threads with a title like this, cuz I have looked around a bit and I haven't found anything relevant to my problem.
I'm just getting started in flash. I'm using actions script 2.0. I know it's outdated at this point, but I'm creating Wii games as part of my computer science class, now here's where the trouble comes in.
Currently I'm working on a basic FPS like described in the Wii flash guide. That's not the important part...
Completeing this game is no problem at all, but I now want to be able to take this a bit further by adding in an actual shooting animation whenever the mouse is clicked. At this point all that happens in that when an enemy is clicked it will explode. I want to create a separate animation (like a laser fireing) when the mouse is clicked regarless of position.
I'll probably take this even further later, but I'll be content with this for now.
Thanks in advance for all your help!
Mouse Click - Play Mc
Hi All
Can anybody help me? I basically have a mc in my library that I want to appear on the stage, multiple times wherever the mouse is clicked. I assume it will take the x & y co-ordinates of the mouse, duplicate the mc and place it where the mouse is clicked.
I am just not sure how to code this correctly.
Many thanks in advance.
Mouse Click To Play A MC?
Here is the start of my site. http://www.iwired.us/bens/
I'm using kirupa's button slider, but would like to know how to have it play a new movie clip for each button in the space provided.
Thanks,
Ben
Click To Play Video
I'm trying to play an eternal .FLV file on a web page through .swf -- all is fine -- but can somebody point me in the right direction as to how I can make it appear without automatically playing and have it say "Click here to play" or something like how YouTube, etc have? I don't want it to begin playing automatically -- instead I want it to just appear with the option to play.
Thanks in advance.
Mouse Click To Play A MC?
Here is the start of my site. http://www.iwired.us/bens/
I'm using kirupa's button slider, but would like to know how to have it play a new movie clip for each button in the space provided.
Thanks,
Ben
Carousel Click And Play
HI.
I REALY NEED A FAST HELP. its for my college project.
IM NOT A GREAT ACTION SCRIPT GIRL,
I REALY NEED YOU HELPING ME AS FAST AS U CAN.
its about the carousel,
ive animated a few characters as movie clips.
i dont need anything to be duplicated.
just put each movie clip in his place. i made 5 movie clips...
i want to press on the movie clip and get to a new swf...
please please please if u know how to do so send me an FLA file and components and if u can also an easy explanation.....
cause i suck at this....and realy need the carousel...
i swear that when ill finish this ill send you all great animations im making!
thank you all....javascript:emoticon(':oops:')
Embarassed
http://tomasznowik.com/en/fu.htm :D
iexample to what i need is here,shortly after the karate guy walks...
xxx
thanx
shy
israel
heres my messenger to anyone who can help!!
mailto:shaycarmel@hotmail.com
Click To Play Flash
i'm stuck on how to make flash clickable, i'd like it not to play initially, but only if the user clicks on it.
i did it before with imported mpg instead of tweened animation that i'm trying to use now. so here's example of it:
Right Click & Goto And Play -pleeeeeze Help
Hi there
Previously i got this code to do rightclick action:
onClipEvent (enterFrame) {
if (Key.isDown(2)) {
trace("right mouseclick captured!");
doMyFunction();
}
}
from DavedT - thanks Daved
but everything works with the "trace" but if i try to just move to a new frame, I get the movies right click dropdown active with zoom in - play - rewind etc.
How do i get the movie not to show this but rather just go to the next frame.
I have tried
onClipEvent (enterFrame) {
if (Key.isDown(2)) {
gotoAndPlay (2);
}
}
but then i end up with the rightclick menu and no movement to the next frame.
Is this why i have to take the focus off the movie and how do you focus a movie?
thanks for any help in advance.
Play Soun On Mouse Click ?
HOw can i play a sound everytime u click a mouse??? it's for a shooting game...and i want to play a gun sound everytime u click PlzPlzPlzPlzPlzPlzPlzPlzPlzPlzPlzPlzPlzPlz
thx
Stop Repeat Play On Click
Hi everybody,
trying to find out a way to be able to click on link(load external movie into target_ and go back without reloading the previous movies(multiple loaded movies) again.
I would appreciate any suggestions.
Thanks,
Andy
Play Movie Clip Wherever You Click?
I'm a new Flash MX user on the Mac and I have been trying to create an animation where when I click somewhere in the screen a movie clip then plays in that spot. It's based on a sample file that came with Flash 4 called ripples. I've tried dissecting the file, but I have had no luck. Any ideas as to how to achieve this affect?
Play Movie On Mouse Click
hi people,
I am working on my final year university project and i need some help. I have got a sliding menu, which is opened using a little tab at the bottom of the screen, but to close it I want the user to simply click away, anywhere on the screen, and the menu will slide back and out of view (apart from the small tab which is always visible). So basically i need to play a movie clip by clicking the mouse anywhere on the screen - is this possible?
I have tried onClipEvent(mouseDown) and that doesnt work because that actionscript has to be assigned to the tab (a movie clip) and i want it to effectively be assigned to anywhere on the screen.
I hope this makes sense and i hope someone can help me.
Cheers,
Spag
Play Movie On Mouse Click
hi people,
I am working on my final year university project and i need some help. I have got a sliding menu, which is opened using a little tab at the bottom of the screen, but to close it I want the user to simply click away, anywhere on the screen, and the menu will slide back and out of view (apart from the small tab which is always visible). So basically i need to play a movie clip by clicking the mouse anywhere on the screen - is this possible?
I have tried onClipEvent(mouseDown) and that doesnt work because that actionscript has to be assigned to the tab (a movie clip) and i want it to effectively be assigned to anywhere on the screen.
I hope this makes sense and i hope someone can help me.
Cheers,
Spag
Is It Possible To Click A Mc And Only Make It Play 20 Frames?
I have a little animation. the whole animation is about 500 frames, it a little turtle and he moves lest to right and back again, i want him in his sahell so when you clikc him he moves a little, but only about 20 frames, is this possible?
Thanks in advance
Matt
Play Sound On Button Click
Hi im trying to get a sound clip of about 1 minute to play when you click a button.
is there some basic action script for this? and does the code go on the button or on the main timeline?
thanks!
[CS3] Click JPG, Play Hidden SWF Sound - HOW?
Hello. I've Googled this but was only able to come up with tutorials for really old versions of Flash, and some of the things mentioned in the tutorial don't match up with CS3.
Anyway, all I want to do is have a user click a JPG or transparent PNG file and play a sound. The easiest way to do this and ensure browser compatibility is to do it via Flash and javascript. I would like to have a way to embed multiple sounds in the same SWF file, so depending which image the user clicks it plays a different sound. Can this be done? I know Yahoo does something like this on their web site. If you click the "!" mark on Yahoo.com the guy yodels. That's what I would like to accomplish.
Does anyone know of a step by step tutorial for Flash CS3 that covers this? I'm a total noob with Flash and don't even know where to begin. Thanks very much for your help.
Stopping The Play On Click Default
I've been workin on a file that uses 4 nav buttons each that onrelease -> gotoandplay a frame with content on it. When the frame is loaded and finishes playing, I've designated a stop action that keeps the file from continuing until the user has clicked another nav button - enabling the next gotoandplay to whatever frame it's corresponding content is.
The problem I'm having is when a user clicks anywhere in the clip - not on the nav buttons - it automatically begins playing again - and continues to until it reaches the next frame with a stop action in it.
Is there any way to prevent this?
Thanks in advance,
- Will
Click Jpeg To Play Video
I am unfamiliar with Flash, but would like to have a jpeg which when clicked, is replaced by a video which starts to play. Visit http://www.goodbarry.com to see an example. This should just be a couple lines of actionscript and well placed frames. Any help is greatly appreciated. Thank you.
How To Stop The Right Click Play Function
Hello there,
I am making a game online using flash and there are two sections, a player section, and the teacher section with private information. Well, if the player right clicks and presses play, it goes to the next frame, which is the teacher section. How do I void out this problem? Any help would be awesome! Thanks
|