Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-25-2004, 05:20 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Control Main Timeline From Within A Movie Clip? Help
Please help...
I have a video game on the main timeline of a scene. The scene label is "Game"... before the game starts, I have frame 1 of the main timeline attach the movie clip "Instructions" and play it. Once instructions reaches the end, I have Flash remove the video clip(works) and I want it to go back to the main timeline(Game) and play frame 2. What command do I use to have it do this? I tried:
Game.gotoAndPlay(2);
_root["Game"].gotoAndPlay(2);
BUT it Doesnt Work! I assume because "Game" is the Scene name, not a movie clip name... Any ideas on how to do this??
THANK YOU!
Control Main Timeline From Within A Movie Clip
Is it possible to control the main timeline from within a movie clip without a button? Basically what I am doing is, I have snow using Actionscript on the main timeline, actually I have two snow effects. One is just regular snow, the other is snow that "sticks" and plies up when it hits a MovieClip.
Then, I have a couple other movie clips on the main timeline as well. One is a changing background and the other is snow at the bottom of the screen piling up.
I have 3 frames on the main timeline that keep looping to produce the snow, then inside the movieclips I have about 215 frames. Now, at the end of one of those movie clips, I want the one that was piling up snow to fade out, along with the snow effect that was piling on top of it. What I did was created another scene. However, I can't get to that scene from inside of a movie clip without a button, can I?
Thank you very much in advance.
Can A Movie Clip Control The Main Timeline?
ok, heres the deal, im making a game in which if you hit the movie clip (path_mc) you go to the next level (the next frame). The script is on the player.
heres what my script looks like:
onClipEvent (enterFrame) {
if (this.hitTest(_root.path)) {
//action to get to timeline{
nextFrame()
}
}
}
i need a way to preform an action from movie clip to timeline
i tried _parent.timeline, _root.timeline is there any way i could set timeline as a variable?
please help.
thanks in advance.
Control Main Timeline From Clip Inside Movie
Have a movie clip on my timeline(its a button)
_root.home.onRollOver = function(){
_root.home.gotoAndPlay("over");
_root.home.back = false;
_root.home.play();
}
_root.home.onRollOut = function(){
_root.home.gotoAndPlay("out");
_root.home.back = false;
_root.home.play();
}
_root.home.onRelease = function(){
gotoAndPlay("main", 1); }THIS IS WHAT I CANT GET TO WORK
When I click the button nothing happens. Ive tried..
_root.gotoAndPlay("main", 1);
gotoAndPlay("_root.main", 1);
gotoAndPlay(_root."main", 1);
Ofcourse none of theese worked.
Control A Dynamic Movie Clip From The Main Timeline
Hi everyone,
Here is the problem, I have two .swf files
one of them is the base movie that loads data about a template, and then loads the template (2nd movie) inside an empty movie clip on stage. Now I want to load an image inside a movie clip which is inside the template(2nd movie) using AS from the main timeline (base movie).
Thanks is advance
Ameretat
Make Movie Clip Control Main Timeline
i just got a navigation menu from someone but i am having a problem using it. it is done in movie clips and not buttons, so how do i get it to control the main "timeline" or "movie" with which it resides?
i am using flash 8.
any help would be greatly appreciated!
matt
Movie Clip Symbol Won't Play On Main Timeline
Hi everyone,
I've created a movie clip symbol with it's own animation on its timeline. I've placed this symbol onto the first frame of the main timeline but when I test it, it doesn't play. There's no stop actions or anything on either timelines so I'm not sure why this is happening. I thought that the animation in a movie clip symbol will automatically play (i.e. if you test in a browser) once it's on the main timeline - is this right? Or am I doing something wrong. Maybe I need to tell it to play?
Appreciate any advice.
Tell Movie Clip To Play/stop From Main Timeline?
I have a main timeline that has a movieclip called "Clock". At one point in the main timeline I want the movieclip to play and at another point I want it to stop. I can't get script to control the movieclip.
Any tips?
Thank you so much for your time.
Please Help First Website Movie Clip Placed On Main Timeline Wont Play
Hi! if any one could please help me it would be greatly appreciated!
So im trying to make my first website in flash and ive ran into a problem. I have the main movie, my main time line. I have a few animations going on in this that were all created in that main time line. those work fine. however, i created two new movie clips (still inside the same .fla file) and animated them with thier own time line. I then thought you could just drag and drop these movie clips onto your main time line and they would play inside the movie. but when i press ctrl + enter, the dont play!
here are some points of intrest.
my main movie (the main time line) is 130 frames.
the movie clips i made inside the same .fla file are between 400 and 600 frames.
i placed both new movie clips on the 130th frame in the time line with their own layers.
also there is a layer for actions on the 130th that has stop();
i thought that maybe the time line had to be as long as those movie clips i created and so i extended it but they still didnt play.
im thinking action script is involved? please help me im getting pretty frustrated and im sure there is something simple to achieve this.
here is a link where you can download the source files im using. if you open the file the two movie clips i created are called front two and front one and are layers with the same name.
this board wont let me fully post my link cause the last word in it is s*h*i*t* so youll have to type it in your browser. its http://public.me.com/matts*h*i*t* (just remove the asterisks)
also i noticed that my file is huge. i used photoshop to create everything and them imported it into flash. is there a way i can reduce this size?
thank you sooo much! please help!
-Matt
Telling Main Timeline To Play Backwards From Movie Clip
Hi,
I am trying to tell flash from within a movieclip to start playing a specific frame within the main timeline only after it has finished playing the movieclip backwards. I can get the movieclip to play backwards fine but it's getting the main timeline to start from frame 1 which doesn't work. I have the following code on the first frame of the movieclip (which is called video) but it doesn't seem to do anything
onClipEvent (enterFrame) {
if prevFrame == 2 {
_root.gotoAndPlay(1);
}
else if {
_root.video.gotoAndPlay(2);
any suggestions?
Controlling Navigation Of A Movie Clip Inside A Loaded Swf From Main Timeline
Hi,
I am using the two lines of code below in my main movie to laod another swf into level 50 of the main movie. I then want to control an instance of a movie clip inside the loaded swf called background but the second line (goto) does not work.
Code:
loadMovieNum ("desktops/"+backgroundimage, "50");
_level50.background.gotoAndStop(2);
The first line definately works fine.
Does this mean the hierarchy is such that I should be saying _level50.loadedswf_name.background.gotoAndStop(2)
In which case is there a way of giving the loaded swf an instance name when I load it. Or am I completely wrong?
Thanks again
Robin
Movie Clip Added Using AddChild() Plays Animation Before Loaded To Main Timeline...
In my main timeline I have a movie clip (cursor_mc) that is loaded from the library using addChild(). It works and loads the movie clip, but the animation within cursor_mc is already done. I want the animation to start once the clip is loaded. This should be easy for the action script experts out there, I'm pretty new at this. Thanks for any help!
Loading Movie Into Main Timeline From Movie Clip Within Main Movie
Hi there,
I'm having major difficulties loading external SWF's into my main movie. The button actions are in a movie clip within the main movie. I've used the following AS to load in my external SWF files on higher levels:-
mybutton_bn.onRelease {
loadMovieNum("two.swf",1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
}
Similarly, my external text files are not loading!
myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
my_txt.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("textfile.txt");
All works fine until I upload to the server. It's really driving my around the bend. Any suggestions will be gratefully received.
Many thanks
Q.
Cant Get Frame In Main Timeline To Play Frame In Movie Clip
Hi all,
Ok, I want a section of a movieclip to play up until a certain frame on the main, or _root timeline. Then I want a different section of the same movie clip to play. Now I have the movie clip all set up all fine and dandy, yet I cant get it to the frames or 'section' it is playing when it reaches the apropriate frame. I have the following code on the _root timeline frame.
Code:
gotoAndPlay("stop");
(I have a frame label "stop" where it should be) Is this the right code I should be using? It has worked in the past, but it has been in between an on (something) event/action (not quite sure of the correct termanology there)
Please help.
Addressing The Main Movie Timeline From A Movie Loaded Via LoadMovie.
I have a clip on the main time line of a host movie that I would like to make visible when the second frame of the swf to be loaded, containing an embedded video movie clip loads.
I have this code on the video clip in the movie to be loaded:
code: onClipEvent (load) {
_root.witch_mc._visible=true;
}
Which I had hoped would have addressed the main timeline of the host movie where the targeted clip was – but no joy.
Any help please?
Play Movie In Timeline But Keep Main Timeline In Place
Hello,
Scenerio: You are at frame 1 of the timeline and it's stopped, you hit a button and it jumps you to frame 20 and then at frame 20 a movie clip plays.
Question. Can I have that movie play for however long I want (let's say it's a 100 frame movie) BUT have my main timeline still sit on frame 20? And then when the movie is done playing it goes to frame 21 of the main time line? Currently I have to make my main timeline be the same length as any movie I have in it, and so my main timeline ends up being an absurdly long.
Just a general answer will help - which action scripts would I be looking to use (I'm using Flash 8 Pro)?
Thanks
Control Function In Main Movie From Loaded Movie
I have a main movie (securityGrid) setup. It is a form for adding and updating user information for an application.
I have a second movie (empSearch) that allows me to search the user database, so I can add a new user to the application. I want to use this movie as the default search movie in other movies
I have an empty movie clip (holdMovie) in the main movie (securityGrid) that loads (empSearch) using a on press function with a button. It also passes in parameters from (securityGrid) to tell (empSearch) what the output parameter is and that it is a movie and not an HTML call. This part works fine.
loadMovie(empSearch + varString,_root.holdMovieMC);
After I use (empSearch) to find the person I want, I click a button to send that information back to (securityGrid). This part does not work. I've tried many methods of getting this work.
Set a global
outputResults = itm.empName + "," + itm.loginId
_global[outputVariable] = outputResults;
This works, but I can't find a way to trigger a function in (securityGrid) to unload (empSearch) and then fill in the add row form in (securityGrid).
_root.getAddUserForm(outputResults);
Does anyone have a simple example of what I am doing, so that I can possibly figure out what I am doing wrong? The movies and database are on a Intranet, so I can't post an example.
Controlling Main Movie Timeline Via A Movie Clip
hi all,
i need some help figuring this out. i created a bunch of frame labels for my main movie timeline to layout the sections of my website (i.e., "home", "news","gallery", etc.). now, i am able to "jump" to the different sections of the site when i clicked on the buttons that i have on the main movie. for example, i assigned the the following codes to the "news" button to go to that section:
on (release) {
gotoAndStop("news");
}
here's the problem: i have also created a short animated movie clip at the beginning of the main movie timeline that, once the animation is done playing, a button appears that allows user to click and enter the site. with the same line of code above assigned to the button (with the "news" word changed to "home" for home page), when clicked, it only goes back to the beginning of the animation instead of the home page section?!
please help! thank you!
michael
Loaded Movie To Play A MovieClip In Main Movie ?
Hi all,
I am trying to get a loaded movie to play a movieClip in my main movie. The below actionscript in my loaded movie doesn't play the movieClip in my main movie.
Here is the actionscript I have on a layer of my loaded movie...
_parent.tutor.txtboxer.follow.gotoAndPlay("one");
am i correct in thinking that _parent refers to the main movie?
the movieClip (instance) follow is a child of (instance) txboxer which is a child of (instance) tutor.
_root doesn't work either...
thanks for help
sue
Loaded Movie Inside Main Movie Will Not Play.
I have a main movie that plays up to a certain frame then stops. From there I have links when clicked on it loads movies using loadMovie() into an empty movie clip.
My problem is, when the only movie with animation loads, it doesn't play. I have a preloader in the first two frames, then when the movie loads it is to gotoAndPlay(3). The preloader runs and works, but when it jumps to frame 3 it doesn't play.
The movie runs fine when the swf file is opened in the flash player. Or when I test it in the flash program is works fine. I only have this problem when I load it into another movie.
Does anyone know what is causing it?
Controlling A Movie Clip's Timeline Separately From Main Timeline
I've got a problem here that I've been trying to figure out for a while now, and it seems like it should be way easier than this. Here's what I've got:
I'm trying to make a neato little flash swf with lots of buttons that you can push and another little movie clip will show some little animation.
I thought I could get this done pretty simply by making a bunch of buttons, giving them an over, down, hit, sound, etc. and then having one single movie clip do all of the animations, but cleverly use stop(); and gotoandplay();
I have tried a few different ways, searched through the help & tutorials, looked all over forums on the internets, and I still can't get this to work. The main timeline is really just 1 frame, and its only purpose is to just hold all of the buttons. I have given all of the buttons instance names (ending with _btn). There is a separate layer in the main timeline for the actionscript alone, and was hoping to put all of the gotoandplay commands there. The code that I am trying to use in that frame is:
Code:
this.WV_btn.onRelease = function(){this.productzmovie_mc.gotoAndPlay(2);
};
The productzmovie_mc has a command to stop(); in the first frame, and I am trying to get a button to skip to the next frame to get it going. I put a stop(); on the last frame of that animation so that it won't run through the whole thing on the first button press. If I remove that stop(); on the first frame, the whole animation just runs whenever I test it and the button has no effect.
I thought this would be way simpler than making 25 separate movie clips and hiding them or spawning them. Does anyone know what I could be doing wrong here? This seems like a pretty simple operation, and I am probably screwing up some mundane detail (I always do that). Be gentle, I am trying to learn Flash and I am a bigtime n00b. I can post the .fla if you need to see it, but it's pretty simple so far, just lots of buttons.
Thanks!
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 To Control Main Timeline From A Button In A Scrolling Movie?
I just can't figure it out... I want a button to have the main timeline play when pressed - it is part of a movie in a scroller, so I need it to reach out from the scroll movie to the main timeline and tell it what to do, but all I have tried isn't working.
Thoughts?
Thanks.
Instructing An External Movie Clip To Play From The Main Movie
Anyone tell me the easiest way to sort this one?
I have a movie clip that consists of 2 keyframes.
It is loaded onto level1 above my main movie and the first frame is blank (so that it does not come into play until instructed).
The second keyframe is the main part of the loaded movie and this needs to play after receiving instruction from the main movie.
My problem is 'How do I instruct this to happen??'
I have no knowledge of action script so if anyone could advise or tell me if there is an easier way to do this I would be eternally greatful........................................
Continuous Play Of Several Movie Clips From One Main Movie Clip
hi,
i'm trying to play several movie clips, one after the other from one main movie clip.
i've got 8 movie clips, "m1.swf", "m2.swf", etc. "m8.swf", and one main movie clip, "play.swf".
i've tried using loadMovie, but it only plays the last movie clip. this is what i've got.
in the main movie clip, i've put a play button, and the actionscript i have in the button is:
on(release)
{
this.loadMovie("m1.swf",play);
//this.unloadMovie("m1.swf");
this.loadMovie("m2.swf",play);
//this.unloadMovie("m2.swf");
this.loadMovie("m3.swf",play);
//this.unloadMovie("m3.swf");
this.loadMovie("m4.swf",play);
//this.unloadMovie("m4.swf");
this.loadMovie("m5.swf",play);
//this.unloadMovie("m5.swf");
this.loadMovie("m6.swf",play);
//this.unloadMovie("m6.swf");
this.loadMovie("m7.swf",play);
//this.unloadMovie("m7.swf");
this.loadMovie("m8.swf",play);
//this.unloadMovie("m8.swf");
}
is this wrong? how can i get this to work correctly. really important that i get this working for my job.
any help will be greatly appreciated.
cheers
Loaded .swf And Main Movie Control
hey guys simple question needing answered
i have a flash file where the .swf files load in on to the stage (this works fine). but basically what i need to know would be how to edit the follwing code so that when a button is press in the loaded .swf it will go to a certain frame on the main flash file
if (Username_txt.text == "admin") {
gotoAndStop("admin_page");
}
i've tried adding _root, _parent to the start but that doesnt work is there any other code i should try
thanks in advance
Playing The Main Timeline From An Loaded Movie.....?
Hi all, I have a simple question, In the main Scene in a frame I have a action:
Stop
Load Movie ("graficooo.swf", "porttarget2")
After, the movie open and play... but in the end I need to put a action that unload the movie
(Stop // Unload Movie ("../porttarget2")
and play the timeline of the scene..... What is the correctelly action ???
Thankx
Loffi
Help Targeting Main Timeline From Loaded Movie
How do you target the main timeline from a movie loaded to level1?
I’ve tried things like the fallowing without success.
_root.gotoAndPlay(2)
_parent.gotoAndPlay(2)
_level0.gotoAndPlay(2)
please help,
S
How To Address The Main Timeline From The Loaded Movie?
Hi,
i got a movie loaded in my main timeline(_root) in the frame 20.
and i got a stop() action as well in the same frame. Am loading the movie at a level8. now, i want once the loaded movie is finished playing, i want the main timeline's playHead move to frame21.
so, what i did was, i written the code in last frame of the loading movie like this:
_root.gotoAndStop(21);
\this doesn't work.
__root.nextFrame();
\this too doesn't work.
can i use some sort of function, to sort my problem?
How To Address Main Timeline From The Loaded Movie?
Hi,
i got a movie loaded in my main timeline(_root) in the frame 20.
and i got a stop() action as well in the same frame. Am loading the movie at a level8. now, i want once the loaded movie is finished playing, i want the main timeline's playHead move to frame21.
so, what i did was, i written the code in last frame of the loading movie like this:
_root.gotoAndStop(21);
\this doesn't work.
__root.nextFrame();
\this too doesn't work.
can i use some sort of function, to sort my problem?
[f8] Problem With Movie Once Loaded Into Main Timeline
hello
i have a problem that i have been unable to solve foe weeks now and it's driving me mad.
I really hope someone here can help.
I have attached a php script and flash form.
The flash form and script work fine when the form is accessed directly.
See here (give it a go):
http://www.luciddreampictures.com/ld_contact.swf
But when is is brought into my main flash file it sends the email but the php returns the error message 'no email address supplied' (even though an email address has been supplied!) and the flash is sent to my 'resubmit' frame.
Try it out here:
http://www.luciddreampictures.com
click contact (i know the button need to be sorted).
Feel free to send test emails to see what's happening.
I know there are different ways scripts to use but i would like to get this one working.
Can anyone figure out why it doesnt work properly when nested in another movie?
i don't think it is a targeting issue as the emails are being sent and the error message is being received.
Thanks for your help.
Julian
Controlling Main Timeline From Loaded Movie
I have loaded an external movie onto the main movie in a movie clip called "mainholder" - In the main timeline on the main movie there is a "stop" command on frame 1. From the loaded movie, I want to control the main timeline and tell it to go to frame 2. Can someone tell me the actionscripting to do this, I have tried several commands and getting frustrated. ;-)
Thanks
Using Movie Clip To Control Main Movie
i have a movie clip sitting on my stage. the movie clip is just 4 buttons
they are : skip back, replay, continue, and skip foreward
when i click (for example) the continue button, i just want the main movie to play.
this is what i have on the button in the movie clip.
Code:
on (release) {
tellTarget ("_root") {
play();
}
}
but its still not telling the main movie to play.
help please
Movie Control - Pause And Play Loaded Swf Movie
I created an swf movie from Camtasia Studio. Now I am loading the movie into a flash movie but I would like to create a button that will control pause and play of the loaded swf movie.
Any sugestions.
Movie Clip Inside Movie Clip - Control From Timeline
hello all.
i have a movieclip (instance name: mov1) with a movieclip (instance name: mov2) inside of it.
mov1 is on my main timeline. I want to control mov2 from the main timeline. how can i do it?
i am trying what i thought would work which is
_root.mov1.mov2.stop();
Movie Clip Timeline Vs. Main Timeline
Ok, i have made a movie clip in Swift 3d and have imported it into Flash MX. Now it is in the first frame as flash will place it there and what i would like to have happen is to tell frame 1 that when the movie clip's timeline ends and stops(frame 90) to then move the parent timeline to continue with stuff
If any one reads this please help or refer me to a MX book that is worth the valuble time we think we have!
Mike
Loaded Swf With Buttons Not Communicating With Main Movie Timeline
hi
i have a swf that i load into a level in the main movie that contains my menu. i want to use the buttons in this movieclip to navigate to different frames in my main movie (which loads other movieclips on different levels)
the buttons are themselves in movieclips but this doesn't seem to be a problem when i have the whole menu in a movieclip in the same movie, not loaded externally.
i've tried using
Code:
on (release) {
_root.gotoAndPlay(40);
}
which works in the same movie, but not when i load the movieclip into the main movie.
Is it because i'm loading the movieclip into layers rather than a container?
i know i'm probably making some huge mistake so any help whatsoever will be greatly appreciated.
thanx
Duswa
Can't Play Movie Clip In Main Movie
Hey guys, I'm new and understand the basics.
I have a movie clip that is a exported .swf file, I imported the .swf file into my library (which by the way doesn't show it animating in the preview window), and imported it into my main movie on its own layer. it tracks across the screen using a motion tween, but I can't get the movie to play once it stops moving, I dont know how to do it, does it need an actionscript? If is so how would you write it? Thanks a lot
Go To And Play (loaded *.swf --> Main Movie)
I loaded the file "button.swf" in my main movie "main.swf". Now I want to give an command from the loaded button.swf to my main.swf:
goto and play (nextscene)in the main movie
Is this possible?
Greetings TB
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++
-->Play my online-game "ON ICE" http://www.flash-games.tk
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++
|