Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Buttons To Play Different Movies



I need to know how to make buttons so they play different movies please



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 11-26-2003, 06:12 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Buttons To Play Different Movies
I need to know how to make buttons so they play different movies please

Movies In Buttons That Play Til They R Finished
hi,

i have a button that i want to play a mc on a mouse over. i can do that but does anybody know what the action is to tell it to play til the mc is over? i dont want it to start and stop with the mouseover, just continue playing. thanks

Pause/Play Buttons That Affect Nested Movies?
I'm creating an interactive demo that (surprise surprise) I'm learning to code on the fly. Currently, I have a interface.swf, with each of the five sections as separate .swfs that are loaded into the main interface. Each section has narration and animation.

I'm looking to create universal pause/play buttons that not only stop/play each of the child movie clips in the sections, but the sound as well. I attempted modifying a function I found that has an if...in statement to call the nested child clips in each of them, but it doesn't seem to want to work... Here's what the two functions look like, as they stand:


Code:
function stopTimeline() {
this.stop();
for (var i in this) {
if (typeof this[i]=="movieclip") {
if (this[i]._parent==this) {
this[i].stopTimeline();
}
}
}
}

function playTimeline() {
this.play();
for (var i in this) {
if (typeof this[i]=="movieclip") {
if (this[i]._parent==this) {
this[i].playTimeline();
}
}
}
}

this.pau_btn.onRelease = function() {
stopAllSounds();
stopTimeline();
}

