Help Pls Making A Button In A Movie Clip Goto Another Movie Clip (pic)
Hi guys and girls, i need ya help. What action script would i need to make a button in one movie clip goto and play a frame in another movie clip. I've added a pic to help. Im not very good at flash but i've been trying my usual codes but it dont work.. Cheers
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-30-2007, 08:46 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Making A Movie Clip Goto A Certain Frame
Making a movieclip move to a frame label.
Ok, I have my main movie, with a movieclip on layer2. The movieclip is named slideclip.
In slideclip I have two frame labels (open, and slide).
When I click on a button in scene1 ( My main movie) I want Movieclip Slide to move to frame label "slide".
How can I make a movie clip move to a certain frame?
I would appreciate all your help.
Button With Movie Clip Goto New Scene
Hello,
I've been racking my brain trying to solve this one.
I'm using Flash 5.
I have a Button which contains a movie clip, the movie clip shows an image
that expands on rollover and contracts on rollout.
I'm using frame labels to get the expanding and contracting to work
correctly. When I place the movie clip in the button and place the button on
stage the movie will only show the rollover portion of the movie.
The actions for the Movie do not work the movie is just playing the first
portion of itself, the rollover expansion portion.
Is there a way to make both the rollover and rollout actions of the movie
clip work, while the movie clip is part of a button?
And when the viewer clicks on the button the viewer goies to ANOTHER SCENE.
Thanks,
Monte
Button In Movie Clip Goto Different Scene
I am working on a site now and I am stuck on the script i need to use to make a button I have placed in a movie clip so on release it will goto a different scene in my file...
please help, thanks..
Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.
in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)
I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a
I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)
thnx
A Button That Plays A Movie Clip And Goto Frame
Hi all.
Ok im a newbie when it comes to Flash, but im learning and thats the main thing! Anyway im trying to build a site and would like some help with a transition im trying to make. What im trying to do is play a movie clip between frames. So say we have two menus, when you are on menu 1 and you click the button for menu 2, a short movie clip plays and then you stop on menu 2. I realise I can do this by putting the movie clip on the main scene timeline, but is there anyway i can put it on the button? I think the action script would be something along the lines of "On release play MovieClip and goto frame X"
As i said i want the movie to play as an almost filmic transition between menus, with a fade up and then out (Have got that bit sussed using the alpha controls)
Im pretty rubbish at scripting so far, so if this is easy and im just being silly then i apologise!
Thanks if you do relpy
Button Inside Of A Movie Clip That Goto's A Frame Label
heh, ok i have (as the title implies)
a button that is inside of a movie clip, and an action connected to te button that is suppose to "go to and play" the frame label (which is on the base/main) scene NOT inside of the movie clip. make sense?
what i have is
on (release) {
gotoAndPlay ("base", "music");
}
on the button.
the names are correct
--------
i can do the exact same thing OUTSIDE of the movie clip (put a button on the main stage and have it goto a label) but it just closes the movie clip when i put the button into the movie clip and try it.
thanks in advance for the help!
Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.
Making A Button Go To Somewhere In A Movie Clip...
...as opposed to somewhere in the "scene" timeline?
I just started working with movie clips.
I made a movie clip, and i want to make a button that goes to a place in the movie clip timeline as opposed to the scene timeline.
Please be gentle, i am fairly new to Flash, and very new to working with movie clips.
Thanks for any help and/or patience!
Making A Movie Clip Stop When Colliding With Another Movie Clip....
OK I have a stage are which is surrounded by walls on all four sides, (wall_left , wall_right , wall_top , and wall_bottom.) Also, I have a character which is named "Omekk" (Some fag name I made up.) I can control 'omekk' with the keys, but I don't quite understand the hitTest function. I am using flash MX. On the left wall I put the code
Code:
onClipEvent (load) {
Omekk.hitTest(wall_left);
}
and the top wall I put:
Code:
onClipEvent (load) {
Omekk.hitTest(wall_top);
}
...and so on and so forth. The problem is, when I test the movie, the character STILL goes through the wall... What's up with that? Are there more actions that I have to put on the wall? Actions on Omekk himself? Error in the syntax? What is it??
If someone helps, I'd be SOOOOO happy. I feel like such a moron because I can NEVER understand this. I'm about to just give up flash if I don't get it... I suck and I can never get the hang of it.
Sorry,
Josh
Making Another Movie Clip Close From Inside A Movie Clip
I want to make another movie clip close that is open when this other movie clip comes up. I put on the first frame of this actionscript:
_root.detail.gotoAndPlay(19);
This works, but only if the other clip is already open. If not it just shows the other clip closing even though it isn't open. Is there a way to do something like...
If _root.detail is on frame 8 then _root.detail.gotoAndPlay(19);
Obviously thats not the action script but it's what im trying to express.
"detail" is the movie clip property name of the clip I'm trying to close.
Thanks for your help!
Making A Button Manipulate A Movie Clip.
Hi guys, im making a game, and I need it so that when I push a button it plays the next frame of my wheel movie clip so that the wheel becomes bigger.
Any ideas?
Making A Button Play A Movie Clip
How do you make a button go-to-and-play a certain frame on a movie clip on rollover, and rollout?
I need the actionscript.. thanks.
Making A Movie Clip Go T R L B On Button Presses?
Hi i want a moveclip to go up down left and right on the press of the keyboard keys whats the simples way of doing this using correct actionscript 2.0 practices?
The way i know is to do this for each direction:
var ballListener2:Object = new Object();
var ballListener:Object = new Object();
ballListener.onKeyDown = function() {
clearInterval(nInterval);
if (Key.getCode() == Key.RIGHT) {
nInterval = setInterval(ani, 1);
}
updateAfterEvent();
};
ballListener2.onKeyUp = function() {
if (Key.getCode() == Key.RIGHT) {
clearInterval(nInterval);
}
};
Key.addListener(ballListener2);
Key.addListener(ballListener);
function ani():Void {
if (ball._x<=0) {
clearInterval(nInterval);
} else {
ball._x -= 10;
updateAfterEvent();
}
}
but isnt there a much simpler way than this for 4 keyPresses such as recyleing setinterval etc
[F8] Making A Movie Clip Into A Button Or Link?
I have a movie clip that's used to show an email address. The reason I made it a movie clip was so that I could animate via actionscript.
The problem I'm having is a way to be able to click on that mc to make the regular mailto: feature work. Pretty much I want to make it a link. Any suggestions?
Making A Movie Clip That Acts As A Button
I am having a problem making a Movie clip that acts as if it was a button. Can someone please describe how to make the 4 different button states on a MC??
Thanx in advance!
Making A Movie Clip Not Behave Like A Button?
Hi i would like to make a movie clip not act like a button i.e i don't want the finger to come up during roll over can anyone help, i have the following script on the movie clip so that the sprite animates and reverses on roll over
stop ();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
Making A Movie Clip That Acts As A Button
I am having a problem making a Movie clip that acts as if it was a button. Can someone please describe how to make the 4 different button states on a MC??
Thanx in advance!
Making Button Start Movie Clip
This is a pretty straightforward question: I have a button to which I'd like to assign an action which starts a movie clip. I can get as far as moving the playhead to the frame which contains the movie clip...what next?
Thanks,
**Making A Button Control More Than One Movie Clip On Different Occasions?**
Okay... here's the deal, as best as I can explain it.
I am doing an interactive portfolio for a class. I am using movie clips to display each piece. The movie clip is set up as follows:
1. A stop on frame one.
2. Five frames of fade in.
3. Five frames of still.
4. Frame 11 has "gotoAndPlay(6)" to cause the still image to loop.
5. Frames 12-15 the image fades out and loops back to the stop on one.
So I have a series of movie clips set up in this same way. Each with thier own instance name. While each piece is up, a back button appears. On the back button, I have the following:
code:
on (release) {
if (_root.movieclipa._currentframe<=11) {
tellTarget (_root.movieclipa) {
gotoAndPlay(12) {
// etc etc....
Which should then play to the end and put the movie clip back to stop, and therefore invisible.
This works great with one image- exactly how I want it to go. But when I put the second images' script on the button- ex:
code:
on (release) {
if (_root.movieclipa._currentframe<=11) {
tellTarget (_root.movieclipa) {
gotoAndPlay(12) {
}
}
}
}
on (release) {
if (_root.movieclipb._currentframe<=11) {
tellTarget (_root.movieclipb) {
gotoAndPlay(12) {
// etc. etc....
Now, when I click the "back" button, it shows BOTH pieces fading out on top of each other. I was under the impression that the "if" statement would mean that the direction would only be carried out if that clip was currently being played.
I've checked and double checked, and the code checks and doesn't report any errors.
I'm sure this is something simple and stupid, but the resources on this site are huge, and I haven't found anything that's handling this exactly how I'm trying to handle it. I am relatively new to Flash.
Can anyone help me out with this one?? Thanks in advance!
Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:
Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.
__________________________________________
this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________
- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.
- the movie clips are within the same library, not on the timeline or external library.
- Is this possible?
Making A Button Rollover Change A Movie Clip's Frame
Hi again everyone,
I knew how to do this in AS2 but now I am having problems with making a button on the stage goto a frame in a movie clip on the stage.
I've attached a sample of my code below, hopefully you'll see the error and be able to point it out to me?
I have a movie clip on the stage that has different information in different frames. I want to make it so that when someone rolls over the button, the movie clip fades in and goes to the correct frame to display the information.
With this setup the way it is below, I keep getting "Warning: 3590: void used where a Boolean value was expected. The expression will be type coerced to Boolean.
I know where the problem is happening, "function XXX(event:MouseEvent):void {navigateToURL(XXXweb)}"
How can I write this differently and eliminate this problem?
Thanks,
Jeremiah
Attach Code
//Button Rollover effects
function buttonGrow(event:MouseEvent):void
{
TweenLite.to(event.target, .2, {scaleX:2, scaleY:2, tint:0x9933CC});
TweenLite.to(Info_mc, .5, {alpha:1});
}
function buttonShrink(event:MouseEvent):void
{
TweenLite.to(event.target, .2, {scaleX:1, scaleY:1, tint:0xff6600});
TweenLite.to(Info_mc, .5, {alpha:0});
}
//Links
var XXXweb:URLRequest = new URLRequest("http://www.adobe.com");
//Call to Links
function XXX(event:MouseEvent):void
{
navigateToURL(XXXweb)
}
//Button actions
XXX_mc.addEventListener(MouseEvent.MOUSE_OVER, buttonGrow, Info_mc.gotoAndStop(1));
XXX_mc.addEventListener(MouseEvent.MOUSE_OUT, buttonShrink, Info_mc.gotoAndStop(0));
XXX_mc.addEventListener(MouseEvent.CLICK, XXX);
Edited: 01/16/2008 at 02:21:30 PM by kaoss8000
Making Movie Clip Also Clickable Button Script Problem
Hi, I have made a movie clip on one layer then a button on another layer. I have the button covering the entire stage so that people can click the animated movie clip but I am having problems with my action script as it is telling me it's incorrect. Can anyone tell me what i am doing wrong?
Attach Code
logo_btn.addEventListener(Mouseevent.CLICK, buttonClickHandler);
function buttonClickHandler (event:MouseEvent):void {
NavigateToURL(new URLREQUEST("http://www.zudaswebdesigns.com"));
}
Making A Button Within A Movie Clip Load A Differant Scene:
Yeah, I imagine this has been explained millions and millions + 2.6 times before, however, I have done my searching and I can't find my solution that I need in paticular and I don't have all week, let alone all day to find the answer (Since I have been trying to figure this out for the last few days)
So with that said:
I have a rollover movie clip on my company's web site I am working on. Everything is working as acording to plan. However, I have a movie clip within a movie clip, and that movie clip is the one with the buttons. Now when I go into their action scripts I do the basic
on (release) {
gotoAndPlay(285);
}
Which then plays a fancy little transition and then on the last frame it does this:
gotoAndPlay("Contact", 1); "
Which is Scene "Contact" and Frame "1" for those who are also wondering.
However since this is inside a movie clip, which is in turn, in another movie clip...... it does not go to the scene and play frame 1, but rather reloads the movie clip again.
I imagine I have to add another script in there to look outside of the movie clip or something, however I can not find this anywhere.
Like I said..... it's probably an easy thing to do, but I just got hit by a bus today and I just can think properly....... uh..... yeah that's it.
Thanks in advance.
(FMX04) Making A Pop-up Window Button Inside A Movie Clip
Hello all.
I may very well be pushing my luck here but...
I have, with the greatly apprectiated help of ieatcotton, created a scene with randomly moving movie clips using:
onClipEvent (load) {
//data you may want to change
xstart = 0;
ystart = 125;
width = 600;
height = 220;
speed = Math.round(Math.random()*2)+1;
//initial positions
x = 567.8;
y = 316.6;
x_new = (Math.random()*width)+xstart;
y_new = (Math.random()*height)+ystart;
}
onClipEvent (enterFrame) {
//x movement
if (x_new>this._x) {
sign_x = 1;
} else {
sign_x = -1;
}
dx = Math.abs(x_new-this._x);
if ((dx>speed) || (dx<-speed)) {
this._x += sign_x*speed;
} else {
x_new = (Math.random()*width)+xstart;
}
//y movement
if (y_new>this._y) {
sign_y = 1;
} else {
sign_y = -1;
}
dy = Math.abs(y_new-this._y);
if ((dy>speed) || (dy<-speed)) {
this._y += sign_y*speed;
} else {
y_new = (Math.random()*height)+ystart;
}
}
Inside these movie clips I have a button that I would like to make open a pop-up window. I have tried using the code from tutorial http://www.kirupa.com/developer/mx/centered_popup.htm
but am having no joy at all.
Can this be done? And if so, if anyone could help me out I would be so grateful. I am definitely out of my depth here!
Thank you!
aubtin
Making Button In Movie Clip Symbol Reference Main Scene
I set up a flash movie with a scroll pane moving a movie clip. When I place instances of buttons in that movie clip and apply actions to them, they are not working.
The main movie has only one scene, so my actions for the buttons in the movie clip contained in the scroll pane have the following properties: gotoandplay, scene 1, frame label, frame label in scene 1 I'd like to jump to.
Is there a reason, the actions applied to those buttons won't take me to the corresponding frame label in my main movie?
Making A Rewind Button 1 Level Down From The Root Work For A Movie Clip
Hi there. I'm a relative newcomer to the wonderful world of actionscripting, and I can't seem to find an answer to this problem by searching for it on the Web. I have a movie that contains two clips: one is a controller movie clip, "reverse", located on the first level, that has 3 frames - the actions stop(); on the first, _root["artworks"].prevFrame(); on the second, and gotoAndPlay(2); on the third. What this is intended to do is play the movie clip "artworks" backwards until a stop(); command is reached in that clip. The clip "artworks" is also located on the first level, and has a button that, when pressed, says: on (release) {_root["reverse"].gotoAndPlay(2); } - this is intended to cause the clip "reverse" to go to the second frame, which should make the clip "artworks" play in reverse. Of course, this isn't working out like I expected it to - it isn't working at all. When the button is pressed, nothing happens. I hope someone out there can let me know what I'm doing wrong, and hopefully what I can do to fix things. Thanks in advance.
Problems Making Button Make Movie Clip Move Frame
Hi i hope someone can help. I have a button on my stage which makes a noise when you press it. I would also like each press of the button to move a movie clip to its next frame. In total the movie clip has four frames.
I have tried lots of ways but can;t get it to work. Can't post the code here as do not have flash installed on this computer. Basically what I am doing is dragging the movieclip onto the stage. The first movieclip frame is blank and putting a stop action.
On the button i am saying, on release ...
clip.nextframe;
but nothing is happening. should I not have the movie clip already on the stage or is there more I should do. please help?
stockdill
Problems Making Button Make Movie Clip Move Frame
Hi i hope someone can help. I have a button on my stage which makes a noise when you press it. I would also like each press of the button to move a movie clip to its next frame. In total the movie clip has four frames.
I have tried lots of ways but can;t get it to work. Can't post the code here as do not have flash installed on this computer. Basically what I am doing is dragging the movieclip onto the stage. The first movieclip frame is blank and putting a stop action.
On the button i am saying, on release ...
clip.nextframe;
but nothing is happening. should I not have the movie clip already on the stage or is there more I should do. please help?
stockdill
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.
1. A main movie clip that has a target empty movie clip where an external swf loads.
2. A menu movie clip that is built from button symbols and has its own timeline.
3. The external movie.
When a user clicks on the menu, the external swf loads into the empty movie clip target. This part works fine. Here's the code:
on (release) {
loadMovie ("Lesson1.swf", "_root.container");
}
I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads. I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.
Any help you can offer will be much appreciated.
Thanks
Sheila
Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").
What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)
I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having
on(release) {
gotoAndPlay("scene 5", 1);
}
this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.
Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you
Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
Making A Movie Clip Appear When Another Movie Clip Is At A Certain Position
Hey, I want a window to pop up , when my movie clip navigation slides to another part of it's section, you've seen these navigations eveywhere, when u click a button, it slides to the next section, but I want a windows to pop up when it reaches that section, and then when u click another button of another section it unload's and then makes another content window appear according to it's section can anyone understand what im trying to say ?
Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.
So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)
But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip
thaks
Vakarm
Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!
i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!
Making More Than One Movie Clip Play From Another Clip
Hello,
It's been a while since my last post and I am afraid I am just as oblivious as I was before. Here is my dilema: on the main stage I have movieclip a,b,c,d I click on "a" to make the movie play. Now I want to click "b" to make that movie play but I would like a to go back to it's original position by finishing it's timeline which sends it back to the original position. Then I would like to be able to click on "c" and it would send "b" back to it's original position not in this order but randomly depending on which movieclip you select. How can I make this happen? Thanks for any help.
Anthony
Movie Clip And GoTo
Can I use the GoTo command at the end of a movie clip? I have a movie clip that is 20 frames long in frame 1 of scene 1. I have a stop action on frame 1 of the main timeline. I put a GoTo action (I want it to go to frame 2 of the main timeline after the movie clip is finished playing), but after the movie clip plays it doesn't go to frame 2. It just stops after playing the movie clip. I've tried Goto and play and Goto and stop, but neither seem to work.
Any ideas? I'm using Flash 5.
Thanks.
Nevermind. I used the telltarget and got it working.
[Edited by rwatt on 09-24-2001 at 06:14 PM]
A Button Inside A Movie Clip To Move Another Movie Clip
I'm building a web page and I have a button that I need to make two movie clips play. The button is inside one movie clip and in addition to it playing I want it to make another movie clip play. It doesn't seem to recognize the movie clip target names. Any help as to how this can be done would be much appriciated.
Thanx
|