Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Movie Clip To Movie Clip Button Action



I am trying to have one movie clip jump to another movie clip. I made the mistake of having them on seperate frames and corrected that. None of the code I have used works still. I am wondering if anyone has a solution. I am sure its something small I am forgetting.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"



FlashKit > Flash Help > Flash General Help
Posted on: 01-22-2004, 11:05 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Movie Clip Button Action
i made a button using frame labels _up, _over, _down, and rollOut in a movie clip. then i assigned the actions on the main timeline where the buttons were. the actions are not on the clips, but on frames. i assigned a stopallSounds action to one of the buttonclips, and it stops the background music for a second and it continues. the sound is in a movie clip and is set on start; loop at frame 50.

check it out at: www.element45.tk just hit the audio button

thanks

Marrying The Movie Clip To The Button Action
I'm GONNA CRY!!! ARGGHHH!!!

I've got a button later (with a clickable button which intends to play a movie clip). I've also got a movie clip ready and waiting. I'm reading my Flash textbook which says to make a layer for the movie clip and then **exact quote:** "with the layer selected, drag an instance of the movie clip symbol out of the timeline and onto the stage." WHAT THE HELL DOES THAT MEAN EXACTLY???

I'm trying to marry the button's on(release) action to the movie clip to be played, but it's not working.

I was guessing at first that the movie clip should just be dragged from the library onto the stage at frame 1 of the movie layer. Am I wrong?

Two hours of intense thinking and I've gotten NOWHERE

PLEEEEEEASE help me

Use Button Action To Load A Movie Clip
OK, I'm sure I'm missing something really obvious, but how do I load a movie clip (not a movie) using a button.

I can see how this code works for loading a new movie:

-------------------------------------
on (release) {
loadMovieNum ("newmovie.swf", 1);
}
-------------------------------------

but I've no idea how I use a button to make a movie clip play.

Attaching Action To Button Within A Movie Clip
I am trying to simply go to a certain frame when someone presses a button that's within a movie clip.

Here's the code I put into the action layer:

stop();
theat_btn.onPress;
gotoAndPlay(60);

Any help would come greatly appreciated.

Attaching Action To Button Within A Movie Clip
I am trying to simply go to a certain frame when someone presses a button that's within a movie clip.

Here's the code I put into the action layer:

stop();
theat_btn.onPress;
gotoAndPlay(60);

Any help would come greatly appreciated.

Button Within Movie Clip Not Triggering Action
In "Scene 1" I have a movie clip. Within that movie clip I have a button that loads on the last frame. On another layer in that movie clip I have a stop action in the same frame number as the button appears.

On the button, I have the following action:
on (release) {
_root.gotoAndPlay(1);
}

The intention is to have the button within the movie clip trigger the SWF to go back to "Scene 1" frame 1 and start again. Any thoughts?

Below is a page with the SWF (700k) and the FLA file. The file size is large because I'm embedding video.

http://www.joemod.com/flash/

Thanks for any help -- Corey

Help With Movie Clip Button Action Script
Hey,

I am having some trouble customizing the scripting on this button http://www.kirupa.com/developer/mx20...ton_effect.htm

If you look at the code there, you'll notice that it, when clicked it goes to www.kirupa.com, hence the code:
this.onRelease = function(){
getURL("http://www.kirupa.com","_blank");
}

Now I want this button, when clicked to go to for example a certain frame in my movie instead of a webpage... So I tried:

this.onRelease = function(){
gotoAndPlay(100);
}
But it does not work like that, nothing happens when I test the movie and click it. For your info, I do have something on frame 100, a motion tween.

What have I done wrong? How can I fix this?

I'm relatively new to Flash so please bear with my limited knowledge.

Thanks in advance,
Vish

Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.
I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?

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?

Movie Clip Button - Action Script Issues
This is a two part question:

1. I have my movie clip button, "mcAboutus" then inside my movie clip I have 5 layers: actions, labels, text, animated rollover("mcAboutusover"), animated rolloff("mcAboutusoff"). On the labels layer I have _up, _over, _off. On the _up is the text layer, on the _over is a movie clip of the animated rollover("mcAboutusover") which is 90 frames, and I want to loop as long as the mouse is over the text. And the _off has the "mcAboutusoff" movie clip.

