ActionScript 2.0 :: CS3 Stopping A Movie For 5 Seconds And Then Let It Start Again.
Nov 25, 2009Making a banner in flash cs4, and trying out AS 3.0. Any one know how i stop the movie for 5 seconds and then let it start again?
View 5 RepliesMaking a banner in flash cs4, and trying out AS 3.0. Any one know how i stop the movie for 5 seconds and then let it start again?
View 5 RepliesI use FlashMX and made a basic flash movie with one movie clip. (movie clip contains frame by frame animation using images rendered at AE) How can I make the movie clip stop after a specified number of seconds? Client wants to be able to change the seconds when needed. So a text file along with swf file including number of seconds...?
View 2 RepliesI use FlashMX and made a basic flash movie with one movie clip. (movie clip contains frame by frame animation using images rendered at AE) How can I make the movie clip stop after a specified number of seconds? Client wants to be able to change the seconds when needed. So a text file along with swf file including number of seconds...?
View 2 RepliesI'm trying to figure out how I can make the sound file that I load into Flash start at x seconds and end at x+30 seconds.So basically, I just want a 30 second sample to play starting at a specific time position. Does anyone have any advice on how to do this or have links to somewhere I can read up on it?
View 4 Replies1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.
2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)
I'm trying to build a scene in which multiple instances of the same mc start at different intervals and continue to restart over and over again at different intervals. I'm trying to get the mc to start anywhere from 3 to 10 seconds after it last stopped. I used this as3 code inside th mc itself.
var randNum:Number;
randNum = Math.round(Math.random() *5 + 2*1000);
trace(randNum);
var timer:Timer = new Timer(randNum);
[code]...
The trace shows a random number is generated but it doesn't seem to effect the interval of the timer after the first run through. "Hello" shows up in the output window every second after the randNum is traced regardless of the randNum's value.
I've tried using timer.reset but that seems to do nothing at all or stops the repeat. Probably because I don't understand how to use either '.reset' or '.delay'. I looked them up in the documentation and still don't get how they are used or even if they are appropriate to this situation. Obviously, a lot I do not understand about as3.
I've been able to embed youtube videos into my flash file via the following code: (video_mc is simply an empty movie clip I have on the stage)
ActionScript Code:
video_mc.loadMovie("http://www.youtube.com/v/avGfvDz84t0");
//http://www.youtube.com/v/avGfvDz84t0 is the youtube link to the swf file's location
Now my question is as follows: On the actual website you are able to go to certain parts in the video by adding "#at=xx" to the end of the url, xx being the amount (in seconds) that you want it to start at..For example, http:[url]...., takes you to a music video on youtube... but... http:[url].... , takes you to a music video and starts the video at 41 seconds... I'm assuming they use javascript to somehow communicate to flash..So what code do I need to use in actionscript so that the embedded video will start at 41 seconds?
I have a video file which plays fine but it plays as soon as the welcome page starts. I have some small text animation which needs to play first and after 45 Seconds my video should start playing automatically. How to achieve this? Using actionscript 3.
View 1 RepliesI have no idea how to use AS3 and I was needing to make my project looping 3 times from the start to the end but stopping on the last frame after the 3rd time it loops. I have no idea how to do this without copying all the frames.
View 2 Repliesi'm looking for a script that tells the timeline to start to play frame 25, after 5 seconds.i've found a few codes online but cos they are for different purposes, i just cant seem to custom it to work accordingly.
View 5 RepliesHere is the action scrip that I created. Correct it if you can.
Process.visible = false;
Cycles.visible = false;
stop();
[Code]....
i have a snow effect in a movie with the code below. i want to stop the effect midway through the movie without stopping the movie. how do i use a stop command to do this?
init = function () {
width = 550;
// pixels
[Code]....
I'm currently making an animation which will eventually exceed the 16,000 frame limit (don't ask haha), so, short of making two movies and having to just start up the next one, what is the code for loading a movie? I presume they need to be in the same directory? So basically all I want is on the last frame of the movie the code executes and the second movie file opens up and starts. I guess I'd want the current movie to close, too.
View 1 RepliesI wouild like to Play a movie clip in a movie like once every 120 seconds. Are there actionscripts whichs does this? Using Flash MX....
View 3 RepliesI need to stop an flv movie when I click a button that is not on the control bar. e.g. I have three pages in flash and when I navigate from the videos page after starting the playback of the movie, the audio from the movie continues to play. I have no idea why this is.
View 5 RepliesSo I am having a problem on my HTML page. I have a flash (.swf) video player that is controlled by AS 3 and the problem I am having is that I need the video player to stop whatever its playing when the user clicks anywhere on the screen.
View 1 RepliesSo I am having a problem on my HTML page. I have a flash (.swf) video player that is controlled by AS 3 and the problem I am having is that I need the video player to stop whatever its playing when the user clicks anywhere on the screen.
View 1 RepliesI am making a soundboard for a school project. I have made movieclips with the jaws moving on the different people. I have all the movie clips on the same frame with the first frame of each movie clip blank. I have the stop(); command on the main timeline, however when I test the movie the movie clips still play. I am looking for a way to stop these movie clips from playing until the corresponding button is pressed. Is there some sort of "stop all movie clips" function?
View 4 RepliesHow do I stop a Flash SWF movie when the playhead is at the end and then have the new window that presents the movie close automatically. However, the most important feature would be to stop the movie to keep it from continuously looping.
View 2 RepliesI have a movie clip called Lion Beginning_mc, inside of it I have 3 Key Frames and Inside each and one of them I have different shapes.For example:
Key Frame number 01 - Dog
Key Frame number 02 - Cat
Key Frame number 03 - Mouse
I want to move this movie clip "Lion Beginning_mc" form Key frame number 1 to Key frame number 20.I want the Dog,Cat and a mouse to change between each other only once while moving from Key Frame number 1 to 20.I know about the action called "stop(); I tried it and it did stopped my movie clip at the frame 20 but the Dog,Cat and Mouse still keep looping around.
How can i stop a movie let's say for 60 seconds
EDIT: and then restart at the frame where i stopped it...for sure...._)
I have a movie, in it lies a button with which I jump to another position in the _root timeline. At that position is a stop(); command. The movie just wont stop while this is running in another mc1 deeper in the file :
Code:
stop();
onEnterFrame = function() {
c=Math.floor(Math.random() * (1500 - 0)) + 150;
var Interval1 = setInterval(function () {
b=Math.floor(Math.random() * (7 - 0)) + 1;
gotoAndPlay(b);
clearInterval(Interval1);
}, c); }
What this does in the mc1 is basically creating a random number between 150 and 1500 and a random number between 0 and 7, then jumping to a random frame (numbered from 1-7) after waiting for a random time (150-1500ms). My _root stops properly when I remove the code posted above. Why is this happening and how can I have a mc1 in my movie which waits for a random time and then jumps to a random frame, while I want to move around in my _root timeline? I should add, the mcs1 which wait and move to a random frame are non existent on the position I want to move to in _root. Do I have to somehow remove the wait and choose random frame to jump to function in mc1, when moving around in _root?
i have the flv on autoplay when the motion tween finishes but when i go to another part of the site the video is still playing and i can hear the audio.the video is on a movie billboard with no buttons to play or stop i dont want too use buttons to start & stop the flv,i would like it too auto start and stop when the user leaves the page.so i dont hear the Movi clip audio playing on other pages.if there is actionscript to auto stop the movie clip on exit to another page that would be ideal if anyone could post it.
View 8 RepliesI have created a flash header that has an embedded video and it will not stop looping.
[URL]
The Video is in the TV
It plays once with the sound then it loops without the sound it picks up the stop command on the second run.
I have a problem with some AS3 code and i don't understand why.. my code looks like this:stop();
[Code]....
But there shouldn't be a problem with this, cause the movieclips are the same as the others and has an instance name of gt5 and gt6 just like the other movie clips, and the code is obviously the same?
so basically i have 3 red cups which are movie clips and i got them to move but they move out of the screen and i want them to move at a speed and switch positions within each other.so how do i do this with coding ( actionscript 2.0 _
View 6 RepliesI am trying to load a swf file by using a loader.the loader is set to visible = false; until 50% of the swf is loded and once that is done I am setting the visiblity to true.But the only problem is the loaded swf starts playing automatically and when after loading 50% I set the visibilty to true then half of the movie has already player.How can I stop a loaded swf from playing atuomatically.?
View 1 Replieshow to prevent the mouse from moving over a movie clip, so that the movie clip in a sense has a boarder around it that stops the mouse from entering its area on the main stage.
View 1 RepliesQuite simply, I'm trying to loop a movieclip for 15 seconds then stop without having to keep re-animating the movieclip's content. I have a stop action on the main stage, but it only targets animation happening on the stage, and not the movie clip in question. The movie clip is on its own layer on the main stage and I have extended its duration to 360 frames (15 seconds at 24fps), knowing full well that a movieclip will loop indefinitely unless otherwise commanded. It will stop if I put a stop action on a layer inside the movieclip's timeline, but the animation itself is only 1 second, so extending the timeline and redoing the animation for 15 seconds would defeat the time saving point of having a looping movieclip on the stage in the first place.
This is Flash 101, and I thought I knew how to do this properly, but I was proven wrong again and again this past weekend.
i can't figure out how to do this... ok, here's what i need. i have a movieclip that plays, (its bars on a motion guide) and i want it, depending on a variable to play to a certain frame. so, lets say the variable = 1 then i would want it to play until it got to frame 15 then stop, if the variable = 2 then i would want it to play until it got to 30.
View 3 Replies