Pause/Play Button Referring To Main Timeline...
I'm working on a site that includes a button that says "pause" - when the viewer clicks it, it switches to say "play." Right now, it's a two-frame movie clip that has one button on each frame. I know I need to specify that the Pause/Play action refers to the main timeline (possibly using "_root"?) but I have no idea where to place that. Here's the script for both frames:
Frame 1:
on (release) { stop (); } on (release) { this.nextFrame(); }
Frame 2:
on (release) { play (); } on (release) { this.lastFrame(); }
Am I on the right track? Would _root go before or after the command? It's switching from "Pause" to "Play" and back perfectly....
Thanks for your help....
Julia
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-02-2002, 02:10 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Pause And Play Buttons To Control Main Timeline?
- Referring To Main Timeline Within Mc?
- Pause Button In Main Timeline To Stop Entire Movie
- Is It Possible To Have A Pause And Play Button For The Entire Timeline?
- Button: Pause Timeline/play Movie
- Button To Play Main Timeline?
- Button To Play MC & Goto Point On Main Timeline
- Making Main Timeline Play From Button Inside MC
- Making The Main Timeline Play From A Button Embedded In A Movie Clip
- Play Movie In Timeline But Keep Main Timeline In Place
- How To PAUSE A MC MovieClip In ONE FRAME For X Seconds Without Slowing Main Timeline?
- Play And Pause The Timeline
- Controlling FLV By Frame Action In Main Timeline (specifically Pause/unpause)
- Pause Main, Load & Play Movie, Return ...
- Pause Timeline, Play Another Swf On Top W/ Alpha?
- How-to Pause, Stop, And Play External Timeline
- Timeline Control - Play, Stop, Pause, Etc.
- Pause/play Sound, Timer And Timeline
- Can Actionscript Pause The Timeline, Then Play? Gotoandwait?
- Play / Pause Buttons And Timeline Control
- If/else Actionscript To Play/pause Timeline With Same Key Stroke
- URGENT Pause/play Timeline From Buttons
- How Do I Play The Main Timeline From Inside A MC?
- How Do I Play One Frame From The Main Timeline From An MC ?
- Play Main Timeline From Inside Mc
- Unload Mc And Play Main Timeline?
- [F8] At The End Of An Flv I Want It To Play A Movieclip Off The Main Timeline Which Should
- Play/Stop Flv From Main Timeline?
- Having A Movie Clip Play The Main Timeline
- Action On MC To Play A Frame On Main Timeline
- Loadmovie On Main Timeline, Play, Then Continue...
- Play A Movieclip Once, Then Go To The Next Frame On The Main Timeline
- Making Main Timeline Play From Inside Mc In AS3
- MC Instance On Main Timeline Play In Order
- MC Instance On Main Timeline Play In Order
- HOW TO MAKE INDIVIDUAL MOVIECLIPS PLAY ON MAIN TIMELINE
- Movie Clip Symbol Won't Play On Main Timeline
- Tell Movie Clip To Play/stop From Main Timeline?
- How To Play Sound Automatically And Trigger The Play And Pause On The Same Button?
- Creating Play/Pause Toggle Buttons Controlling Slide Presentation Timeline
- Please Help First Website Movie Clip Placed On Main Timeline Wont Play
- Telling Main Timeline To Play Backwards From Movie Clip
- How To Reference Subbottons In A Drop Down Menu To Play Content On The Main Timeline?
- How To Sequentially Play/Load External Video Clips (in SWF Format) In Main Timeline?
- Pause Button For A Timeline?
- Pause Button For Timeline
- Pause/resume Button For Timeline
- Pause & Restart Timeline With One Button
- Button In MC To Main Timeline
Pause And Play Buttons To Control Main Timeline?
i have multiple "scenes" with no movie clips in them. i would like to add 2 buttons (one to pause and one to play) to control the timeline throughout the piece. how do you create buttons that control a timeline that is not a movieclip???
Referring To Main Timeline Within Mc?
(Flash MX)
Is there a way to refer to the main timeline from within a Movie Clip? Like find out what the current frame of the main timeline is from inside an MC?
Pause Button In Main Timeline To Stop Entire Movie
Hi there...
I have all my buttons in the main timeline and I want the pause button to simply stop everything (Sound, the movieclip, everything).
in as2 I remember I would put this in each movieclip...but since I'm converting to as3 I thought I'd try better practices... though I have to admit I'm still practicing bad ones (ie...I do all my actionscripting in the timelines).
I tried searching this forum but I couldnt find one that helped me
Thanks a bunch.
Saura
Code:
function myButtons(eventObject:MouseEvent) {
nextFrame();
SoundMixer.stopAll();
}
next_btn.addEventListener(MouseEvent.CLICK, myButtons);
function myButtonb(eventObject:MouseEvent) {
prevFrame();
SoundMixer.stopAll();
}
back_btn.addEventListener(MouseEvent.CLICK, myButtonb);
function myButtonc(eventObject:MouseEvent) {
pause();
}
pause_btn.addEventListener(MouseEvent.CLICK, myButtonc);
1180: Call to a possibly undefined method pause.
Is It Possible To Have A Pause And Play Button For The Entire Timeline?
Hello,
I have a presentation almost finished for an electronic business card. It's basically an animated slideshow with a voiceover. There are several graphs and charts that are pretty extensive, and the viewer needs to have the capability to pause the presentation to soak in all the info on the graphs. I have inserted 8 different mp3 files (one for each slide) in their own keyframe, and all of the work has been done in the main timeline. (no movie clips) I'm a graphic designer who's rather new at Flash development, so I appreciate your help.
Button: Pause Timeline/play Movie
Hello, let me describe what I would like to happen on my page, and perhaps someone could suggest the actionscript to accomplish it.
Currently, I have an animation which plays on the timeline, and embedded in the sequence are buttons that periodically enter/exit the screen. In each button there is a short movie clip in the Down state that should play on top of the timeline animation when the button is clicked.
The action that I am having difficulty with is pausing the timeline while the clip (inside the button) plays. In addition, (if possible) I would like the button not only to play the short movie clip, and pause the timeline, but also, trigger a video to load in a flash player after the clip ends.
I hope this makes sense! Maybe my imagination has gotten ahead of my know-how. Any help appreciated.
Button To Play Main Timeline?
Hi, I have a button that I want to continue playing the main timeline and I cant seem to get it to work From my understanding it should be pretty simple.
Button To Play MC & Goto Point On Main Timeline
Hi
I have a button on my scene. When clicked on, I would like to play a MC and go to a specific point on the main timeline.
However, the MC it will play will depend which frame the movie is on, when the button is pressed. I have the script, which will help to explain my question: -
on (release) {
if (frame = 10) {
_root.About.play();
_root.gotoAndPlay("Overview");
}
if (frame = 20) {
_root.Client.play();
_root.gotoAndPlay("Overview");
}
The script doesn't work! Can anybody advise?
Thanks
MERRY CHRISTMAS!!!
Making Main Timeline Play From Button Inside MC
Hello,
i think the title says it all.
I have done this a million times, but for some reason I seemed to have missed something.
My button is inside a movie clip, the AC on the button is this...
on (release) {
gotoAndStop(6);
_root.play();
}
_root.play(); isnt working....
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
How To PAUSE A MC MovieClip In ONE FRAME For X Seconds Without Slowing Main Timeline?
Hello, I am desperately trying to find a cut & paste script that I can use to solve my problem:
I have my main timeline and inside it I have one movieclip with 30 frames. I need to pause each of those 30 frames for X seconds. I only have one frame at disposal so I need a script that doesn't require multiple frames, several gotos etc... I know there is stuff like that and I am hopeing somebody can be kind enough and post it here. Again, a DELAY function that I can paste into ONE FRAME of a MOVIE CLIP. I need the rest of the movie (the main timeline) to keep working so I can't use anything that stops the main time line in a loop...
Also I have been reading that using loop functions bog down the movie a lot so if there is a way not to slow down the entire movie it would be much appreciated. Thanks a lot in advance to anyone who took the time to read this and reply to it...
Play And Pause The Timeline
Hello I have a scrolling text that goes from bottom to top and I use the timeline tween to do that. I was wondering if there's a way to pause the play the timeline? Or any other method would be great. Thanks
Controlling FLV By Frame Action In Main Timeline (specifically Pause/unpause)
Is this possible? I'm sure it must be from the searching I've done so far but I can't get it to work (I'm a video/animation expert, not script).
For use in a rolling online tutorial for a piece of software I have an FLV (progressive http download) playing in my swf which I need to pause at specific points as a caption comes up elswhere on the stage (note this caption is not in the flv) allowing it to be read before the user clicks a button within the caption movieclip to continue playback of the FLV.
In short-
I need frame action script which will stop the flv on a given frame. Here a 'caption_mc' in the main timeline (which runs for the same length as the FLV) will play until a button within the caption is pressed to continue the FLV.
Is this possible and if so is someone kind enough to give me some code for a frame (and button) action? Again I have searched and found code which I can't make do anything. Failing that alternative methods?
The FLV sits in the main root timeline too. I am using an embedded qt of the same video as a guide layer for the pauses (as they are subject to change) throughout.
Thanks a lot in advance.
Scott
Flash Pro 8
WinXP
Pause Main, Load & Play Movie, Return ...
I am creating a training "proto-type" project to open the eyes and minds of the office skeptics. Almost everything is in place except one critical piece, I need to play a flash video file (FLV) inside of the larger piece. I have a button in place to launch it. I just need to know how to pause the main timeline while the video plays. Also the video is only supposed to take up a small portion of the screen. All other main timeline buttons should still be visible and function normally. That includes stopping and exiting the movie if they are pressed.
I am using MX 2004 PRO.
I will attach the FLA from 2004 here.
let me know if you would like the FLV created with Camtasia and/or the FLA saved as MX (for you non-2004 users)
Thanks in advance for your help!
-Tex-
Pause Timeline, Play Another Swf On Top W/ Alpha?
Hey all,
I've got a flash movie I'm working on that has a lot going on, as well as a bit of video. I have a button in my movie, and when I click on it, I want it to (ideally pause whats going on in the rest of the movie...not the end of the world if this is not possible) draw a rectangle, and then fade up a series of jpegs in the confines of the rectangle I drew (with interactivity that allows the user to close the "window" or skip to the next jpeg. When the user closes the window, it animates off the rest of the movie resumes.
How can I accomplish this? I could do another scene but I dont want the background to jump...and it would be obvious because the background is constantly animating/changing...
I tried making the rectangle/jpegs thing in a nother swf and importing that, the problem is I dont know how to have that play only when i click on a button. Right now if i drag it to the timeline, it just plays automatically...
If any of you guys have any ideas, I would _really_ appreciate it!
Thanks!
How-to Pause, Stop, And Play External Timeline
Hi FlashKit'ers. My scenario:
I have a button that loads an external .swf into an empty MC. I need to be able to pause, play, and stop the external .swf's timeline using the pause, play, stop button located on the mainstage where the empty MC is also located.
Now, i know how to do all of the functions if the timeline i want to pause, play, and stop is the mainstage's timeline, but i have no idea how to do all of those functions if the timeline i want to pause is an external timeline. I'm sure there is a very simple answer to this problem, and any ideas or answers would make me one very happy camper.
take care.
Timeline Control - Play, Stop, Pause, Etc.
Is there any where I can find a tut on how to build a timeline controller that has play, stop, pause, etc buttons.
Something along the lines of http://www.macromedia.com/resources/...apps/overview/
or
http://www.macromedia.com/software/breeze/overview/
Does Macromedia Flash MX 2004 or Breeze have these components built in. Any help would be great.
Pause/play Sound, Timer And Timeline
I am new to actionscripting and have been burning a lot of hours (days) trying to figure out how to get my pause/play button to work properly.
I have a narrated tutorial where the sounds are placed this way
this.createEmptyMovieClip("narration_mc", this.getNextHighestDepth());
var narration:Sound = new Sound(narration_mc);and a typical frame where a new sound begins would look like this
narration.attachSound("Intro1.mp3");
narration.start(0,1);
stop();
startTime = getTimer();
this.onEnterFrame = function() {
currentTime = getTimer();
if (currentTime-startTime>14400) {
play();
}
};The timer is used to pause the action during the narration - for example a 10 second sound may pause the animation for 5 seconds and continue narrating over the animation until it hits the next frame where a new sound is loaded and another pause begins. This all works fine. The problem begins with the addition of a Pause/Play button - I can pause the sound but I cannot figure out how to pause animation and/or timer to keep in synch with the sound.
for pausing the sound I am using this code on the button
on(release) {
if (_root.playing!=1) {
if (narrationPosition == null) {
narrationPosition=0;
}
_root.narration.start(narrationPosition,0);
_root.playing=1;
gotoAndStop(1);
} else {
if (_root.playing==1) {
narrationPosition=_root.narration.position/1000;
_root.narration.stop();
_root.playing=0;
gotoAndStop(2);
}}
}for pausing the animation a simple stop and play will work fine if the button is clicked while something is being animated but if it is clicked during one of the
gettimer paused moments it throws everything off. I need for the pause/play button to detect if it is currently on the timer and somehow pause the timer and simultaneously be able to stop and play if it is currently animating on the timeline.
Any ideas/assistance would be greatly appreciated - I'm going nuts trying to get this thing to work. - thanks
Can Actionscript Pause The Timeline, Then Play? Gotoandwait?
Hi everyone, just joined, I've got a bit of a newbie problem.
Is there any actionscript which could pause the timeline, wait for a number of seconds, then play again?
The reason I ask is I currently have a movie which has loads of blank frames in between small segments of action in a movie so that when the timeline plays through as normal there is a good 10-15 seconds of 'nothing' in between the segments.
But as you can imagine, it's become annoying having to scroll along the layers to update, maintain and add to.
Any help very much appreciated, thank you for your time.
Dilly
Play / Pause Buttons And Timeline Control
Hey all,
I have a big presentation with some 50+ screen shots. Each chapter is sub-divided into 9 scenes. Within these 9 scenes I have timeline controls. I have a PLAY and PAUSE buttons (separated) and a REWIND to beginning of the chapter and FORWARD to the next chapter. The PLAY and PAUSE buttons target a MC that resides within the same scene.
Here's the PROBLEM. I'm using basic actionscripting to play() and stop() targeting a MC on the stage that holds the slides. It seems my users will press the pause button and 2-3 minutes later it starts playing again!! It's VERY frustrating! Also my users had said that sometimes after they press play or pause the scene advances to the next chapter(scene) for no reason!?
I'm completely perplexed why this continues to occur. I have told the MC to stop WHY DOESN'T IT STAY STOPPED! I'm using MX 2004 and building the presentation to function as an AutoRun .EXE, if anyone has any ideas please fill me in....sound like I'm doing something wrong?
Here's the PLAY button:
on (release) {
tellTarget (MCname) {
play();
}
}
Here's the PAUSE button:
on (release) {
tellTarget (MCname) {
stop();
}
}
By Pressing pause it seems to initially work, but after 2-3 minutes, the movie just starts back up again.
Any ideas?
Is there a better way of writing this script?
J64
If/else Actionscript To Play/pause Timeline With Same Key Stroke
I am creating a presentation where I have to play some flv's. I want to create a button that is invisible that will play the video when you press the space bar and then puase it when you hit the space bar again. I need some help in the else/if actionscript so I can have just one key stroke to play/pause the video. Can anyone help?
Edited: 05/18/2007 at 09:41:51 AM by necie
How Do I Play One Frame From The Main Timeline From An MC ?
as the title sais , i am in a movie clip and when i click on this button i wanna gotoandstop a frame that is on my main timeline. I cant put this
on (release) {
_root.gotoAndStop (framenumber);
}
because i want it to go to the main timeline in the second scene , but when i put _root... it goes to the root of the whole prject i want it to go to the root of the second scene
Unload Mc And Play Main Timeline?
I have a main movie "main.swf" and in an empty movie clip (instance name "empty") on that timeline, I have it loading another movie ("continue.swf") that takes you to the end of the presentation...
This is the action on frame 1 of "empty":
loadMovie("continue.swf", 1);
I need the entire presentation to loop. I have a frame labeled "startsite" where I need the movie to start over from on "main.swf"
So at the end of "continue.swf" I need an action that tells it to go to "main.swf" and play frame labeled "startsite," right?
I've tried:
_parent.gotoAndPlay("startsite");
I've tried:
_root.gotoAndPlay("startsite");
I've tried unloading the movie clip "empty" from the main.swf with:
this.removeMovieClip()
but everything I try only loops the "continue.swf"???
Can someone please help?
Play/Stop Flv From Main Timeline?
http://studio34design.net/aleks/aleks_chem3.html
about 30 seconds into this flash, there is an FLV of a computer screen. The problem is, when I pause the swf, the flv keeps going. How do I get around this?
1. Is it possible to convert the flv to swf?
OR
2. Is it possible to control the flv from the main timeline?
thanks people!
Action On MC To Play A Frame On Main Timeline
Flash 8
I'm trying to get a Movie Clip (in the 1st frame of the main timeline) to end by going back to frame 10 of the main timeline in Scene 1. I put an action in the MC's last frame
gotoAndPlay("_parent", 10); but nothing happens
I also tried "scene 1" " _root1" "_level1
Is there a way to navigate from the Movie Clip to the main timeline of Scene 1??
Thanks
Loadmovie On Main Timeline, Play, Then Continue...
Work on my Flash site is going great, but like most newbies it feels like I'm literally pounding this thing into shape with a sledgehammer.
I've got a simple question (aren't they all), and I swear I've searched the forum but to no avail. The answer is out there, but for some unGodly reason I can't find it.
I've got a main timeline with, say, 55 frames. There's a brief animation tween in the first 10 frames. At frame 11 I'd like to stop the main timeline, load a movieclip called mcPort (SWF would be fine as well) and have it play AUTOMATICALLY, and then restart my main timeline at frame 12 once mcPort is finished.
mcPort is basically a long slideshow type movieclip. I plan on adding 1 or two others of this type into my main timeline. I realize that I could just do all of this slideshow animation stuff within my main timeline, but it just gets unmanageable.
I gotta think this is possible. My search reveals people wanting to do the same thing, but always with a button action. My hunch is that a container is used, but I've not used one yet.
Thanks much
Play A Movieclip Once, Then Go To The Next Frame On The Main Timeline
Hello, I'm sorry for the long topic's title.
I have an animation I'd like to use as an INTRO in my flash movie. I will joint it inside a movieclip, giving it the istance name "INTRO". And I position it in the first frame of the main timeline.
How can I make possible that played once my intro (my movieclip) the player jumps to the second frame of the timeline, named by the istance "HOME".
Is it possible?
Thankyou very much for your help,
and great things.
Stebianchi
Making Main Timeline Play From Inside Mc In AS3
Hi
I'm primarily a motion graphics guy but am helping out a friend with some Flash web work. I have CS3 now but haven't touched the app since MX so Actionscript 3 is taking me some time to get to grips with - not that I was any more than a dabbler anyway.
I am simply trying to make the main timeline play when an MC on the stage reaches the end of its animation. I have tried variations of root.play("menu") or parent.play("menu") in the last frame of the MC but I get:
"1061: Call to a possibly undefined method play through a reference with static type flash.display:DisplayObjectContainer."
Also it breaks the previously ok code and the 'stop' on the 2 frames of the main timeline are now ignored.
Then I see stuff like this -
MC Instance On Main Timeline Play In Order
I don't know if my title is clear enough, but I'll try to clarify.
I have one MC on the main timeline, and duplicates of the same MC one after another. So basically 8 of the same MC lined up beside eachother.
Now the tricky part. I want halfway through the original MC, to jump to the second MC instance and start from frame1. Now the dilema is, that if I make an actionscrpit on the MC, it affects all the MC lined up together, because they are an instance of the original.
Could I use the duplicateMovieClip command, and how?
MC Instance On Main Timeline Play In Order
I don't know if my title is clear enough, but I'll try to clarify.
I have one MC on the main timeline, and duplicates of the same MC one after another. So basically 8 of the same MC lined up beside eachother.
Now the tricky part. I want halfway through the original MC, to jump to the second MC instance and start from frame1. Now the dilema is, that if I make an actionscrpit on the MC, it affects all the MC lined up together, because they are an instance of the original.
Could I use the duplicateMovieClip command, and how?
HOW TO MAKE INDIVIDUAL MOVIECLIPS PLAY ON MAIN TIMELINE
I have been making individual movieclips for my flash website intro so as not to have long framelengths on the main time line. But, how do I make them play one after the other? I am trying to get familiar with onClipEvent and use frame labels, but just cant make it work. Please Help!!
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.
Creating Play/Pause Toggle Buttons Controlling Slide Presentation Timeline
Need guidance in creating Action Script to create a single button on a Flash Slide Presentation screen that toggles between Play and Pause icons and functions controlling timeline playback, just as happens on the Flash Media Controller panel when playing back a video clip. I assume this would involve a Component button, but not sure how to assign icons and functions to the toggle states.
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?
How To Reference Subbottons In A Drop Down Menu To Play Content On The Main Timeline?
Hi,
I have created a drop down menu placed in a movie clip with an instance name "how_menu".
The are 4 sub buttons which should play the content placed on the main timeline, referenced by frame labels, e.g. 2.01.0, in scene called 'names'.
How do tell the subbuttons in the movie clip to play the content on the main timeline, in scene 'names', from frame labelled 2.01.0?
I am using Flash MX 2004.
Thanks!
gayeta
How To Sequentially Play/Load External Video Clips (in SWF Format) In Main Timeline?
Hi,
Does anyone know how to sequentially play external SWFs loaded into the main timeline?
I have several SWF files with short videos embedded in them. I wish to load these external SWF files into my main timeline as follows:
User Presses Button -> Play Video Clip in External SWF#1 -> Once Video Clip in External SWF#1 has Finished -> Play Video Clip in External SWF#2.
I tried achieving this by adding: “var endmovie:Boolean = true;” to the end of each video clip inside the external SWF’s (e.g. “1.swf”) then cycling through an if statement in the main timeline to see when this condition was meet:
ActionScript In Main Timeline:
Code:
var mc_Loader = new MovieClipLoader();
mc_Loader.addListener(this);
this.createEmptyMovieClip("Container", this.getNextHighestDepth())
Container._x = 0
Container._y = 0
button_mc.onRelease = function () {
mc_Loader.loadClip("1.swf",Container);
function onLoadInit(target_mc:MovieClip) {
myInterval = setInterval(cycle,30);
function cycle() {
if (Container.endmovie == true){
mc_Loader.loadClip("2.swf",Container);
}
}
}
}
To my surprise, this code does actually work - until you add the "button_mc.onRelease = function () {" part!
How is the best way to go about achieving this? Am I on the right track? (By the way, using .FLV files or one long external SWF file is not really an option due to long loading times...I think...)
Please Please Help!
Pause Button For A Timeline?
Okay here is the scenerio....
I have a timeline in a movie clip. Moving along the timeline is some audio. I want to put a simple pause buttin INSIDE this same movie clip to just tell the timeline to stop playing when I push it, but I need it to resume playing when I push it again. Can anyone help me with this? Im trying to script the pause button. I might be making it out to be harder than it seems...can any actionscript gods help me? Im working in MX 2004.
Thanks in advance.
Ari
Pause Button For Timeline
A client wants me to make a flash movie that basically shows a load of photographs, automatically changing and then looping which is easy enough. He then wants me to add a button to pause the 'movie'. I am sure this is fairly basic, but I can't work out how to do it. I guess there must be a piece of action script, but I haven't come across it yet.
Any help would be much appreciated.
Ralph
Pause/resume Button For Timeline
Hi... I'm creating a software demo in Flash. For each specific
topic I will have an external movie loading into the main
timeline. I will have a pause/resume button on the main timeline.
I want the user to be able to press this button to pause the movie
then press that same button to resume the movie where they left off.
How would I accomplish this?
Thanks...
Pause & Restart Timeline With One Button
I have created a lengthy animation as a prop for a TV production. They want to be able to start and stop the animation at will using only the mouse without anything being seen on the screen. To do this I want to make an invisible button that covers the entire screen. I know how to make it either start or stop, what I can't figure out is how to make the invisible button start and stop the timeline with alternative clicks ie click 1 starts it, click 2 stops it, click 3 restarts ad infinitum.
Any help would be much appreciated
Ralph
Button In MC To Main Timeline
Hey,
OK... I have a movie with an image scroller that contains buttons which when clicked should load an external .swf file into a target. Everything works fine when the buttons are on the main movie timeline but when I put them into the image scroller MC they don't work. I suspect that I have to somehow tell the button to load the movie into the target on the main timeline...but I don't possess the wetware to achieve this...please help!
Many thanks in advance!
|