So I was able to have the rollover work, but when I roll off the rollover animation continues on until the end of the animation. I understand it has to do with the fact that it's a movie clip, but how do I point it to go into the movie clip and read the animation and that on the last frame of the animation I have a "gotoAndPlay(1);" to have the animation continue looping as long as it's in a rollover state?
here is the code I have for the _root:

this.mcAboutus.onRollOver = function() {
mcAboutus.gotoAndPlay(_over);
}
this.mcAboutus.onRollOut = function() {
mcAboutus.gotoAndPlay(_off);

}
The other problem I am having is that once the I have rolled over the animation once, the button dies and won't let me rollover it again?

Aside from the "stop();" action in the mcAboutus movie clip symbol, I don't have any other actions, should I put items in the different movie clips I have set up?

ALSO.... The reason that I have the main movie clip button, and two movie clips residing in the mcBtn is I wanted light rays to be glowing from the text, and I was having a hard time getting what I wanted from Flash, so I created in After Effects and exported two .SWF files. So those .SWF files are the _over and _off states in the mcBtn. I am having a very hard time controlling those Movie Clips within the main MC Button. Please, any help would be greatly appreciated.





























Edited: 02/26/2007 at 11:40:26 AM by djelder

Movie Clip And Button Instance Error In Action Script
Hello there. I constantly meet the same problem by making my thumbnail gallery with flash 8.
What I want to do is to create an enlarged preview of my picture by passing my mouse on its own thumbnail like a tooltip but for image.
So I import from library an image (thumbnailed) convert it to movie clip and in the Mclip stage I use action script with on rollover action. But I always get the same error : on rollover only for button instance. Do I have then to convert my image as button ???
I am lost . Please help me, I'm getting nuts. : (
THANKS !!!!!!!!!!

Button Action Not Working To Control A Different Movie Clip Timeline
Hi.

I have a button action not working to control another movie clip timeline. The movie clip timeline I want to control has an instance name but for some reason it's not playing. The button is on a different movie clip timeline. Both movie clips are on Scene 1. I think there is something wrong with my target path?

on(release){
_root.insMcWorkNav.gotoAndPlay("lbWork04");

insMcWorkNav is the movie clip, lbWork04 is the frame to play

Any suggestions? Thanks!

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.

Create A Movie Clip As A Button To Jump To Half Way Through Another Movie Clip?
hi guys and gals,
i am wondering if i can make a movie clip (as a link for a website) jump to half way through another movieclip...
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!!

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!!!!!

How Do You Make A Button Able To Jump From Movie Clip To Movie Clip
how do you make a button able to jump from movie clip to movie clip

I have 5 movies i the same scene , I need the buttons to jump from movie to movie ... how do I code this in the acrions ?

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

Controlling A Movie Clip From A Button Inside Another Movie Clip.
I'm confusing myself just typing this.

I'm working on an interactive map. The map itself is a MC inside a container, but also contains all the buttons as well. On my main stage(scene 1 and menu) is a window(MC) that will show info and photo of building. Now if I create a button on the main stage I can control the movieclip(images) easily. But when I use a button from inside map(MC) it doesn't seem to recognize the (images.gotoAndStop(frame))command.

I'm just not sure what to put in order to be able to control the MC's timeline from within that map movieclip.

Sorry if this is confusing. Of course at the same time it might be a simple solution for most people here as well. At least that is what I'm hoping anyways.

[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip

lets say that there are 4 buttons are in movieA, and the other clip is called movieB

when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on

so far my code for button1 is:

on (release){
this._parent.movieB.gotoAndStop(5);
}

on (release){
_root.movieB.gotoAndStop(5);
}

button2:

on (release){
this._parent.movieB.gotoAndStop(10);
}

on (release){
_root.movieB.gotoAndStop(10);
}

with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame

can anyone shed some light on this?

Place Movie Clip Button Inside Movie Clip
Hi, I have searched the forum but cannot find exactly what I am looking for.
I have a movie clip of a map that I can zoom and drag and what I would like to do if possible is to have several other movie clips inside the first movie clip which when clicked go to and play at a given frame number on the timeline where a photo is displayed.

The 'several' movie clips will be small flashing red circles. Each one represents a place of interest and when clicked will display a photo of the place of interest.

Button Nested In Movie Clip Just Repeats Movie Clip
I have a button that is inside of a movie clip. (the button falls down from the top). BUT, when i click on the button, it just plays the movie clip over again? Am I missing something?
Thank you

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

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

Problem With Movie Clip Moving When The Mouse Passes Over A Button On The Clip
The swf in question calls up a series of ads. To change the ads the user clicks on the forward and back button. However, when you mouseover the forward and back buttons the controlBar goes a bit haywire (as a result of the mouseOut on it).

All the files are attached in a zip file. Thanks in advance for your help guys.

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

Stop And Play Button For Movie Clip Within Moive Clip
hi i have problems with my buttons. i have got 2 fla files. 1) shell.fla 2) content.fla.

