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




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"



FlashKit > Flash Help > Flash General Help
Posted on: 01-21-2004, 04:46 PM


View Complete Forum Thread with Replies

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

[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?

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 Link Inside Movie Clip Link To Slide #
First let me say I am a very new to ActionScript and Flash, but have a pretty good understanding of the web and a basic understanding of object oriented scripts from CSS and a few other languages.

I have a navigation menu which is a movie clip containing buttons inside it and have a slide presentation as my main content. I am trying to make the buttons link to a specific slide # in a different part of my flash presentation.

You can see the page here: http://brhpc.ericlevay.com

The nav menu is a downloaded source and the slide show is the default canned one from the Flash templates directory.

I was hoping to use the gotoandStop (slide#) to make the connection between the nav button and the slide but it does not do anything.

I will provide the source if needed...

Thanks!

How To Link Button To Movie Clip
I hope some one can help me with this.

I just resently started tring to creat flash web sites. and its smooth sailling until I try and get my buttons to work. My problem is I have a button in the main area/scene 1 and i have movie clips in the library that i want to link the buttons to.

can anyone help me with the coding to do that. or just what to do?

thanks

Button Movie Clip Link
I've created some simple buttons that I'd like, when clicked, to play a movie clip. Whats the best way to do this?

Movie Clip Button Link
I know this is novice, but how can I add links to movie clip buttons?

Link Button And Movie Clip
i am having trouble with linking a movie clip and a button together. my button is normal with only an up over down hit with no MC's in it. the movie clip i would like to link it to it kinof a button, because in the script it has on(rollover){gotoAndPlay(10);} and rollout and press respectively. What i want to do is when i rollover either the movie clip or the button, both will go to the "over state" and when roll out or press do their thing. does anybody know how to put these together somehow as one? I would appreciate any help!

Thanks in advance!!

Link From One Movie Clip To Specific Frame Within Another Movie Clip
Hello,
I've been working on this problem on and off for weeks now, and am hoping I could get some assistance, as it is driving me batty and my deadline is quickly approaching. Here is the basic setup:

I am creating a Flash webpage. I created a Flash movie with 6 frames, with a movie clip on each frame, each movie clip being a single page of the website. What I would like to do is have button within one movie clip (say a button in the movie "contact" which is frame 5 of the main movie) link to a frame within another movie clip (say frame 3 called "project3" within the movieclip "portfolio" which is frame 2 of the main movie).

With all my efforts, I am only able to get the button to go to and play the called movie clip at frame 1, and no other frame number or label.

I have tried codes such as the following:

on (release){
this._parent.portfolio.gotoAndStop("project3");
}

on (release){
_root.portfolio.gotoAndStop("project3");
}

... and countless other options, but nothing seems to work. I would greatly appreciate any assistance with this matter. For the record, I admittedly do not know much Flash and am learning most of this on my own with a small base knowledge from a design class I took years ago using UltraDelv! Please let me know if I need to go into further detail.

Cheers!

Movie Clip Inside Movie Clip Link To Url Issue
I have created a scrolling row of banner ads that reacts to the mouse. I had some help getting the images to load in using an xml document and also to pass the url from the xml. My problem is the button funtion is blocked as the button movie clips need to be placed inside the scrolling movie clip in order to get it to scroll. Is there anyway I can get these buttons to work? I have attached my fla, please help!

Thanks for your time,

Glenn

Trying To Link A Button In A Movie Clip To Another Scene
I'm actually trying to do two things. I have a movieclip in a scrollbar. There are two buttons within that movieclip. One I'd like to have link to another frame label in another scene. The other I'd like to have a call up a small browser window. Could anybody please help? my email is scott@algorithmia.com. Thanks.

)s

Issue With Getting Button To Link To Movie Clip
Hi,

Basically, I'm trying to get a button to "talk to" a movie clip (to make it play). But everything I've tried to do has come to nothing.
Please open the attachment, and you will see what I mean. Before we go on, I need to explain a few things.

When you open the attachment you will see four different coloured panels. It's the yellow one that I'm trying to get to work.

What's suppose to happen is when you roll the mouse over the yellow panel, (as it's spinning around) the words "About Us" is supposed to fade in next to the yellow panel and should spin around with it. As soon as you roll the mouse off the panel, the words should fade out.

