Jumping To A Scene From A Buton Inside A Movie Clip
i need to make a button that is contained in a movie clip instance jump to another scene, but i can't seem to get it to work. this is the first time i decided to get organized and use scenes, so i dont really know how to do this. please help =)
so the action on my button (which is in a moviec clip) looks like this:
on (release) { gotoAndPlay ("scene3", 1); }
but obviously that doesn't work when the button is inside of a movie clip. any help is very much apreciated!
FlashKit > Flash Help > Flash ActionScript
Posted on: 02-22-2002, 02:45 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Problem In Jumping To Next Scene From Within A Movie Clip?
please help..
i have a flash movie with 2 scenes.in the first scene there has a movie clip name clip1.the clip1 contains a button. how can i jump to next scene by pressing the button?.i tried nextScene,gotoandPlay. methods.but it was not successfull.
Jumping To A New Scene, But To A Label In A Movie Clip..
hi. i have a flash movie with three scenes. in the 2nd scene, "icons", i want to jump to the third scene, "images". i have a button in the 2nd scene that does this. but the 3rd scene is just one frame long and has a movie clip in it with the instance name "gallery". in the gallery is 40 frames long and has 4 frame labels. i want the button in the 2nd scene to jump to the 3rd scene, then go into the gallery movie clip and play the 2nd frame label called "harvard"..
how do i do that?
i tried this:
on (press) {gotoAndPlay("images","_root.gallery.harvard");
}
but it just goes to the "images" scene but not into the movie clip.
mikey
Jumping From Movie Clip, Back To Scene
wussup people?
arite, ive got a flash site in which i have a scene wit a movie clip. now, thing is that i have a back button in the movie clip which when u click, it is suppose to jump back to a navigation bar that is in the scene. but keep in mind at all times that the movie clip is in a layer which is in the scene. i thought it'd work just fine by using the goto and play option for the end of the clip when it finishes, and make it go back to the scene, but instead of going back to the scene, the clip just repeats itself, and goes to the frame within the clip, which is actually meant for the scene frame that it is suppose to go to..
sounds confusing, but... yea.. any suggestions?
URGENT: Jumping From One Scene To Another By Closing A Movie Clip
Ive got slight problem with my flash...
I am trying to jump from one scene which has a move clip..
In this movie clip is the structure of every graphical element except background and when I try and go onto another scene Via a button inside this move clip.. the movie clip does not close and the score starts from the beginning of the same scene totally ignoring the action script I put inside the button??
Here is the code I use for the button:
on (release) {
tellTarget(_root) {
gotoAndPlay("Scene2", "go");
}
}
Can somebody PLEASE HELP!
Thanks in advance
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?
Jumping To A New Scene From Inside A MC
hello, please help if you can.
I'm in a MC (_root.myMC) in scene_1 and want to jump to frame 1 in another scene (scene_2) on the click of my button - could anyone please tell me the code I need to make this jump?
thanks, johne.
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.
Linking To A New Scene From Inside A Movie Clip
i have a button inside a movie clip that when pressed i would like it go to the beginning of another scene.... what am i forgeting ive tried
on (press) {
_root.invoice.gotoandplay;
}
invoice being the name of the next scene....
your comments are appreciated.... i really want to go home
Scene Navigation From Inside Movie Clip
i am having a problem with getting a movie clip to target a new scene. The movie clip is on scene 1 frame 1 with a stop action. All the action takes place in that movie clip. At a certian point i want to go to a new scene but it will either just stop at the end of the movie clip or it will play the movie clip from the beginning depending on which way i try to code it. I have even tried targeting a movie clip that contained just the code to go to a new scene and that still didnt work. Any help would be greatly appreciated.
'Go To' A Scene From Button Inside A Movie Clip
Any help appriciated. I made a drop down menu with several buttons inside a movie clip. When one of the buttons inside the movie clip is clicked, I want my move to go to a different scene. I can't seem to get this to work. I've tried...
}
on (release) {
gotoAndPlay ("artist", 1);
}
and
}
on (release) {
gotoAndPlay (".root_artist", 1);
}
Please help
Calling A Scene From Inside A Movie Clip?
Hi
I have a Movie clip on my main stage. This movie clip contains all my buttons for my website. How can I make the buttons call another scene from inside this movie clip?
Can some1 help me out here?
If ur not sure what i mean, I will try and re explain it
PLease help me
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
Can't Jump Scene From A Button Inside A Movie Clip
can anyone help me?
i'm using a script made by joshua davis (reverb) called boxes. in plane words it looks like 5 squares onj the stage, rolling over makes them bigger, rolling out makes the smaller (in a very sophisticated way), u can also drag the squares.
the script that rules the button that makes possible all this is:
on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}
on (rollOver) {
tellTarget ("/I_1_exp") {
play ();
}
if (/:ZSorting eq "Deactivated") {
/:recentM = getProperty(_target, _name);
/:Zorder = Number(/:Zorder)+1;
duplicateMovieClip ("/" add /:recentM, /:recentM add "temp", /:Zorder);
set ("/" add /:recentM add "temp:mynumber", eval("/" add /:recentM add ":mynumber"));
/:Zsorting = "Activated";
set ("/" add /:recentM add "temp:growth", 50);
set ("/" add /:recentM add "temp:switch", 1);
removeMovieClip ("/" add /:recentM);
}
}
on (releaseOutside, rollOut) {
tellTarget ("/I_1_exp") {
gotoAndStop (1);
}
/:Zorder = Number(/:Zorder)+1;
duplicateMovieClip ("/" add /:recentM add "temp", /:recentM, /:Zorder);
set ("/" add /:recentM add ":mynumber", eval("/" add /:recentM add "temp:mynumber"));
/:ZSorting = "Deactivated";
removeMovieClip ("/" add /:recentM add "temp");
set ("/" add /:recentM add ":growth", 50);
set ("/" add /:recentM add ":switch", 0);
/:recentM = 0;
stopDrag ();
}
What i tried to do is replacing:
on (press) {
startDrag ("");
with:
on (press) {
gotoAndPlay ("Scene2", 1);
because I want to jump from scene 1 to scene 2
but when i tried to modify the script in this way nothing happens, the scene remains the same.
i'm going crazy!!!!!
Change To Another Scene With A Button Inside A Movie Clip?
How do you make a button take you to another scene if that button is placed within a movie clip and not on the main stage.
I have 2 scenes i want to jump back and fourth to.
One is called menu and one is called overview.
On the menu screen I have a movie clip which contains a button within it. For the button Action I have the following code...
on (release) {
gotoAndPlay ("_root.Overview", 1);
}
Can Not Jump To Scene From Inside A Movie Clip/button In A MC
Hello...
I am obviously fairly new to flash to be asking such a question, but could someone please tell me how i can jump to a scene or frame label from inside a movie clip? I have the same problem when trying to jump to a different scene/frame label when using buttons embedded in movie clips... The code below gives example of my problems. Want to jump to a frame labelled theend inside scene 1:
on (release) {
gotoAndStop ("Scene 1", "theend");
}
Linking To Scene 1 From A Button Inside A Movie Clip.
Howdy people, first post.
Trying to do my flash assignment and Im stuck and cant find anything in the search so had to sign up to see if anyone can come to the rescue!
basically exactly how the thread words it.
i have a movie clip on Scene 1, when movie clip is rolled over it goes to its frame 2 where other stuff happens, one of which includes a button. how do I go to a frame number in scene one when the button is clicked which is inside the movie clip?
Ive tried
Ive got a button inside a movie clip, and when the movie clip is rolled over it plays, then the button can be pressed and becomes clickable.
How to do I get it, when clicked, to go to a certain frame in Scene 1 ?
Ive tried
on (press) {
gotoAndPlay(45);
}
and
on (press) {
Scene 1.gotoAndPlay(45);
}
both no luck anyone able to help
Ive tried a get URL command, even into a javascript window and can get it working fine, but for some reason cant get this working
Question On How To Direct To Different Scene Inside A Movie Clip
Hi
i am doing a slide show presentation. i had created a menu that links to individual slides.
these individual slide reside in each different "Scene". my menu is embeded inside a movie clip. but when i instruct the script inside the movie clip to goto the specific "Scene", it doesn't work.
the script does not recognise: _root.gotoAndPlay("Scene 2", 1) inside a movie clip.
how do i solve this problem.
many thanks.
How To Make A Button Inside A Movie Clip To Go To A Another Scene ?
october 25th ,2002
I have a button inside the time line of a movie clip ;
that movie clip is placed onto the time line of scene 2;
I have tried to make that button to get back to a previous
scene with different actions haven´t worked as below :
......
1- (jazz gallery is the name of that previous scene)
on (release) {
gotoAndPlay ("_root.jazz gallery", 1);
}
.......
2- I issued this label , jazz_gallery1 , at the scene I want to go
on (release) {
gotoAndPlay ("_root.jazz gallery", "jazz_gallery1");
}
........
3-
on (release) {
gotoAndPlay ("_parent.jazz gallery", 1);
}
........
4-
on (release) {
_root.gotoAndPlay ("jazz gallery", 1);
}
......
None of all above has worked !
Can someone please tell me what´s wrong ????
Thank you very much.
Cheers
MMKT
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.
MX, Buton/movie Clip
I must be having a Brain fart... New in MX is the ability to finally give buttons an instance name, without burying them inside a MC.
So....
Here's my dilema, how do you refernce a dynamic text field inside a button?
Begining of the movie I set this variable:
_root.sub_butt_1.label = "Accessories";
"sub_butt_1" is the button's instance name, "label" is the text field that I'm trying to populate within the button.
All my results have been zippo.
Thanks
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.
[MX] Buttons That Are Inside A Movie Clip, Which Is On A Scene Do Not Work. Help Plse
ok, I have a website with 4 pages (home, services, portfolio and contact). on the portfolio page there are two buttons called "web" and "print". (Each page is its own scene.)
The web and print buttons are inside a movie clip. the reason they are in the movie clip is because i wanted them to float about the page (scene) looped. thus they are in a movie clip. when you click on each button they are supposed to go to their respective pages. Inside the movie clip i went in and added the "go to and play" action script. All other buttons on the site work except for the web and print button that move around the page in the movie clip.
so basically the buttons are now floating about on the page within the movie clip that is on the main scene. the problem is that when you click on the buttons they do not do anything. when you click on the button it changes color like it is supposed to, but it just doesent take you to its respective pages.
Thanks for any help....
Reply With Quote
Mvie Clip Conditonnaly Jumping To Next Scene?
Hi,
I'm making a little shooting game wich has a timer. The timer is a movie clip that's dropped on to the main stage.
I want to jump to the next scene when the the countdown reaches 0, but the timer simply dissapears and the game continues without jumping to the next scene. Here's the code from the countdown movie clip to check the condition ("output" being the value of the countdown):
if (output < 1) {
gotoAndStop ("Scene 3", 1);
} else {
gotoAndPlay ("loopstart");
}
If i just put:
gotoAndPlay ("loopstart");
the counter coutinues couting down negatively.
Maybe the code to check the condition should be in the main stage? I tried to do that but couldn't figure out how.
Any help would be greatly appreciated.
tia,
lucas
Jumping To A Scene Within A Movie?
On my "home" scene (as well as every other) I have a movie clip I have created with a drop down menu for navigation. The buttons within this drop down menu need to enable the user to go to another "scene" when clicked on. Whenever the button is clicked, (it's coded with go to andplay ("interiors", 1) ) Flash jumps back to frame 1 within that current scene. Why does this happen, why can't it recognize to jump to another scene just because it's a button in a movie clip?
Thanks much!!!
Jumping To Next Scene From Within A Movie
Hi,
I have a movie with multiple scenes. I want to navigate to a different scene using a button that is embedded inside a movie. I tired the "gotoAndPlay(scnene name, frame number)" command. But it only works if the button is outside the movie on the main timeline (i.e. topmost level).
Is there a solution to this problem?
~action_maniac
Jumping To Another Scene Of Main Movie
help!
i have the main movie with several scenes, in this main movie is another movie that includes several buttons, with which i want to navigate through the scenes of the movie.
that doesn't work with a command like:
on (release) {
gotoAndPlay ("scene5", 1);
}
if i place(what i don't ****ing want!) the button in the main movie, this command works.
please help me out!
If; Else If, Jumping To A Frame Inside A Child Movie
I've got 2 buttons representing 2 music CD's. Each CD has a playlist that I want to scroll up into view when you click on that CD's representative button. But I also have to use else if because I want nothing to happen if they click on the CD that is already loaded...as people are prone to do something like that. I tried a few statements, here is the last one I tried.
(NEWJUKESTOP = the frame label for the jukebox playlist in it's visable stoped frame)(NEWJUKEOFF = the next frame label where the jukebox scrolls off the screen)(same for OLDJUKESTOP & OLDJUKE OFF)
//CD 1 button
on (release) {
NEWCD = "NEWJUKESTOP";
}
on (release) {
if (NEWCD = TRUE) {
stop();
} else {
gotoAndPlay("NEWJUKEOFF");
}
}
//CD 2 button
on (release) {
OLDCD = "OLDJUKESTOP";
if (OLDCD = TRUE) {
stop();
} else {
gotoAndPlay("OLDJUKEOFF");
}
}
Buton Inside ScrollPanel
I have some buttons that are using _visible = 0; and _visible = 1; to show and hide some images. (swf1)
This buttons are in a swf (swf1) that is then loaded into a another one inside a scrollPanel, when it loads the swf1 the buttons inside swf1 dont work.
What's wrong????, is it a path problem??
Using A Movie Clip Inside A Movie Clip To Start A Frame Of An MC Inside A Movie Clip
Situation:
I have a movie clip inside a movie clip with a button inside of it.
This button on release goes to a different movie clip(svideo) in a different frame on the maintime. This movie clip has a movie clip(portfolio) inside of it.
Okay: I use an absolute path on the aforementioned button
on release
_root.svideo.portfolio.gotoAndPlay(60);
But, for some reason Flash won't go to frame 60 of the portfolio movie clip that is inside of the svideo.
I have tried numerous variations on reaching frame 60 of portfolio. Like going to the maintime line and going to the portfolio MC. Also, portfolio and svideo are the instance names and not the name of the actual movie clip.
If anybody could help, I would appreciate it. Thanks.
? About Jumping From A Frame In A Clip To A Frame In The Main Scene
Hello. I have a question. I have a question about jumping from a frame in a movie clip to a frame in the main scene. In my main scene, I have a "stop" action in frame one. In this frame, I have a movie clip that is 100 frames long. On the 100th frame of that movie clip, I want to jump to the 5th frame of the main scene. This is the actionscript that I tried, but it didn't work:
this.gotoAndPlay(5)
//This is the code that I placed in the 100th frame of my movie clip, but it doesn't seem to work.
What am I doing incorrectly? Thanks in advance for any advice! (I am using Flash 5)
Jumping Around In A Clip That's In A Movie
Hope I make more sense than my subject title!
OK, just for reference, you are welcome to go to my web site and launch the site....http://www.bluengrey.com/
The whole site is one main movie and when you click on one of the links at the top-right, an external swf is loaded into an invisible clip "myClip"
I'm trying to update the Portfolio section to make it a but easier to use. In the new version (not uploaded) I want each of the buttons in the timeline to (when clicked on) jump forwards or backwards in the timeline of that scene to various frames.
But, I seem to have a problem, whenever I have any instruction that says "goto frame 10" for example, it works the first time, but the next time it triggers the whole of the swf loaded into "myClip" to play through again from the start.
How do I target (for want of a better word) the movie clip in the middle of the page (myClip) to say that I don't want it to go to the start and play through again...I want it to go to a certain scene and a certain frame.
I've tried things like...
on release....
this.gotoAndPlay(scene,frame)
or
_root.myClip.gotoAndPlay(scene,frame)
But to no avail...how do I tell the buttons which are part of that movie clip, to keep things at that scene and just go to the frame I want?
Cheers,
Phil
Navigating From Button Inside Clip To A Scene.
I have the clip "scrollbar" sitting on the main timeline (a scene called "Main). I am wanting that button to change to the Scene "Project1" from wherever it is.
Here's the code I am currently using:
on (release) {
_root.gotoAndPlay("Project1","p1.01")
}
Any ideas why this isn't working?
Jumping Scenes From Movie Clip
I tried searching the Help Forums first, but I kept getting errors so I'm just gonna ask for help here.
I have a navbar for my flash site, and its in its own movie clip. What I need to happen is when the user clicks on a button in the navbar the whole thing jumps to a different scene. I tried using the basic on release goto and play scene name, but that doesn't seem to work.
Does anyone know what I can do to make this work if it can be done at all??
Thanks!!
Movie Clip Action - Jumping To A Frame
Hi,
Why is it that if I have a movieclip in my main timeline with the action:
on (press) {
_parent.gotoAndPlay(2);
}
it works fine.
BUT
if I want this movieclip's action to jump to the nextScene, it doesn't work:
on (press) {
_parent.nextScene();
}
Sooo
Seeing that Scene 1 is only 2 frames long, I change it to:
on (press) {
_parent.gotoAndPlay(3);
}
it jumps to Scene 2 fine.
Okay what I am asking is.. why doesn't _parent.nextScene(); work? Why doesn't flash know where to jump to, but when a button is in the main timeline with:
on (press) {
nextScene();
}
it works?
anyone have any idea? or is this just one of the many wonders of flash?
Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,
I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.
on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);
}
Thanks!
Stu
Urgent::movie Clip Help Jumping To A Frame Label
I need help with my actionscript because I am unable to embed movies and then once they are finished playing have the script take me to the main timeline and play a new movie or play a new frame label.
Here is the layout of my movie:
In scene 1 I have frames 1-9 labeled "why" and frames 10-19 labeled "experience."
Under the "why" label, there are two layers, each containing a movie clip: "background and "why." Once the "why" movie clip is finished playing, I want to have the movie start playing at frame 10, labeled "experience."
I tried putting the following script at the end of the "why" movie:
stop();
gotoAndPlay("Scene 1", "experience");
but all that does is play my movie -- the background and why clips play, but then the why clip repeats over and over again instead of stopping and jumping to the main timeline's frame 10, labeled "expereience"
Can someone help me quickly please.....I'm working on a project that I need to move ahead on ASAP. Thanks so much.
I Cant Navigate 1 Scene From Another Scene Thorogh Movie Clip
SIr i made a Movie Clip and in the movie clip there are 4 buttons when i want to use the button so go to another scence it cant happen so how can i go to Another scene by the button which is present in the MOVIE clip
i think u understand my Problem
simply summary is that i there is a button in the movie clip and i want to use the button to go to another scene but it cant happen
Thk u in adnvance for any body Consideration
Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.
I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.
If I put the code inside movieclip01
button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}
It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.
I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works
Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)
movieclip01.button01.onRelease=function(){
Can't Seem To Get The Paths Correct When It's Occuring Inside A Movie Clip Inside
main movie on _level0, navigation loads into _level1, icon is dragged and dropped loading another samples.swf into _level2.
drag and drop works fine running outside of main movie but not inside main movie. i'm assuming i've messed up paths.
i tried to include the code (twice now) but it keeps cutting off my message.
it's an action on a button inside a movie clip inside a movie loaded into _level1. it needs to reference a movie clip on the main timeline of the _level1 movie. what would the path be?
Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.
something like on here http://www.demarchelier.net
hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?
Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.
in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:
Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}
thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:
Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}
The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.
the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.
thanks!
|