START/STOP TIMELINE OF LOADED .SWF
hi all...
im having a hard time figuring out why this isnt working.
i have a button in my main movie on level0 that i want to control a loaded movie using loadMovieNum() on level5.
i simply want to use a start and stop command using the following:
on (release) {
_level5.start
}
or
on (release) {
_level5.stop
}
the loaded .swf on level5 is an .swf music file, created with swiffpeg. there are no stops at the start or end of the .swf.
any help?
thanks
eric
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-14-2001, 09:07 PM
View Complete Forum Thread with Replies
Sponsored Links:
Click To Start And Stop Timeline
Hello again,
I have an animation which scrolls three images right to left. The client would like the user to be able to click anywhere within the pictures to stop the scrolling and then click again to start to scrolling again. I really have no idea how to do this other than setting a delay, which isn't really fitting their needs.
Any ideas?
Thanks so much!!
jessicuh
View Replies !
View Related
Scritping Button To Stop & Start MC Timeline
I am having a bit of trouble figuring out what to do in my situation.
I am a main timeline, with a movie clip that I want to loop infinitly, until a button is clicked, once the button is clicked I want it to stop the movie clip timeline, once the button is clicked again I want it to start the movie clip timeline again.
I am not the greatest actionscripter, I understand it I just have a bit of trouble writing the syntax myself.
Any help is greatly appreciated.
Lawrence
View Replies !
View Related
Start And Stop Main Timeline From Movie Clip Symbol
Hi All,
I have a main movie where I have 4 different movie symbols in 4 differnet frames.
I want to stop the main timeline > play the first symbol movie > at the end of the first clip, start the main timeline again and play the next movie clip.
I tried putting "root.play();" at the end of the symbol movie clips, but it does not seem to affect the main timeline.
View Replies !
View Related
Stop And Start Movies Loaded Into Container.swf
Hey all -
I've got a fairly long movie with one "core.swf" with a frame and stop and start buttons. I have 5 external swfs that load into an empty mc with instance name "box_mc" in "core.swf".
These external swfs have a whole bunch o mcs within (obviously)
But I'm being rather dense here because I can't get the stop and start buttons to stop the whole movie (everything that needs to stop is in the external swfs)
Ive targeted it as such
ActionScript Code:
on (release) {
_root.box_mc.stop();
}
this is not working - any one have some ideas?
Thanks in advance!
Andy
View Replies !
View Related
Start/Stop Externally Loaded Sound
Can anyone help me with this on/off music button. I want to load the music externally and have it start automatically but use the stop and start button to control the sound. Here is the .fla and if you need it the music also, the file was too big to upload here.
http://www.nucklewebdesign.com/dloads/music.zip
Thanks,
Josh
View Replies !
View Related
Stop Music File Loaded In The Timeline
Hi all,
I have an MP3 file loaded in the main Timeline at frame 1 and it loops (background music loop). And I have a simple button to shut down the entire site sounds
Code:
stop();
off_btn.addEventListener(MouseEvent.CLICK, stopMusic);
function stopMusic(e:Event) {
SoundMixer.soundTransform = new SoundTransform(0, 0);
gotoAndStop("off");
}
Once clicked, it goes to the "off" frame and there I have this code to pump up the volume again.
Code:
stop();
on_btn.addEventListener(MouseEvent.CLICK, playMusic);
function playMusic(e:Event) {
SoundMixer.soundTransform = new SoundTransform(1, 0);
gotoAndStop("on");
}
Now, the problem is that I have a film page where the users can view some films. And when a user click on a film, I'd like the background music to shut down. But if I use the code above it'll stop all the sound, even the film soundtrack. So, is there a code I can use to shut down only the MP3 file loaded in the main Timeline?
Thanks!
View Replies !
View Related
How Do U Start & Stop MC On Frame 3 On The Timeline & Proceed Onto Frame 4 W/ New MC
1.What I'm doing is setting up a "Cell Phone Slide Show" to load images and .AVI’s (Movie Clips) into the phone screen strictly when the user presses the cell phone button. So, when the user presses the cell phone buttons (“OK”, #1, #2, #3, “CLR”, etc.., an image or MC loads into the cell phone screen.
2.My Time Line consists of 5 Layers: actions, cell phone buttons, cell phone screens items, cell phone, cell phone description
3.“action” Layer uses: stop(); from Frame 1 to Frame 5 – to stop at the last frame 5.
“cell phone buttons” Layer uses: on (release) {nextFrame(); } from Frame 1 to Frame 5 – to proceed to the next frame.
”cell phone description” – from Frame 1 to 5 - loads a new cell phone text description on each frame.
”cell phone” - from Frame 1 to 5 – just a background image of the cell phone.
“cell phone screen items”: I am loading images and Movie Clips on this Layer. For example, Frame 1: Image, Frame 2: Movie Clip (the movie needs to start and stop to go into frame 3). Frame 3: Another Movie Clip (the movie needs to start and stop to go into frame 4).
Frame 4: an image with movie clip label. Frame 6: Another Movie Clip (the movie needs to start and stop to go into frame 7).
Frame 8: an image with movie clip label. Etc…… This will proceed to 30 frames.
I am trying to start and stop these movies on specific frames by adding action within that frame on it’s own separate Time Line:
This Movie Clip time line consists of 70 frames. The Movie Clip is called: “tud_vid1”. I put a Label on frame 1 called: “Start” and put a label on frame 70 called: “stop”
My code for this Movie Clip Time Line is:
_root.tud_vid1.gotoAndPlay(start);
_root.tud_vid1.gotoAndStop(stop);
4.The problem I’m having is instead of the Movie Clip on Frame 3, for example, Starting and Stopping when the user clicks on the cell phone button, and going onto Frame 4 to play the next Movie Clip (with Start and Stop Action) ; the Movie Clip on Frame 3, “Keeps on Looping” and doesn’t move onto Frame 4.
5.How would I set up this “Cell Phone SlideShow” to Start and Stop my .AVI’s on each frame and move onto the next frame and play the next movie from beginning to end or play the next image.
6.I attached a screen shot of my main time line: CellPhone_Timeline1.jpg
7.I attached a screen shot of the separate Movie Clip time line on frame 3: CellPhone_MC_Timeline1
View Replies !
View Related
External Streaming Sound Stop Main Timeline Till Loaded Fully
Hi:
I am loading an external streaming sound 1.mp3 with the code below.. However I want the main timeline to stop until the sound is fully loaded.. Right now the maintimeline starts..
Here is the code
myMusic = new Sound(myMusicMc);
myMusic02 = new Sound();
myMusic02.loadSound("1.mp3",true);
playing02=true;
paused02=false;
stopped02=false;
loaded02=true;
if (soundIsLoaded!=1) {
stop();
} else if (soundIsLoaded=1) {
play();
}
myEvent=0
myStreaming=1
myMusic02 = new Sound(myMusicMc02);
myMusic02 = new Sound();
myMusic02.loadSound("1.mp3",true);
myMusic02Position=0;
myMusic02Volume=80;
myMusic02.setVolume(myMusic02Volume);
myMusic02.onSoundComplete=function() {
playing02=false
}
View Replies !
View Related
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
View Replies !
View Related
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
View Replies !
View Related
Random Start On Timeline
HI!
I have made a 10 picture slideshow witch loads on the main site. My question is how I make the slideshow begin with a different picture each time you open the site. The slideshow is a really simple timeline with motiontweens. So im looking for a script in the first frame of the timeline that jumps to a random picture in the slide show.
Thanx
K
View Replies !
View Related
Stop And Start Mc`s
Hi here’s a little problem that I have I have made an EQ mc (blocks that go up and down to the music) the mc is in my lib and I drag it out onto my scene
I have a two buttons named off and on
How do I stop and start the mc using the buttons
I know its some sort of action script
Thanks for any help with this
stig
View Replies !
View Related
Stop And Start
I've created a long but simple movie with photos and text. When it is complete it starts over again. i'd like it to stop and only begin again when it is clicked.Is this possible? If so how would I accomplish it?
Thanks Daniella (fafnir)
View Replies !
View Related
Start/stop
I'm trying to make a .swf file so when you click on it, it'll play. like a start button of sort. I've tryed everything but I can't seem to get it to work. If someone could help please do.
View Replies !
View Related
[F8] Stop One Xml Start Another
Alright need a bit of help with this. I am making a gallery that will show case peoples work. I have broken down to the indivdual artists. but it seems when i click a link the the page does not load the new xml sheet, just keeps the first one.
Is there a piece of code that can switch off the first xml and switch on the next. So what i need is when you click a button, stop artist.xml start art.xml. So i guess how do you unload one xml and load up another.
All help is wonderfull
View Replies !
View Related
Img Pan Start/Stop
I am currently trying to edit Creatify's Img pan slider class (http://www.kirupa.com/forum/showthread.php?t=227359) so that it can stop and start panning on click of a btn. I am having trouble and hopeing that someone can help out or point me in the right direction.
attached is Creatify's Img pan zip
View Replies !
View Related
Semi-random Timeline Start?
Hi again,
Is it possible to semi-randomly start a a swf and different points in time each time the page loads, the broswer refreshes? I'd like the movie to start at either frame 1, 2, 3, or 4. Any ideas? Also, I'm stuck with Flash 5, if that matters.
Thanks!
View Replies !
View Related
Controling Start/stop From A Different Swf
ok here is my question
i have a button that loads a new .swf within a movie clip (the script isnt really important but i uncluded it just in case)
Button:
on (release) {
gotoAndPlay (38);
loadMovie ("abt_lg.swf", _root.transition.content);
}
now within the movie "about_lg.swf", i have a button that i would like to make the movie clip from the last file (_root.transition) play.
is this possible to do?
thanks!
Greg
View Replies !
View Related
Start AVI W/mouseover-How To Stop
A have a page with 5 jpg photo's. Each jpg has a 30 second movie that is started with a mouseover. How can I stop all other movies when the user passes the mouse over a different photo? More that one movie running eventually causes IE to bomb.
(extra stuff stripped out)
<img border="0" src="APSVid1.jpg" dynsrc="IMAGES/APS00000.AVI" loop="1" start="mouseover" >
Thanks
View Replies !
View Related
Start And Stop Drag?
OKay, i was wonderin' HOW i can make it so if a I click on an object, an MC or a button, it will startDrag, and when i let go it will stopDrag. I hae this coding:
Code:
on (press) {
startDrag ("", true);
}
on (release) {
stopDrag();
}
also I need this to hitTest to see if it is in another object.
Now, my plight is on press it startDrag's but it doesnt stopDrag on release, also it doest lock mouse to center like i want it to, henceforth the true part, but i cant figure out how to get it to work... BAH!!!
Zakarus
View Replies !
View Related
Stop And Start New Scene
I am trying to build a Flash file that will play a scene, stop and wait for a key press, then continue to play the next scene. I will end up with some 20 - 30 scenes, or segments. Is there a way to do this easily AND should I NOT use scenes for this?
My animating is fine, but my ActionScripting is pathetic!
View Replies !
View Related
Same Button For Start And Stop
I wonder how to make one button with actions that make it possible to for example load a´ MC and onload it, or for example to start drag an object with the mouse and stop drag.... Im a beginner so i would be werry glad to get the full code???
Please help me! Dr. Frank
View Replies !
View Related
How To Stop And Start Sound
I have a flash file which has a movie clip that contains sound. The instance name of which is 'soundMovie'. I have placed the movie clip on the stage. NOw when I run the file I can hear the sound. THe problem is with the following script that I have placed on the first frame of the main movie timeline (NOT THE MOVIE CLIP CONTAINING THE MUSIC). i.e when the following script is attached to the first frame, the music stops. my question is why doesnt the music start if I have written soundobj.start(). If I remove the live soundobj.start it runs fine. any help would be highly appreciated !!!!
soundobj = new Sound(_root.soundMovie);
soundobj.stop();
soundobj.start();
View Replies !
View Related
Sound: Start-Stop
I have a movie that you can start and stop at different points on the timeline (whenever you press play or stop). I would like to add a narrative sound track that will start and stop at the same time as I start and stop the movie, without the sound going back to the beginning.
Does anyone know how to achieve this or know of a link to a tutorial which explains how to do this?
Thanking you!
Luke
View Replies !
View Related
Stop Sounds Before They Start
Is there away to stop sounds being played without them actually currently playing - I've got a game with staggered sfx's which play at different times I wanted a mute button which user can press and mutes sounds currently playing a subsequently - is it possible without writing a handler for every sfx and a load of if statements?
because stopAllSounds() and Sound.stop("current tune") only stop current tune/sfx playing
cheers in advance
View Replies !
View Related
Stop/Start External SWF's
I'm using this code to load an external SWF:
{this.contents.loadMovie("disturbed411.swf");
stop();
}
I actually have several buttons with very similar code that load an external SWF to the same location.
I need to create a button so that it will stop/start the external SWF from playing at the users discretion.
How do I do this?
If it makes any difference, the main movie is stopped when the external SWF is loaded.
Thanks
View Replies !
View Related
Stop/Start External SWF's
I'm loading a number of external SWF's into an empty MC called "contents" into another MC (called "disturbed" or "troy" in the two examples below). These MC's sit in an MC called "potfolio" that sits on my main timeline.
I get the external MC's to load fine. Within the "disturbed" and "troy" MC's I have two buttons that should stop or start the external MC at whatever point the movie has played to.
For the "start" button I am using this code:
on (release) {
_root.portfolio.disturbed.contents.play();
}
for the "Stop" button I am using this code:
on (release) {
_root.portfolio.disturbed.contents.stop();
}
This works perfect. However, when I apply the same code to the troy MC (simply changing the word "disturbed" to "troy") here is what happens. The "Stop" button has no effect at all. The "Start" button takes the external MC back to the preloader, but will not go beyond that. Both the disturbed and troy MC's have the same preloader (with different art) so that's not what's affecting it.
I've searched the MC's and the FLA for about 2 hours and can't seem to find any difference.
What obvious thing am I missing?
Thanks
View Replies !
View Related
Stop Me Before I Start Cutting
Searched all over for a solution and can't find one. Sounds simple enough. Using version 5 (I could use MX for the fix - if there is one - but want to publish as a 5). I need to leave one swf and its page, got to two.swf and its page then < BACK to page one withOUT going through page one's complex intro.
Is there a way to do this? (stop me before I start cutting up my main movie)
Thanks
APM
View Replies !
View Related
Stop/start Sounds
i put a "stop sounds" command on a button which opens a pop-up window and i was wondering if anyone knows a way to have the sound start back up
when the parent window is clicked on?
View Replies !
View Related
Start/stop W/one Button?
hey ive got a video as a movie clip that plays when i click a button, but i want to be able to click that same button again to make it stop but cant seem to pull this off.
here's what i have so far:
jerry_mc.stop();
jerry_btn.onRelease = function() {
jerry_mc.play();
}
this works to play it, but obviously doesnt stop it.
any advice?
thanks for any help.
jon
View Replies !
View Related
Button To Start MC....end Of 2nd MC To Stop
My goal is to stop on MC from another...
On my main timeline I have an MC with the instance name of "spectrum". On the first frame of this MC, labeled "stop" there is a stop action., the second frame is labeled "start".
Also on the main timeline is a button with this code:
on (release) {
gotoAndStop("acdc");
spectrum.gotoAndPlay("start");
}
This takes the playhead to the frame labeled "acdc" and plays the "spectrum" MC by taking it to the frame labeled "start".
At the acdc frame, is another MC that plays an audio clip that is embedded in a MC with the instance name of "acdcmc"
My goal is at the end of this audio clip, I want the "spectrum" mc to stop.
I have tired this code:
stop();
spectrum.gotoAndPlay("stop");
as well as:
stop();
root.spectrum.gotoAndPlay("stop");
yet neither seem to work. Any ideas?
Thanks
View Replies !
View Related
Start One Sound, Stop Another
I am using this code on the first frame of my movie:
stop();
_root.soundb.onRelease = function(){
mySound = new Sound();
mySound.loadSound("sounda.mp3", true);
}
_root.soundb.onRelease = function(){
mySound = new Sound();
mySound.loadSound("soundb.mp3", true);
}
_root.soundc.onRelease = function(){
mySound = new Sound();
mySound.loadSound("soundc.mp3", true);
}
Each button works perfect EXCEPT, when one button is clicked, I want the previous sound if any, to stop before the new clip starts. How do I modify my code to make that happen?
Thanks
View Replies !
View Related
Start And Stop Timer
okay so this is a multi part question
I'm making my first game, using I suppose you could call it a zelda like navigation engine.. so I have this character walking around
using the arrow keys, press up goes up, press up and left, you go diagonaly up and left.. etc... and the screen follows the character around
so the concept of this game is I would have a large map where the player has a starting point, and must find a coin (i'd like there to be more than one but I think one would be a good place to start)
This coin would randomly generate in one of many desegnated spots on the map.
I need a timer to start as soon as one or more arrow keys are pressed
and then to stop and go to an end sequence once the coin(s) have been collected
anyone up for the challenge up helping this scripting newb?
View Replies !
View Related
How Do I Start/Stop Loadmovie
Ok,
I have a two-frame swf that says on the 1st frame "Click here to play the movie" and on the 2nd frame I have a loadmovie command that loads a swf that was exported from Squeeze of a video with audio.
My question is:
I want to do another loadmovie command that loads a pause/play button on top of the 1st loaded movie that also controls this loaded movie. Any ideas how a button action can effect the play controls of a loaded movie?
If you want to see what I'm talking about, go here: http://www.joefreelance.com/bueter/
Thanks for taking the time to read this-
Joe
View Replies !
View Related
AttachMovie Stop/start
Hello,
This has been frustrating for hours...
I'm attached a simple animation movie clip (purplein) to my main movie.
From the main movie, I want to be able to control the playback of purplein. ie. stop/start.
However, once I call 'stop', I can't get the animation playing again.
You help is much appreciated. Thank you.
yellow.attachMovie("purpleout", "purplein", 2);
yellow.purplein.stop();
yellow.purplein.start();
-Mark
View Replies !
View Related
Movieclips Start And Stop
Hello,
That could be the most stupid question in history but I'm completely stuck (I didn't use flash for almost three years).
I have a flash animation which has 10 animated movieclips. I need to play each one of them, one after the other.
What I thought was to script the begining and the end of each movieclip (stop at the beginning, movieclip.gotoAndPlay(1) at the end).
I tried many things, but the second movieclip never starts.
Could somebody help me
Thank you so much !
View Replies !
View Related
Stop Then Start On Key Press
I am sorry if this has been asked but I didn't find what I needed in a search.
I am trying to stop at a particular frame then on keypress go to scene 2 frame 1. I did it with just a mouseclick but I want to use it where when I press say the key "S" it will play scene 2 frame 1. Any help on this will be great.
View Replies !
View Related
[F8] Add A Stop Start To A Timer
Hi,
I am using this great code made by Kenneth Andersson.
I have been trying to add a stop start button.
Any ideas would be great.
Thanks
Code:
//First we need a dynamic textfield with instance name "theText", check.
//Then we set the total number of minutes. I picked 64 to reduce the
//result-view-waiting-time. 119 would just be... boring.
total = 45;
//Calculate the var total and update the textfield.
this.onEnterFrame = function() {
minutes = Math.floor(total/60);
seconds = total%60;
theText.text = "0"+minutes+":"+seconds;
if (seconds<=9) {
theText.text = "0"+minutes+":"+"0"+seconds;
}
};
//Function for the countdown, can be changed to total++ if you want to
//count "into the future" or something. Well I dunno.
//clearInterval = When minutes and seconds is 00:00 it stops.
counter = function () {
total--;
if (minutes == 0 & seconds == 1) {
clearInterval(setIt);
}
if (total == 30) {
warning.text="Warning, times almost up!";
gotoAndPlay(_currentframe+1);
}
if (total == 00) {
gotoAndPlay(_currentframe+1)
}
};
//Then we start an interval with the counter function, 1000 is milliseconds á 1 sec.
setIt = setInterval(this, "counter", 1000);
stop();
View Replies !
View Related
Rotation Start-stop
I have a question about this dial knob...
Now I am able to turn it from a positive to a negative value ie -45 to 45, but I want it to be -135 to 45. I can change maxRotAngle but that applies to both negative and positive value ie -10 to 10, -50 to 50 etc..
Can this be done?
Thanks!
View Replies !
View Related
Stop Start Sound
Can any of you geniuses help me i have a website with a background sound thats embeded in a player see www.imageworksltd.com on the site i have a few .flv movie files when someone plays the movies i want the background sound to fade out so you can hear the movies and if poss fade back in when movie finished im not a programmer so its all far fetched for me thanks in advance Alistair
View Replies !
View Related
Start And Stop The Video
Hi,
I have taken a flv player instance on the stage. Set the content path.
I can see the movie properly. What i want to do is I want to create buttons for pausing and stoppping the movie.(i dont want to use the inbuilt skins)
I have done this before, almost a year back. Now I dont remember it.
Just remember that we need to create an object and then object.start .....
Any solution?
THanks...
View Replies !
View Related
|