this.play_btn.onRelease = function() {
playTimeline();
As you can see, I haven't even gotten around to the sound part yet, because I'm having a hard time figuring out how to code that into the button as well.

Any help would be enormously appreciated..

Controlling External Set Of Movies With Play Pause And Skip Buttons
hi all,

Been looking for some tutorials on how to get this done but cannot find any. After I build this out I want to post up in the tutorials section.

Ok I was wondering if someone could help me on this small problem I am having. I have a total of 4 flash movies. The first movie will house all my navigation as shown below:

[Movie 2] [Movie 3] [Movie 4] [Pause] [Play ] [Skip to Next Movie]

The simple part of course are the first 3 buttons basically just loadmovie statements.

Now the next 3 buttons are the part I cannot quite figure out. The logic from what I have been reading is basically is the create a variable on the mainstage that updates itself each time a new movie is playing. This way you can tell the movie "pause" or "play" because it has a name.

Any actionscripters want to lend a hand on this? I have included the files all setup just need to few lines of scripting. I want to also post this as a tutorial since I cannot locate any tutorials with this sort of logic.

thanks in advance!

Add Skin And Buttons (play, Stop, Etc) To Play A Swf File
Hello Forum,

Is there a way to use a skin/buttons just like the FLVPlayer that will give the same control to a movie clip (aka SWF file)?

I have a few swf files that are movie clips - not video. I would like to be able to load the movie clip, and be able to start, stop, pause, mute audio just like the FLVPlayer component does, but for a swf file.

I would like to have a "component" with the buttons, etc and be able to load the movie clip using the loadMovie method, and play the movie clip. I have a clip that starts playing after I load it, but would like to load it, and have it stopped, and then play the clip using buttons, etc.

I do not want to add buttons to each of my swf files, but have one movie clip with buttons, and load a swf into it.

Any tips will help,

thanks,

eholz1

Buttons To Advance Movies Within Movies
I'm still a novice with ActionScript...so sorry about this:

I have a movie...let's call it "Foundation.swf". It is nothing more than a huge, thick border with buttons that run along the side (like using frames in HTML). One layer has an ActionScript that "LoadsMovie" onto Level 1. It starts off with automatically loading "Intro.swf".

When "Intro.swf" is done, "Intro.swf" then loads "Scene01.swf" in its place. Then "Scene01.swf" loads "Scene02.swf" and so on and so forth. But all this is happening within the "Foundation.swf" movie.

OK...all is good.

Now what I want to do...is to use the buttons in "Foundation.swf" to move whatever movie that is loaded onto that layer up one scene or back one scene, etc. So, how do I script it so that WHATEVER movie is loaded onto that layer can be jumped around within it?

Thanks for all your help!

-Darcie

Movies And When They Play
I have a question about how and when movies play
I have a background for a layer and I want a movie clip to play at a certain time, instead of taking the movie clip I wanna play and putting blank frames before it.

ex.

x denotes blank frame
m denotes static keyframe

1 2 3 4 5 6 7 8 9 10 11 12

background m m m m m m m m m m m m
movie clip x x x x x x x x x x x m

I want the movie clip to come into frame 12.
Now if I place the movie clip inside another movie clip I still have to follow the same sequence
x x x x x x x x x x x m for it to come in at frame 12.

How do I make movie clips starting at frame 1 but when it shows up in the main movie come up at frame 12?

Movies Don't Play
When I "test movie" it does not autoplay, I have to click "start", this is new, any ideas.

Tom

Movies Play Better On Pc Than Mac
I've been creating these games at my job. We design and market slot machines to Indian casinos and we've begun to put playable Flash versions on our website. After a lot of trial and error we've been able to get the playing speed close to the real thing ( some of these play snappier than others) but in general I find they play way better on a pc than on a Mac.

At work I do my creating on a 1.5Ghz Dell Precision 330 and how they play on that machine has been my benchmark. I'm a Mac guy at home. I've got a 400Mhz G4 and when I look at the games there, it can be disheartening!

This hasn't been an issue til now. One of our salesmen in OK happens to have a Mac laptop and wants to show the Flash games to prospects, so now it's an issue.

Any suggestions or ideas about getting the animations to play faster, both on the Mac or in general? Also, any info on why the platform difference would be appreciated.

http://www.isdgames.com/htdocs/public.html

Thanks,
Gerry

AS3 To Play 2 Movies At Once
I would truly appreciate any help with AS3. I am a noob to AS3.

I have 2 movies I want to play. One is an imported flv and the other is a movie created in flash. I only want them both to play when the user clicks on the flv movie to play and both to stop when the stop button is clicked. I used the play button from the component list to control the flv movie.

I have given the play button an instance name of … playbutton
And the flv movie an instance name of … flvmovie
The the other movie an instance name of … bluemovie
And the stop button an instance name of … stopplay

What to do what to do???

Movies Play
Hello

I have 5 movies (movie1.swf,movie2.swf,movie3.swf,..)

I want to let the 5 movies to play continues play on my site (like gig image)

movie1.swf --> movie2.swf--> movie3.swf--> movie2.swf--> movie4.swf--> movie5.swf --> movie1.swf...

Thanks

Play Swf Movies After Each Other?
hi all you flash heads out there!

i have a couple of swf movies which i´d like to play after each other in a new FLA file!

well i thought i came up with an idea to make my work easier but i spend the whole day figuring out HOW???????

it just plays the first movie and as soon as i put the next movie it doesn´t play anything at all! i am a flash starter so i am not that good in scripting.

right now i am learning by doing and reading other persons scripts!

PLEEEEEEEASE HELP!!!!!!!

Using A Button To Play Two Movies
I'm designing a photos page for my band. (you can see what I have so far at stairwell.net.) I want to create a button that will do two things:

1. play a simple movie, and then...
2. play another movie immediately after the first movie finishes (but not before). (this movie will open a full size version of a thumbnailed image.)

I can make the two movies happen at once, but i want flash to wait for (1) to finish, and then do (2).

thanks.

[Edited by tkfourtwoone on 11-13-2001 at 02:05 AM]

How To Randomly Play Movies
hi!

I have 8 movie clips on the main timeline (all clips just have some text that fades in and out). Is there a way of playing these clips in a random order? ie: clip1 plays, then clip5, then clip8, then clip3 and so on...

if anyone can help that would be grand!

thanx in advance

:O)

Loading Movies During Play
My site is about 735 Kbs so it does take a while to load with a straight pre loader. I am trying to minimize the waiting time.

I have my first scene that ends with an enter button which links to the second. I want the first scene to continue loading the remaining scenes rather than stopping at the end of the first.


I am fairly new to actionscripting any help or suggestions will be appreciated.


JRD

Randomly Play Movies...
Hey,