The shell.fla has a movie clip(name:holder) to load the content.swf. And within the content.swf i have got movie clip within movie clip.

Thru a search from the forum i came across this script

first frame:


Quote:




function stopAllClips(clip) {
clip.stop();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
stopAllClips(clip[i]);
}
}
}
};

function startAllClips(clip) {
clip.play();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
startAllClips(clip[i]);
}
}
}
};




for the button:


Quote:




on (release) {
if(!_root.stopped){
_root.stopAllClips(_root.holder_mc);
_root.stopped = true;
} else {
_root.startAllClips(_root.holder_mc);
_root.stopped = false;
}
}




everything works fine except after i pause and play, i doesn't play from where it has stopped. Anyone has got any ideas as to how i can solve this problem. Thanks very much.

Button In Movie Clip To Link To Other Movie Clip
I am trying to have a button isde my movie clip on frame 1 to jumpt to the start of my movie clip on frame 2. They are both in the same scene. I have tried all the basic action scripts including calling the root target and movie name and nothing will work. I am using Flash5 in XP.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

Button In Movie Clip To Link To Other Movie Clip
I am trying to have a button isde my movie clip on frame 1 to jumpt to the start of my movie clip on frame 2. They are both in the same scene. I have tried all the basic action scripts including calling the root target and movie name and nothing will work. I am using Flash5 in XP.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

Can A Button In A Movie Clip Control A Different Movie Clip?
I'm working on a web page with a draggable menu which is in its own movie clip. Can the buttons in this menu affect different movie clips or the main page?

Button(movie Clip) Inside A Movie Clip
Hey guys,

I had 3 buttons in the main movie which was working fine.

an external actionscript file was responsible for the buttons' functions

playPause is the instance name of the button(made as a movie clip)


ActionScript Code:
playPause.onRollOver = function()
{
    if(this._currentframe == 1) this.gotoAndStop("pauseOver");
    else this.gotoAndStop("playOver")
}

What I wanted to do is create another button(instance name speaker) on the main movie that when a user rolls over with a mouse, it'll show the 3 buttons. Basically, a button(movie clip) in a button(movie clip).

I have this movie clip working fine but none of the action script on the original buttons are working (of course because target changed).

I have tried the following and it will not work (in external .as file)-


ActionScript Code:
speaker.playPause.onRollOver = function()
{
    if(this._currentframe == 1) this.gotoAndStop("pauseOver");
    else this.gotoAndStop("playOver")
}

any suggestions? thanks in advance

Button(movie Clip) Inside A Movie Clip
hey everyone, using flash 8 here,

here is my problem.

on frame 1 line 2 i have a button ( bt1_btn ) and added this code on frame 1, line 1
Code:
stop();

bt1_btn.onRollOver = function() {
_root.gotoAndPlay("animation"); // frame 2
};
which works fine,

on frame 2 line 2 i have this movie clip ( bt2_btn ) that contains animation and 2 movie clips ( buttons - capsules_btn, and cahier_btn)
i added this code which works also...

Code:
bt2_btn.onRollOut= function() {
_root.gotoAndPlay("home"); // frame 1
};
but, i can't seem to make capsules_btn, and cahier_btn to work.

i tried the obvious
Code:
on (press) {
trace("on press");
}
which resulted to nothing.

i tried using this code at the main level on line 1
Code:
bt2_btn.cahier_btn.onRelease = function() {
trace("button clicked");
};
and got nothing

i then tried this code on frame 1 line 1 of the movieclip bt2_btn
Code:
_root.bt2_btn.cahier_btn.onPress= function() {
trace("button clicked");
};
nothing also

wondered what am i missing, or what i aint doing right, either way, can anyone help me out here?

attached file included

thanks

Movie Clip Button Inside Movie Clip.
hey ive got a slider menu which opens when clicked. however the buttons (also mc instanced) inside the slider mc wont work... here is the code:

//Menu Slider Background
_root.menuSlider_MC.onRollOver = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-250, 20);s
}