The yellow panel button is called "About Us Button" and it is located here: Main Page(timeline) Emblem Clip Button Panel Emblem About Us Mask About Us Button. This is the script that is on the button:

on (rollOver) {
_root.gotoAndPlay("AboutGo");
}
on (rollOut) {
_root.gotoAndPlay("AboutStop");
}
on (release) {
_root.gotoAndPlay("AboutUs");
}

The "AboutGo" and "AboutStop" frame labels are on a clip called "About Us Text" and it is located at: Main Page(timeline) Emblem Clip About Us Text. This is the clip that's suppose to fade in and out.

Now, the only part of the script I mentioned above that works properly is the "on (release)" one that links to a frame label on the main timeline called "AboutUs".

Why does that part of the script work and not the other parts.

Please check out the attachment and see if it can be solved.

I will be extremely grateful to whoever can help me out.

LOVE YOUR WORK!!!!!!

Blastbum

Link To A Scene - Button Within A Movie Clip.
The subject pretty much explains it. I'm having trouble getting my buttons which are within a movieclip to link to various scenes.
Any idea as to what actionscript I should use so that the buttons within the movieclip can link to a seperate scene.

Thanks

[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?

Adding Link To Button W/ Movie Clip
I am very new to flash so I'll explain what I've done before I ask what My question is.
I created a button by combining a gradiant rectangle and text>convert to graphic>convert to button>dbl click on the now button>selected 'Over' state>convert to movie clip>added animation to 'Over' state>did the same with 'Down' state (using different animation).
All of this works fine but I am totally stumped as how to add a hyperlink to it. I know how to do it with just a simple image ie draw circle>convert to button>Actions>on (release) {
getURL("http://www.mysite.com", "_self");
}
>save>publish preview HTML
I think it might be where I am trying to add the hyperlink but I'm not sure.
I even tried going to 'Scene 1' selecting the whole thing and converting that to a botton and then adding the Actionscript as above but no joy to that either.
I would really appreciate any advice.
Thanks
Deefsound
ps I have attched a swf of what I've done thus far.

Using Movie Clip As Button To Link To Scene
Hello, this is my first post. VERY new to Flash. Trying to make my first website. I've had no formal training and am just kind of barrelling through using internet tutorials and Flash reference when I get stuck on something.

Which I am now.

I'm making a web page for my motorcycle collection. There's a main window for animations (transitions) and information on each bike and to the left are icons for each bike. Maybe this isn't the best way, but for now I'm doing this by making the page for each bike a seperate scene with an identical frame and identical bike icons on the left. You click the icon for the bike and it goes to the scene with that bike's information in the main window (with a built-in animated transition between).

Now the problem: I am trying to have the icon buttons on the left be advanced rollover buttons. So each one is a movie clip symbol for which I've scripted button attributes. I've taken 8 photos from different angles around each bike to make an animation like the bike's spinning. I put a stop command on the first frame of the mc animation and then on the last frame, I have a gotoAndPlay (2) command. On the rollover state, it goes to frame 2. On rolloff, it goes to frame 1 and stops. This is all working beautifully. However, I want the buttons to link to another scene in the main timeline when you clip on them. So I tried all kinds of different onRelease functions that I found in various forums. None have worked. When I test the file, the rollover states animate fine, but nothing happens when I click the buttons.

I first tried making an actions layer in the edit timeline of the mc itself and putting in this script on frame 1:


Code:

onRollOver = function() {
gotoAndPlay (2)
}

onRollOut = function() {
gotoAndStop (1)
}

onRelease = function() {
gotoAndPlay ("Scene 4", 1)
This didn't work. Then I found out about needing to link it to root to change scenes outside of the mc and on the main animation. So I changed the onRelease code to:


Code:

onRelease = function() {
_root.gotoAndPlay ("Scene 4", 1)
This didn't change a thing!

So I removed the onrelease code from the movie clip timeline and went to the main timeline and tried putting it on the actions layer there:


Code:

600mcbutton.onRelease = function() {
_root.gotoAndPlay ("Scene 4", 1)
The code check came out okay, but it still didn't do anything when I clicked the button. I tried about a dozen variations of all of these things between the main timeline and the mc timeline and it never acted any differently. The rollover animation always worked, the link to Scene 4 NEVER worked. This one's got me stumped.

Thanks for reading all the way through this and helping.

Movie Clip Button Link Problem
ok, ive made my buttons and the movie clips i want to link them to, but i cant seem to get them to work. here is the script i am using.

b1.onRollOver = over;
b1.onRollOut = out;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(7);
}

this.b1.onRelease = function() {
this._parent.gotoAndPlay("news link");
};


not sure why it isnt working. I had it once before but it wouldnt let me link any other buttons to anything else. weird. please help, thanks in advance.

Im Sure This Is Simple; Button In Movie Clip Wont Link
The example attached shows the trouble i'm havin with my web page the button bar comes down and when you click on the button thats come down it doesn't link just goes back up again.

I think its just a little action script problem.

Also when i click on the toyota button the menu comes down, how can i make it so a second click on the toyota button would send the menu back up again.

Thanks for helpin guys

[MX04] Link A Button To A Movie Clip Frame
I have a button in scene 1 who need to link to a frame (frame 15) in the movie clip (movie1).
I have only:
on (release) {
gotoAndPlay('movie1',15);
}
please help..

[F8] How Can I Link A Button To A Frame Or Animation In A Movie Clip
good morning fellas. first off thanks to dallasnyc for the help on my last problem. ok, so my issue is that i have a movie clip on the timeline. it plays a short animation. after that animation theres two optons, two buttons on the page user clicks one the animation disappears and another box shows up, same with second. im just not sure what to do from here. any help would be appreciated. i can post the project if neccasary. thank you

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?

Button Inside A Movie Clip, Link To Main Stage
Hi, I have created a button inside a movie clip, you can see this on my website at http://www.adzcool.1800-webhosting.com

I was hoping that someone could tell me how I could get it so that once I click on the button inside the movie clip it will allow the frame in the main stage to jump to another frame.

I tried to use the jump to frame code, inserting "Scene 1" as the scene but that didnt work, I'm guessing thats because I'm inside the movie clip instead of in the main time line.

I thought that I could solve the problem by having a variable in the movie clip that would be turned on on mouse release, then in the main time line have code that says if variable on, goto next frame, but I couldnt get that so work either.

I'm using flash mx 2004.

Thanks for any help

adzcool

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

How Do I Link To Specified Frame In One Movie Clip From Another Movie Clip?
Hello,
I've been working on this problem on and off for weeks now, and am hoping I could get some assistance, as it is driving me batty and my deadline is quickly approaching. Here is the basic setup:

I am creating a Flash webpage. I created a Flash movie with 6 frames, with a movie clip on each frame, each movie clip being a single page of the website. What I would like to do is have button within one movie clip (say a button in the movie "contact" which is frame 5 of the main movie) link to a frame within another movie clip (say frame 3 called "project3" within the movieclip "portfolio" which is frame 2 of the main movie).

With all my efforts, I am only able to get the button to go to and play the called movie clip at frame 1, and no other frame number or label.

I have tried codes such as the following:

on (release){
this._parent.portfolio.gotoAndStop("project3");
}

on (release){
_root.portfolio.gotoAndStop("project3");
}

... and countless other options, but nothing seems to work. I would greatly appreciate any assistance with this matter. For the record, I admittedly do not know much Flash and am learning most of this on my own with a small base knowledge from a design class I took years ago using UltraDelv! Please let me know if I need to go into further detail.

Cheers!

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 To Have A Button Link To A Certain Frame Inside A Movie Clip From Inside A Movie
Is this possible? I have a menu and would like to have a drop down box nested inside the menue which links to certain frames inside the main movie clip.

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.

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.

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"

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"

Main Movie With Buttons Link To Movie Clip
Basically, in Scene 1 (my only scene), I have buttons that call certain parts of a movie clip.

I've pulled the movie clip into the scene where I want it, and named the instance.

The movie clip has different things happening along the time line that relate to the different buttons. Each one has a stop action, as needed.

I placed the action of onrelease, tell target for each button to go and play the correct scene. Which it does - the first time. If the user hits one button, it goes to the right frame of the movie clip, etc, but if you hit the same button twice, then it jumps to a different button's place.

If there are only two buttons, it keeps switching back and forth.

If there are more than two buttons, only the last button is the messed up one - and if you hit it twice in a row, it goes back to the first button's frame of the movie clip.

Make sense? Any ideas of how to stop this. I even followed an example of this in a book EXACTLY and I get the same problem.

Thanks.

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?

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