This is for flash5 by the way...safe.

Ritey-HO...Basically...

Iv got (for example) 4 movie clips...

I wnt these movies clips to play on the main stage in a random order, wiv random lengths of time between them...

So maybe...Movie_1 plays...pause for a second...Movie_4 plays...pause for 0.32 seconds....etc, etc, etc...

Please sum1 tell me how...

So I need summit to randomly select from a predefined selection of movieclips...Not jst randomly play ne movie clip that mite be in the .fla...Thanxs y'all...

Bye,

Mike :|

Getting Movies To Play Ontop Each Other
I have three buttons placed on the main stage, all on the same layer. Each button has its own move that it plays. Each movie is placed on its own layer on the stage, because of this one of the movies will not play ontop of the other because it is layered below the other.

How do I get my movies to play ontop of each other?

Thanx for the help!

How To Get Flash Movies To Play?
Ive just got flash mx and ive made a short film about 20sec with
appearing and disappearing text. really simple.

i wanted to show a mate but he doesnt have flash mx. I dont know how he can see it.

how can i make this possible.

any help is appreciated

Attaching 2 Movies To Play One After The Other
i guess this is fairly simple but i can't do it..


I've used attachMovie to play a movieclip and i want a second to be attached as soon as the 1st one finishes.

cheers.

Timing Movies To Play One Right After The Other
Im using Flash MX and i want to time my movies to play one right after the other. i have 14 movie clips in 2 rows of 7 named in sequence (sm001, sm002...sm014). basically what im trying to do is get them to fade in from left to right, starting with sm001, and once that reaches and alpha of 85 i want the next one to start. this is about as much as i have worked out so far, now im stuck.

picArray = ["sm001", "sm002", "sm003", "sm004", "sm005", "sm006", "sm006", "sm007", "sm008", "sm009", "sm010", "sm011", "sm012", "sm013", "sm014"];
k = 0;
trace(picArray[k]);
setInterval(fadeImg, 1000);
function fadeImg() {
if (picArray[k]._alpha>100) {
k++;
} else {
picArray[k]._alpha += 5;
}
}

also, each movie clip is set to alpha 0 and actionscripted to fade to alpha 100. thanks for an help i can get. sorry if i didnt decribe enough.

-ash

One Click... Two Movies Play?
Here's a dumb one:

When you roll over my button, the word "glows in" .. when you roll out, it "glows out"