_root.menuSlider_MC.onRollOut = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,-305, 20);s
}

_root.menuSlider_MC.onPress = function() {
new Tween(_root.menuSlider_MC, "_x", Bounce.easeOut, _root.menuSlider_MC._x,50, 20);s
}

//Menu Buttons
_root.menuSlider_MC.web_MC.onRollOver = function() {
trace("yes");
}

the slider mc works however i cant seem to get the 'web_MC' to respond..

how can i fix this? cheers.

Movie Clip To Movie Clip Button Script?
I am trying to have one movie clip jump to another movie clip. I made the mistake of having them on seperate frames and corrected that. None of the code I have used works still. I am wondering if anyone has a solution. I am sure its something small I am forgetting.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

Make A Button Within A Movie Clip Make The Main Movie Clip Play?
hi, is it possible to make a button within a movie clip make the main movie clip play?

at the moment i have it set to play(); on release put this plays the movie clip rather than the main movie, is there any way to make it play the acutal main movie insteat?

URGENT How To Add The "gotoAndPlay" Action Onto A Movie Clip Button
Hello Everyone!

I've just created a movie clip button, I added a roll-over effect on it, so when a cursor moves over the button, the movie clip would play.

I'm really happy with the visual result of my movie-clip button, however I don't know how to make it be connected with an animation which I've created on the same time-line of the movie clip button.

Here is the action script for the movie clip button:

b1.onRollOver = over;

