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




How Do I Code For A Movie Clip With A Button In It Embedded In The Main Scene?



This should be easy for any one who designs websites in flash.I have a movie clip embedded in my main timeline that appears after an animation sequence happens. In this movie clip is button that changes color when you rollover it and links to an email address. Pretty simple.I am not sure how to correctly code the actionscript for this. So far, when you rollover the movie clip and try to click the button, the whole movie clip flashes.How do I tell flash to point to the button embedded in the movie clip?You can see the god awful mess I've created online at:http://www.espavoproductions.com/flash_site.swf Look at the CONTACT button to see what I am talking about.Please help. I would be so very grateful.-Stephanie



Adobe > ActionScript 1 and 2
Posted on: 05/21/2007 08:44:51 PM


View Complete Forum Thread with Replies

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

Making The Main Timeline Play From A Button Embedded In A Movie Clip
How does one make the main timeline play from a button embedded in a movieclip that is on the main timeline?

Button In Movie Clip Linking To Main Scene.
Howdy howdy. I'm working on a flash project and I want the buttons in one movie clip to link to frame 5 of scene 1. (So I have scene 1, a movie clip with the buttons in it and I want one of those buttons to make scene one skip to frame 5) So far it just goes to frame 5 of that movie clip, and when I named "Scene 1" inside the "Scene" box it didn't do anything. I tried searching the forum prior to posting this but I got 50000 results the first time and 35000 the second time, and I didn't feel like browsing through all of those hoping to find the answer to this question. (The first 2 pages of each search didn't contain anything I found to be helpfull) Any help would be greatly appreciated! (I'm using Flash 5) Thanks -NoodlyGod

Button Inside A Movie Clip Controlling The Main Scene?
Hi, I have a button inside a movie symbol that is on the main scene.

When it is clicked I want to move to a certain frame on the main scene.

I have double clicked on the movie symbol and attached this script to the button:

on (release) {
tellTarget ("this._parent") {
gotoAndPlay(5);
}
}

but it doesnt do anything.

What is wrong?

Thanks.

Problem Getting A Button From A Movie Clip To Play A Frame In Main Scene
I am at a stumbling block and need help!!

I have created a animation that is a scrollbar full of buttons as a separate clip, the prob is that when I set the action from the button of that clip to the main scene, the action doesn't happen.

Please help! you can reach me by aim or e-mail and I will send you the fla to help me debug, thanks!!

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?

Jumping From Scene To Scen With Buttons Embedded In Movie Clip
I could do this in Flash 4 but it isn't working in Flash 5. I'm trying to get from scene to scene with a button that's embedded in a movie clip. In the first scene the movie clip begins to play and the button appears. I want to be able to click that button and move to the next scene.

Here's my code:

on (release) {
gotoAndPlay ("scene2", 1);
}

What am I doing wrong here?

PLEASE HELP - Movie Clip Control Of Main Scene
Hi,
my problem that is driving me crazy:

I have a movie clip playing on a stopped frame on my main scene, what I need is for when the movie clip within the scene reaches the end frame for the main scene to gotoandplay another frame,

I keep trying variations of _root.goToAndPlay("Scene 1",2) on the last frame of the movie clip but it doesn't work. please please help,

Thanks

Loading A Movie Clip In Main Scene
I have made a movie on the top of which are two buttons in the form of Tshirts. I want that when the Tshirt with horizontal stripes is clicked a colored image of that Tshirt is loaded in a square. After that when one of the colored squares is clicked, the same Tshirt is loaded in another color. Similarly when the button with vertical stripes is clicked a colored version of that Tshirt is loaded in the square. If the square already has an image of the horizontal sriped Tshirt in the square, then , that should be replaced by the Tshirt with the vertical stripes. I have written acrtion scipt for this but it is not working. I will be grateful if some one can kindly look at .fla file and let me know what the error is and how to rectify it.
Thanks!

Load Movie Clip In Main Scene
I have made a movie on the top of which are two buttons in the form of Tshirts. I want that when the Tshirt with horizontal stripes is clicked a colored image of that Tshirt is loaded in a square. After that when one of the colored squares is clicked, the same Tshirt is loaded in another color. Similarly when the button with vertical stripes is clicked a colored version of that Tshirt is loaded in the square. If the square already has an image of the horizontal sriped Tshirt in the square, then , that should be replaced by the Tshirt with the vertical stripes. I have written acrtion scipt for this but it is not working. I will be grateful if some one can kindly look at .fla file and let me know what the error is and how to rectify it.
Thanks!

Play One Movie Clip After The Other In The Main Scene
I know this must be a pretty simple task but I can't seem to get it
working..
I have a Scene "MainScene" which has a library attached with 3 movies.
What I would like this to do is play one after the other in the main scene
but I'm not sure how to play one (a single keyframe on the timeline) and
then after that one has finished, play the next.

Please help me out! and its urgent! Thanks In advance!

How To Load A Movie In Main Scene While The Command Is Inside A Movie Clip?
Hi all,

Well, I have a scene that has a movie clip, and inside this movie clip there is a button. I want to program that button using ActionScript to loadMovie named "1.swf" inside a container in the main scene (which this movie clip belongs to).

Hope the question is clear and hope to get a fast answer as it is urgent..

Thanks alot in advance.


Regards

How To Tell Main Timeline To Goto Next Scene From A Movie Clip.
How to tell main timeline to goto next scene from a movie clip.
I’ve tried:
_root.nextscene()
_root.play()
_level0.nextscene()
_ level0.play()
_root.level0.nextscene()
_root.level0.play()

Nothing seems to work except having a button with the action, but I need it to work without having to press a button. Any help would be appreciated.

How To Tell Main Timeline To Goto Next Scene From A Movie Clip.
Mentaleruptions,

The code does work. Sorry for premature reply. It was late last night when I tried it. I got up fresh this morning and tried it with success. I just needed to move the line one up before the this.stop() command, duh.

Thank you vary much.




.

Selecting Movie Clip Instances On Main Scene
Is there an easy way to find and select movie clip instances on the main
scene? I'm working with a pre-built template and I'm trying to find and
edit a movie clip instance on the main scene, but I'm having trouble
selecting it.

Thanks.

Load An External Image From A Movie Clip To A Main Scene
Hi Guys
I want to make an image gallery I have put 4 button in a movie clip and when the user click on any button a big image will open in front of the main scene and user can close that window as well to see other images
a quick reply shall be highly appriciated

Thanks & Regards

Atif

Trying To Run Code Within A Movie Clip From The Main Timeline
here is the fla file - http://www.grokinfullness.com/example.fla

I am trying to run code that is located in the actions layer of a movie clip from the main timeline. I want to do this because I will have 10 identical movie clips that will all have to be manipulated the same way and I do not wish to have to resort to copying and pasting everything.

In the actions layer of the main timeline I put the following code -

stop();

test_mc.insertText();

In test_mc (located in a separate layer in the main timeline) I put a dynamic text box called myTest_txt and the following code in a separate layer -

stop();

insertText = function()
{
myTest_txt.text = "test" ;
trace( "testy test test" );

}

When this is run "test" should appear in the textbox and you should get the trace. Unfortunately, this does not happen. Any ideas on what I should do to make this work?

How To Make Button In MC Send Main Movie To New Scene?
I can't get a button I have in a MC in my current scene, to send the playhead to a different selected scene using on(release). I can get it to control the playhead in the current scene, but not the others. I've scripted it using the _root.gotoAndPlay("scene2", 1) syntax, but it won't work. Anyone have any ideas? Thanks

Want To Run A Movie Clip Scene In A Code[MX04]
In this section of code, I want to play the scene "explode red" from the Mvie Clip "rock". How do I do it?


Code:
if (flame.hitTest(car1)) {
trace("burned car1");
resetFlame();
reset(car1);
playSound("alarm");
score+=10;
}

[F8] Movie Clip Embedded In A Button
Hello, everyone! I'm new around here, and relatively new to Flash as well.

I am currently working on making a map. I've gotten the map completed, with basic navigation functions and whatnot, and now I'm working on imporving the map. The first way I though to improve the map would be to make it draggable, so that people don't have to necessarily use the navigation buttons to move the map around.

The map itself is a Movie Clip with embedded buttons and movie clips. After messing around with it for a bit, I learned that, in order to make the map draggabe, it needs to be a buttoon, so I could apply on (press) and on (release) actions to it. However, after doing this, I ran into a bit of a problem. Everything about the map works perfectly fine, except the optional selectable icons (such as parking lots and smoking areas, for example) can no longer be toggled on and off by the viewer.

I know what the problem is, I just don't know how to fix it. So, the button for the map is labeled "btn_map" and the movie clip is labeled "mc_map". Now, before I made the btn_map with the embedded mc_map, all I did was use the collowing code (dissmoking being the X next to the text that pops up when the item is visible):

on (press) {
if (this._parent.mc_map.smoking_mc._visible == false) {
this._parent.mc_map.smoking_mc._visible = true;
dissmoking._visible = true;
} else {
this._parent.mc_map.smoking_mc._visible = false;
dissmoking._visible = false;
}}

The problem is that, after embedding the mc_map into the btn_map, I can no longer direct the action script to the "smoking_mc" movie clip using this line of code: this._parent.mc_map.smoking_mc. I tried using the target locator as well, but the btn_map doesn't have the little plus sign next to it, indicating that I can expand it and select something withing the button itself, so I can't get access to the mc_map embedded in it. I've also tried adding in btn_map between _parent and smoking_mc, but to no avail. I know that it's either something really simple that I've just overlooked, or it just can't be done, lol.

If anyone could give me a hand here, I would greatly appreciate it!

Embedded Button In Movie Clip
Hi,
I created an equalizer with a button in an external file. I am loading this clip into a container into another movie. The music starts to play automatically (which is what i want), but i have to push the "play" button twice to get the equalizer visual effects to start (after it starts, everything works fine). In addition, the standalone swf of the equalizer (when run by itself) works perfectly. I am not sure how to identify the button and either change it to "playing", which is in the action script or how to identify the button and call a "double click".

I am using the loadMovie("equalizer.swf",mc_eq) mc_eq is the container.

Thanks in advance for any assistance.

-mike

Button Embedded In Movie Clip Not Responding
I've been using Flash for a while but not very intensely so I'm stil rather new to it.

I have several animated buttons inside of a movie clip which is inside a nother movie clip. When I play the SWF file, the buttons aren't active. For the over state of them, I have them turn white to let me know when they're working and when I play the file, they don't turn white when I move the mouse over them.

Can anyon tell me why this might not be working?

I'm running Flash MX 2004 btw.

Controlling A Button Embedded In A Movie Clip
Hello all!
I am creating a game where there is a box, and when you click on the box your score raises and the box moves to another random position.
I am using Flash 7.0.
I use attachMovie() to place the box, and I want to be able to access the button embedded in the movie clip that I attached. But how? Whenever I try it ends up doing nothing. This is kind of hard to explain, so tell me if you don't understand.
Thanks,
Blake

Targeting Embedded Button In A Movie Clip
I have placed a movie clip on my main stage. I've embedded a button (invisibleButton_btn) in this movie clip (puzzleOpen_mc). I've scripted the movie clip to go to certain frames on roll over/out using the following on my main timeline>actions layer>frame 1:

this.puzzleOpen_mc.onRollOver=function() {
this.gotoAndPlay("up");
}
this.puzzleOpen_mc.onRollOut=function() {
this.gotoAndPlay("down");
}

That works fine.

Again, on my main timeline (not the movie clip timeline) I've written the following on frame one of my actions layer:

this.puzzleOpen_mc.invisibleII_btn.onRelease=funct ion() {
trace("test");
}

The button does not trace when released. I've tried removing the "this." before everything and that didn't work. I tried adding "_root", "_parent", you name it. One thing that did make the button functional was removing the rollover/out statements and making the movie clip inanimate, but I need those to animate the movie clip. I've tried attaching the button script in the movie timeline's action layer. I've tried attaching the script directly to the button in the movie clip. I'm beyond wits end. Any suggestions would be greatly appreciated.

Thanks!

Button Embedded Inside A Movie Clip?
For the getProperty tutorial, he has a button inside a movie clip containing the

on (release) {
_root.xpos = getProperty ( _target, _x );

}


Does anyone know why the button has to be inside a movie clip to work?

I placed the code in the button without being in a movie clip and I kept getting 0 as my x position.

thanks for you help!

Targeting Embedded Button In Movie Clip
I have placed a movie clip on my main stage. I've embedded a button (invisibleButton_btn) in this movie clip (puzzleOpen_mc). I've scripted the movie clip to go to certain frames on roll over/out using the following on my main timeline>actions layer>frame 1:

this.puzzleOpen_mc.onRollOver=function() {
this.gotoAndPlay("up");
}
this.puzzleOpen_mc.onRollOut=function() {
this.gotoAndPlay("down");
}

That works fine.

Again, on my main timeline (not the movie clip timeline) I've written the following on frame one of my actions layer:

this.puzzleOpen_mc.invisibleII_btn.onRelease=funct ion() {
trace("test");
}

The button does not trace when released. I've tried removing the "this." before everything and that didn't work. I tried adding "_root", "_parent", you name it. One thing that did make the button functional was removing the rollover/out statements and making the movie clip inanimate, but I need those to animate the movie clip. I've tried attaching the button script in the movie timeline's action layer. I've tried attaching the script directly to the button in the movie clip. I'm beyond wits end. Any suggestions would be greatly appreciated.

Thanks!

Button Embedded In Movie Clip Not Solved
Very URGENT PLZ HELP Me......hi i had make a movie clip in flash that when the mouse roll on the clip the movie stop play and when the mouse roll over movie start playing in that i want to give link to seperate URL means for each photos in clip diff. url should be there i also tried that and i got 50% succeess the problem is that when i move mouse to clip the movie stops but the link doesnt work.

plz help me in sorting these problem....

Button Embedded In Movie Clip Not Responding
I've been using Flash for a while but not very intensely so I'm stil rather new to it.

I have several animated buttons inside of a movie clip which is inside a nother movie clip. When I play the SWF file, the buttons aren't active. For the over state of them, I have them turn white to let me know when they're working and when I play the file, they don't turn white when I move the mouse over them.

Can anyon tell me why this might not be working?

I'm running Flash MX 2004 btw.

Button Embedded In Movie Clip...not Working
I'm a pretty experienced Flash user, but mostly self taught and not at all an expert on ActionScript. Here's what I have going:

I have a movie with many multiple scenes embedded. In one of the scenes, I have a layer that has a movie clip inserted to a keyframe. In that movie clip, is a button that slowly floats around. I want to make it so that when someone clicks on the button, wherever it is on the page, it can load the scene that I specify. However, when I set up the action, and then click on the button, it just reloads the scene that the button is in.

Does anyone know an action I can use to correct this? Or do I just need to take the button out of the movie clip keframe, and just create the animation and motion in the scene timeline itself.

Hopefully someone can help. I'm thinking it's an easy fix, just probably something I've never come across before. 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.

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 In Movie Clip To Main Timeline
I have a button(A) that opens a movie clip which contains a button (B). I want button B to go to and play a frame on the main timeline, NOT a frame in the movieclip. Is this possible?

If not, what I am aiming for is a menu of buttons, that are rollovers from which another menu pops up with buttons you can click.

Help!
Thanks

How To Get A Button Inside Of A Movie Clip Play The MAIN Movie
how to get a button inside of a movie clip play the MAIN movie

( reposted, bad grammer in 1st one)


I got a button, inside of a movie clip.....
How do I get the button to have the MAIN movie play on click, not the MOVIE clip

A Button In A Movie Clip Controlling The Main Movie
I have a button in a MC, i want it to tell the main movie to go to (& stop at) a frame labelled "hr". why doesn't this work?: -

on (release) {
_level0.gotoAndStop("hr");
}

TY in advance

Button In Movie Clip To Affect Main Movie
HI

I was wondering how I can make a button in a movie clip affect the whole movie.

I have a button in a movie clip, that is in the main scene. But the button doens't affect the main scene, which I want it to.

THanks...

Button In A Movie Clip To Trigger Main Timeline
I have a little problem...I have a navigation menu that is a movie clip containing buttons. I want each button to go to a specific frame on the main time line. But I can't seem to make it work. Does anyone have any ideas?

I tried

on (release) {
gotoAndPlay ("home");
}

But its probably trying to find that frame label within the menu timeline.

http://www.sodiumhalogen.com/new

Controlling Main Timeline From A Button In A Movie Clip...
i have a button inside of a movieclip, and all i want it to do is ON RELEASE...make the main movie GOTO & PLAY another scene.

For some reason, this isnt f*ckin working!

Is this wrong or right?

on (release) {
tellTarget ("_root") {
gotoAndPlay ("rls_details", 1);
}
}


lemme know. Thanks!

Main Timelline Control With Button In Movie Clip
I'm trying to make a photo gallery site with a dropdown menu. Within the menu are buttons to jump the main timeline to the corresponding scene, each scene will have a different group of pictures.
I can get the buttons to work only if I don't have a 'rollover' and 'rollout' control on the dropdown menu (ie if the menu movie clip is NOT animated).
I'm pretty unfamiliar with actionscript so I would love some help.


http://www.missouri.edu/~bdlhb9/menutest.html
Here is the link to what I have. As you can see the buttons are not working but the movie clip is. How can I tell the buttons to work?
Thanks.

Button In Movie Clip To Return To Main Timeline
This is similar to the question just posted. I have a movie clip with buttons in it. When a button is pressed I want to exit the movie clip and go to Scene 2 and what ever frame corresponds to that button.

I scripted a button:
on(release) {
gotoAndStop ("scene 2", 1);
}
This works when you are in the movie clip pressing the buttons but on test movie nothing happens.

I tried
on (release) {
unloadMovieNum(0);
gotoAndStop ("Scene2", 1);
}
on test movie the screen goes blank. Apparently it unloads the movie clip but does not go to scene 2 or anywhere else for that matter.

Thank you for any ideas you can give me.

Listbox, Within A Movie Clip, And A Button On The Main Timeline
Hey guys, I've been a silent user of this site for ages, but now comes the time when I have to ask a q' of my own.

I have a List Componant (menu1), which undergoes a motion tween, within the movie clip (drop_down), this list contains the names of the other scenes, and is designed to allow the user to pick what scene to play, which eventially leads back that that scene.

Then I have a button, called goButton, on the main timeline, which needs to allow the user to actually go to the scene in question. Below is the code that im currently using, but im fairly sure i need to start afresh as apposed to edit this, but any help would be much appreciated, the person who actually figures this out gets my eternal gratitude (this is for a fairly major project).

The Code That Is On The Same Timeline As The List Component:


PHP Code:



menu1.addItem({label:"0.357", data:"0.357"});
menu1.addItem({label:"7&7", data:"7&7"});
//and then loads more after that

var listHandler:Object = new Object();
listHandler.change = function(evt:Object)
{
    switch (evt.target.selectedItem.data)
    {
    case "0.357" :
        trace("0.357")
        //_root.superSelect = "0.357";
        //break;
    case "7&7" :
        trace("7&7")
        //_root.superSelect = "7&7";
        //break;
    default :
        trace("something else")
        //trace("unhandled event: "+evt.target.selectedItem.data);
        //break;
    }
}
my_list.addEventListener("change", listHandler);




The Code That Is In The Button:


PHP Code:



on(release)
{
    if (megaSelect == "null")
    {
        gotoAndPlay("Preamble", 1);
    }
    else if (megaSelect == "0.357")
    {
        gotoAndPlay("0.357", 1);
    }
    else if (megaSelect == "7&7")
    {
        gotoAndPlay("7&7", 1);
    }
    else if (megaSelect == "Alabama Slammer")
    {
        gotoAndPlay("Alabama Slammer", 1);
    }
}





As you can see im currently trying to pass the variable megaSelect from the list to the button, preamble is meary an empty scene that occures between the loading scene and the Main Menu scene, any help what so even will be greatly appreciated. To see the Flash in its current, highly unfunctional state, lol, have a look at http://www.wickedmixer.com/mixer.html

Button In A Movie Clip To Different Scene?
I can't get a button to transport the user to a different scene once I've put it in a movie clip. Anyone enlighten me? It's probably dead easy to resolve, but then I am incredibly stupid.

Button Within A Movie Clip Not Going To Another Scene- HELP
How do i get a button to go to another scence if its in a movie clip?

Button In Movie Clip In Scene 1
I have a button
It is in the 10th frame of a movie clip (let's call it Movie Clip A)
Movie Clip A is in another movie clip (let's call this Movie Clip B)
And Movie Clip B is in scene one.

When I click the button, I want the flash movie to jump to a frame called "RISE" in scene 1. But with the following code, it is not doing what i wanted:


Code:
on (release) {
gotoAndPlay("Scene 1","RISE");
MouseOverSound = new Sound(this);
MouseOverSound.attachSound("Mouse Over");
MouseOverSound.start(0,0);
}
Can anyone help me fix this please? Thanks!

Button In A Movie Clip To A Scene? Please Help
Hi,
I have created a button in a movie clip and would like it to go to frame 1 in a different scene when it is clicked on.

When the button is in the main part of the scence it works properly, but it must be in the movie clip, and when it is in there it just does nothing.

Is there some sort of trick to it that i'm missing?  I'm using Flash 5.  

Thanks :)

Jumping To A Scene From Button In A Movie Clip Button?
I need to jump to a scene from a button inside a movie clip of ascene. Can any one please help? On the frame for the button in the movie clip I have this action script:

on (press, release) {
gotoAndPlay ("presCambells", "presCamp");
continue;
}

It works (with enable simple button action) in flash, however, when I publish and preview as a swf flash file it just shows the current scene with the movie clip looping after I click on it. Please Help.

Button In Movie Clip Not Activating Label On Main Timeline Help Please
i have created a movie clip containing a sroller using actionscript, in this movie clip in this there is a another movie clip containing the pictures and buttons on separate lavers (the bits that scroll)

i have set up one instance of the button which has a onrelease gotoandplay action to scene1, (frame label) project 1

this should move the main timeline to the label and trigger another movie clip, but dosent can anyone shed any light on this

regards jason

i would be more than happy to email the flash document if someone is prepared to take a look

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

How Do I Script A Back Button From The Main Timeline To A Movie Clip?
Movie clip plays, when it reaches the end there is a stop action. Two buttons are displayed, each one takes you to a different page (in the main timeline, have on(release) _root.gotoAndStop for the buttons)..

On the two pages that the buttons take you to (on the main timeline) I want to put a back button on each to take you back to the movie clip and tell it to go to the last frame of the movie clip and stop. I'm pretty sure I know how to do that, but the problem is I have more than one movie clip: how do I script the back button to send you back to the last movieclip you viewed?

PLEASE HELP Button Inside A Movie Clip..to Call Different Scene On The Movie
i have a button "within" a movie clip, i cant get it to work to call another "scene". i already used "_root." so the command will apply to the main time line but still, its not working.


on (release) {
_root.gotoAndPlay("scene2", 1);
}
thanks!

Scene 1 / Movie Clip / Button - Problem.
hey dudes,

i've encountered a small speed bump on the actionscript learning super highway, hoping someone can help a brother out.

i have a button within a movieclip,
like this:
scene 1 / movie clip / button

so i double click the movie clip and the editing scene opens. from there i right click and enter it's actions.
i have an on (release) gotoAndPlay scene 1, frame 2.

but it wont go to and play.
it just sits there.
what am i to do?

please, and thank you.

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