on (rollOver) {
this.gotoAndPlay("glow");
}
on (rollOut) {
this.gotoAndPlay("glowOff");

------

I also want some little stars to come flying out. But not on the same timeline as my "glow" ....

Question: Can the same rollover action play two little movies at once?

On Release Play All Movies
I have figured out how to get all my movies to Stop with the click of one button, now I need to know how to get them to Play again with the click of another button. Currently, I am starting each instance seperately and I am sure that this is not the most effective method:

on (release) {
_root.mcsign1.play( );
_root.mcsign2.play( );
_root.mcsign3.play( );
_root.mcSignal.play( );
_root.mcMars.play( );
_root.mcShip.play( );
_root.mcWater.play( );
_root.mcClouds.play( );
_root.mcMountains.play( );

unloadMovie("mcText");}

Thanks

Flv Movies Play And Pause
i have this script for my flv movie:


Code:
pause_btn._visible = false;

var ncDefault:NetConnection = new NetConnection();
ncDefault.connect(null);
var nsSample:NetStream = new NetStream(ncDefault);

var vidWin:Video;
vidWin.attachVideo(nsSample);

play_btn.onPress = function(){
nsSample.play("freemind.flv");
pause_btn._visible = true;
};
is it possible to make a pause, and stop button...or maybe even rewind and forward?

Movies Play Faster On PC Than On Mac
I've been creating these games at my job. We design and market slot machines to Indian casinos and we've begun to put playable Flash versions on our website. After a lot of trial and error we've been able to get the playing speed close to the real thing ( some of these play snappier than others) but in general I find they play way better on a pc than on a Mac.

At work I do my creating on a 1.5Ghz Dell Precision 330 and how they play on that machine has been my benchmark. I'm a Mac guy at home. I've got a 400Mhz G4 and when I look at the games there, it can be disheartening!

This hasn't been an issue til now. One of our salesmen in OK happens to have a Mac laptop and wants to show the Flash games to prospects, so now it's an issue.

Any suggestions or ideas about getting the animations to play faster, both on the Mac or in general? Also, any info on why the platform difference would be appreciated.

http://www.isdgames.com/htdocs/public.html

Thanks,
Gerry

Movies To Play In A Container
Hello

I hope someone can guide me in the right direction. I am producing a cd in Flash.

I want my flash files to play inside of a container/frame. The container will be viewed as a red bar at the top and bottom of the flash, containing my play, pause buttons etc. The flash movie will play inside of the red bars.

Can the container be a separate object object as I want the heading to be maintained in the container, so that heading changes will be updated on the container extending the flash movie lifespan.

I also want to add a preloader which is built into the container to let users know that the next movie is loading.

Can the container be built in flash or would I have to use a scripting language?

My flash files currently run as external movies - is this ok or would they need to be internal?

Can anyone help?

Cant Play Flash Movies (swf)
For some reason Flash movies wont play on my G5 using the Flash Player application... they just come up blank... I can play flash in a web browser froma remote site but not from my nachine... I think I have all the necessary software thats needed...
any ideas??
thanks
DF

Getting 4 Movies To Play (preloader?)
I started off thinking I was doing a good thing by breaking my movie down into 4 distinct movies (movie1.swf, movie2.swf, movie3.swf, movie4.swf).

What I had envisioned is that the site would load and play movie1.swf and then transition to movie2.swf and so forth.

I couldn't figure out how to do this with these external .swf files. I've read through the forums here and found dozens and dozens of preloader examples, which I tried out, but nothing would work.

Does anyone know how to do this?

Please help...

Play Two Movies At Same Time
Good day all

I have a movie that has two images that fade in and out using the loop event. How can I get some text to fade in and stop one time while the two images contenue to fade in and out?

Thank You
leecsone
leecs@northrock.bm

Play Two Movies At Same Time
Good day all

I have a movie that has two images that fade in and out using the loop event. How can I get some text to fade in and stop one time while the two images contenue to fade in and out?

Thank You
leecsone
leecs@northrock.bm

Pause & Play Movies At Any Given Instance
Hi,

I'm trying 2 give the user more control on the movie he views. So i want to put a button that in default mode displays "PAUSE" and on click actually pauses the movie at whatever frame it is(this should also pause any inner MC's). At the same time it should then change display to "PLAY" and on clicking should resume from where it was stopped.

Firstly, how do i create such a button that toggles its display state between "PAUSE" & "PLAY", & secondly does this require actionscript, cause the normal stop action doesn't halt the movie at whatever frame v were viewing, but at the starting frame of the movie.

Anyone out there who has the answers????!!!!

Thanx & Regards,
Avi

Play Mpeg Movies In Flash?
Hi everyone!!

How can I play .mpeg movies in flash, like Windows Media Player, with the controls at the bottom to fast forward, pause, etc? Can it be done? Does anyone know of a good tutorial?

Thank you!

Play Quicktime Movies In Flash
Hi there! After some nights of trying to play a Quicktime Movie in a Flashwindow, I gave up. Is there somebody who can help me to bring this f..n movie selected from the playlist in the tv screen above, take a look at http://www.nachtwerk.tv . The problem is, that my QTplayer seems to need an extra plugin to view this movie or to convert it, but I´ve allready downloaded the latest Player Ver. 6. from apple.com - not better than before! Do I need the Director?

Stop And Play With Seperate Movies
I am having a problem developing a internet delivred class here at work. First off I have about 20 sepearate sound files that are all there own movie, they are all cued up and different times and I need my stop and play controls to stor and play whatever current sound movie is playing. How can I do this all the tutorials I have found are only for controlling the current movie. Please advise. Thanks

Play Movies In Selected Sequence
Lets say I got 5 movieclips in my timeline, but instead of playing them in a predetermined sequence I now want to select the playsequence in the published swf (lets say by giving movies 1-5 movie a number) and play the numbersequence I selected.