function over() {
this.gotoAndPlay(7);

above script works fine! b1 is the movie clip button, and the movie clip starts at frame 7.

However, when I try to add an "On Release" action to the button, in order to make it to play an animation(which should starts at frame 36) when people click on it, the script doesn't work, here is the script:

b1.onRelease = onRelease;

function onRelease() {
this.gotoAndPlay(36);
}

Can anyone help????

Thank you in advance!!!

Move Movie Clip On Button Clip
This is a script that causes a movie clip to move down to a new location when a button nested inside the movie clip is released. can anyone tell me how to write the code so that when a different button is pressed the movie clip will move back to its original position. I am trying to learn actionscript 2.0 by taking the posted files apart and so on, I have a ton o books none of which are too helpful so I could really use some help. What the heck is "ty". I decided to join the forum because books were not cutting it! LOL

here is the code thanks.

ActionScript Code:
// this is the main button to start the slide show
collButtHolder.slide1.onRelease = function() {
    //move the to menu down to reveal the slide show components
    slide(collButtHolder,324);
    // call the function to set up slide show or reset it you had other buttons
    // this is where you set your path to the photos and how many photos are in that folder.
    resetSlideShow("images/slide1/", 15);
    collectionMenu.bName.text = "slide1";
};

function slide(mc, ty) {
    mc.onEnterFrame = function() {
        mc._y += (ty-mc._y)/5;
        if (Math.abs(ty-mc._y)<0.4) {
            this._y = ty;
            delete mc.onEnterFrame;
        }
    };
}

How To Address A Button On The 5th Frame Of A Movie Clip With Action Script Located On The First Frame Of The Main Time
I'm trying to make a button appear on frame 10 of a movie clip and write actionscript on the main time line that addresses that frame 10 button. I'm not sure of the method I need to do to get that frame 10 button to get a url. I tested the same button when put on frame 1 and it worked, but I'm not sure how to address buttons and other symbols that appear as a result of the playhead moving to different places on movie clip time lines.

Can anyone help, or give me a link?

Thanks
Dennis







Attach Code

//works
_root.buttons_mc.go_btn.onRelease = function(){
_root.mall_mc.gotoAndPlay(1);
//a stop action is placed on frame 10 of the mall_mc movie clip
};
//this button is inside the mall_mc movie clip on frame 10
//doesn't work
_root.mall_mc.url_btn.onRelease = function(){
getURL("http://yahoo.com");
};
//An instance of the same url_btn is dragged on to frame 1 of the mall_mc
//movie clip and given an instance name url_frame1_btn
//works
_root.mall_mc.url_frame1_btn.onRelease = function(){
getURL("http://yahoo.com");
};

Movie Clip Button Inside A Movie Clip Button
Ok so I'm going crazy with creating a movie clip button inside a movie clip.

I have it working well for onRollover, but onRollout the Header_mc looks like it is not looking at the code. It is driving me crazy. Here is my Action Script code to control the two movieclip buttons.

I basicly want the Header_mc to stop when over the B_photo and on Rollout of the B_photo. I don't know why it is not working. I have attached screenshots of my Header_mc and the SWF so you can see what frame I'm calling.



/*--------------Photographers Button------------*/

this.B_photo.onRollOver = function() {
Header_mc.gotoAndPlay("_stop");
B_photo.gotoAndPlay("_over");

}

this.B_photo.onRollOut = function() {
Header_mc.stop("_stop");
B_photo.gotoAndPlay("_out");

}

this.B_photo.onRelease = function() {
B_photo.getURL("http://www.macromedia.com", "_parent");
}

/*--------------Main Header---------------------*/

this.Header_mc.onRollOver = function() {
Header_mc.gotoAndPlay("_over");

}

this.Header_mc.onRollOut = function() {
Header_mc.gotoAndPlay("_out");

}

this.Header_mc.onRelease = function() {
Header_mc.gotoAndStop("_out");

}

Button(movie Clip) In A Button(movie Clip) Help - Attached Fla
Hey guys,

I had 3 buttons in the main movie which was working fine.

an external actionscript file was responsible for the buttons' functions

playPause is the instance name of the button(made as a movie clip)


ActionScript Code:
playPause.onRollOver = function(){    if(this._currentframe == 1) this.gotoAndStop("pauseOver");    else this.gotoAndStop("playOver")}


What I wanted to do is create another button(instance name speaker) on the main movie that when a user rolls over with a mouse, it'll show the 3 buttons. Basically, a button(movie clip) in a button(movie clip).

I have this movie clip working fine but none of the action script on the original buttons are working (of course because target changed).

I have tried the following and it will not work (in external .as file)-


ActionScript Code:
speaker.playPause.onRollOver = function(){    if(this._currentframe == 1) this.gotoAndStop("pauseOver");    else this.gotoAndStop("playOver")}


here is the fla (for the test file, i simply put the as code in the frame and not external as file)
www.yooniq.net/dante/testmp.fla

and here is what i'm talking about
www.yooniq.net/dante/testmp.swf

any suggestions? it'll be greatly appreciated.
thanks in advance

Movie Clip Action Bug...HELP
I have 2 movie clips; a claw and a line. When the claw movies up, down, left, and right the line follows it and expands and contracts when it goes up and down. When Enter is pressed the claw closes and the objects action is sent to the second frame in the movie. At this point sometimes the line no longer expands or contracts with the claw's up and down motion. I'm not sure why this is happenning but I've tried everything...please help!
This is the claws actions:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT) and _x > -3) {
this._x -= speed;
}
if (Key.isDown(Key.RIGHT) and _x < 540) {
this._x += speed;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.DOWN) and _y < 368) {
this._y += speed;

}
if (Key.isDown(Key.UP) and _y > 165) {
this._y -= speed;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.ENTER)) {
gotoAndPlay (2);
}
}
and this is the lines action in the first frame of the movie playing both clips:
mousex = claw._x;
mousey = claw._y-146;
lineClip._width = Math.sqrt(mousex*mousex);
lineClip._height = Math.sqrt(mousey*mousey);

Movie Clip Action
try to do this :
_root. ur movie instant . _curentframe + or - 1

Movie Clip Action
I want to copy the navigation as you can see on the history timeline at : http://celebrate150.tufts.edu/timeline/

That is, I want to use the slider to move the movie clip, and I want the arrows to move the clip, and I want both of them working together!

I have worked on various tutorials, but cant tie them all in together so they are coordinating.


[Edited by fleiss on 06-01-2002 at 08:39 AM]

Movie Clip Action
I want to copy the navigation as you can see on the history timeline at : http://celebrate150.tufts.edu/timeline/

That is, I want to use the slider to move the movie clip, and I want the arrows to move the clip, and I want both of them working together!

I have worked on various tutorials, but cant tie them all in together so they are coordinating.


[Edited by fleiss on 06-01-2002 at 08:41 AM]

Movie Clip Action
Hello,

I've added a movie clip to my stage. I can not get the movie clip to play. Did I skip something??

Movie Clip Action - Help Me:)
Hi, I have 3 MCs on the stage - I need an action that would allow me to play MC#1 when it stops, automatically MC#2 starts to play, when it stops, then MC#3 plays, when MC#3 finished to play then everything would start again. Which action do I need to control it?
THANK YOU!

Copyright © 2005-08 www.BigResource.com, All rights reserved