Anyone know of any fla that has an example of this?

Play Flash Movies In MS Outlook?
Is it possible (or does anyone know of a 3rd party add-on)
to be able to play back a flash (.swf) file within an
Outlook (or other HTML-based) e-mail? We send lots of HTML based e-mails--it would be cool to be able to send a Flash e-mail!

(I don't just want to attach the flash file--I want it to actually display in the Outlook window when someone receives the message--much like the HTML e-mails that are common today.)

Lemme no...
Brian Collins
Orlando, FL
bcollins@national.aaa.com

Controlling Play And Stop Movies
hi, everyone
pls help me.
i wonder why when i convert the "forward" button to movie clip, it does work!

the below actionscript is attached to "forward" button:

on (release){
nextScene();
}

this actionscript only work when it is button instance. but it does work if "forward" button inside the movies instance.

any idea?

Movies Play Slow In The Browser.
A while back I made a movie that was timed to music. It played just fine on my computer when I had Winders ME loaded. I've since upgraded my computer and my OS to Winders XP.

Now the same flash movie animation plays slow, while the music is at the same speed. Now the events of the movie are no longer timed to the music.

Any ideas why it's doing this?

I do have the most recent version of the Flash player and used Flash MX to create the movie.

How To Play Different Movies By Clicking Same Button
hi

i'm very new to action script so pls bear with me ...

i am trying to make a button which when clicked first time plays one movie and then when cliked second time it should play another movie.

i have put tell target command on a button ..which moves one box from right to left...but the problem is when the person clicks again on that button that box movie starts from its initial positon....right.which i don't want.

is there any way out where we can cature if the user has clicked second time and the next movies plays..or anyway i can leave that box movie in the final postion (which is left)after mov_box button is hit first time.

pleeaee help me out!!

Do All Movies Play The Same Speed On Different Computers?
once its preloaded or does the computer have something to do with it.

Making 2 Movies Play At The Same Time?
Hi, i have searched all over for an answer for this but have come up with nothing.

I have a flash movie as my header and one as my footer. In the header images fade in and out of each other. The footer has the bottom of the same images that fade at the same time. This is my problem. The Header movie is much bigger than the footer one so it loads after the footer movie has started playing. Meaning its out of synch, how do i stor the footer movie from playing untill the header has loaded and started playing??

Thanks in advance

Adam

Triggering Quicktime Movies To Play
This should be simple, but...

I have a project (a flash cd) that has to remain as an .exe (not quicktime) when finished, and therefore keep its interactivity.

Whithin the cd there's several buttons that each need to trigger quicktime movies to play. They should play on their own...not inside the flash cd.

The movies all together are too big to embed in the flash movie, so I have to link them from somewhere on the cd.

How do you go about this? I'm sure the answer is right there in front of my nose but every tutorial I read tells me that the whole project has to become a quicktime. Am I understanding this right?

Thanks.
Waizen

Play Random Movies And Types.
Hi all.

Im new to Flash and wish to make an exe that can play both avi, and other swf files. These should play at random to their end, when another file will be played. I want the app to read all files in a folder so assume this would require XML. I would be so helpful for any pointers.

Getting 'attached' Movies To Play In Sequence
Hi all - this is extremely embaressing to ask as I should know this - hard to believe I am a MM Flash 5 Cert Developer, but I have been out of the loop for about 2 years and with all the upgrades, and changes I feel a bit lost.

Recently upgraded from MX to 8, I'm developing some elearning material, but am finding it very hard to control my loaded movieclips.

I've got a shell fla into which I am loading/attaching movieclips from the library. I've got a couple of keyframes, on which I have the following:

KF1 - this.attachMovie("loadScreen_mc","loadScreen_mc",1 00,{_x:0, _y:0});
KF2 - loadScreen_mc.play();
KF3 - this.attachMovie("Interface","interface_mc",200,{_ x:0, _y:0});
KF4 - interface_mc.play();
FK5 - this.attachMovie("Objectives","Objectives_menu",50 0,{_x:10, _y:60});
FK6 - Objectives_menu.play();

I KNOW this is all wrong because it is not working, the maintime line is just playing each kf one after the other. And all I get is a mass of chaos on screen if anything.

I know this is basic 101, but I'm starting from scratch here with flash shell design and would appreciate any pointers or help in correctly loading and playing my clips - loadscreen first, then the interface and then the objectives.

God what a learning curve and what makes it worse is that I used to know all this!!

cheers

frank

Load Different Movies And Play Continuously
I am trying to have a movie that loads several more movies and playing them in a continuous way as it were only one movie. Lets say the whole content last 12 min divided in 4 movies of 3 minutes each but that the final output seems like as only one movie. How can this be done? At the moment I have 2 possibilities, to play the main movie as a .exe file in the desktop and opens a 500x500 px, loading the different movies from a specific folder in the PC or have it read from an url but the content of each movie movie may change with time, but here comes a question one time that each movie loads for the first time will it be required to load again everytime is played or if once loaded each movie will play as it were in the hard drive of the PC ( I ask this because probably each movie will have something about 50mb and don't want to have a loading bar between them, just to seem like a continuous movie..The first time is not a problem, but the following times is what I would like to know).

Is any of this possible?

5 Movies - Preload All At Once - All Play In Sync
I have 5 swf files. I want to preload all of them into an "empty movie" and when one movie ends the other begins automatically with no buttons involved.

This has to be easy -


Please help -

Two Movies Play At Same Time, Different Speeds
Hi,

Pardon my noobishness.

I have two movies playing at the same time, but I need one to go 1/10th the speed of the other (2 different mpegs of objects rotating).

I have tried adjusting the fps but when I change the fps for one movie, the other is changed too--I guess fps is universal to the flash project.

I have also added hundreds of more frames to the one I want to play more slowly, but I don't see a difference.

Is there any way to action script the speed at which each movie plays?

Thx a bunch!

Making Movies Play With Roll Over
Does anyone know how to make a movie roll over button, that will start and stop were you left off. here are some examples:

http://www.fabchannel.com
http://www.diddy.com/diddy.php

The buttons are at the bottom.

Thanks so much,

GL

How Do I Play Quicktime Movies From Flash?
Hi,
I have been trying to figure out how to do this, but I just have no Idea! I'm making a cd-rom and I want to play a quicktime movie (.mov) from the flash projector. I know I can use embedded video in flash, but is it possible to open the video without putting it onto the timeline?
Can I play it from the flash stage or open it in a seperate window?
If so, how?
thanks.

Successively Load And Play Movies
Basically, I'd like to load and play, in succession, about 10 swf files. There are two caveats. I'd like to preload the next movie in line, so that when it is time to play it it is ready, and I'd like for there to be no flicker or pause between the two movies playing (the movies make up one continuous sequence). I accomplished the task using loadMovieNum by loading the files all into one level, each movie loading as the other finished, but then I get a little flicker between the end of one and the beginning of another. Here is some code I'm trying to use that doesn't seem to work. I'm very beginner at flash btw.

swf_array = ["part1.swf","part2.swf","part3.swf","part4.swf "];
counter = 0;
this.createEmptyMovieClip("TopClip",3);
this.createEmptyMovieClip("BottomClip",2);
this.onEnterFrame = function() {
if(counter == 0)
{
TopClip.loadMovie(swf_array[counter]);
BottomClip.loadMovie(swf_array[counter]);
counter++;
}
else if(TopClip._visible &&TopClip._totalFrames == TopClip._currentFrame)
{
TopClip.swapDepths(2);
BottomClip.gotoAndPlay(1);
BottomClip._visible = true;
TopClip.unloadMovie();
TopClip.loadMovie(swf_array[counter],2);
TopClip._visible == false;
counter++
}
else if(BottomClip._visible && BottomClip._totalFrames == BottomClip._currentFrame)
{
BottomClip.swapDepths(2);
TopClip.gotoAndPlay(1);
TopClip._visible = true;
BottomClip.unloadMovie();
BottomClip.loadMovie(swf_array[counter],2);
BottomClip._visible == false;
counter++
}
}

Copyright © 2005-08 www.BigResource.com, All rights reserved