ActionScript 3.0 :: Play 3x Swf One After Another Loop?
May 26, 2010
I have the following code on frame 1, which loads 3x swf files into flash and then it plays them over and over.
I want the "ani2" + "ani3" files to standby while ani1 is playing. After "ani1" is finished, "ani2" starts playing and "ani1" loops back to the start but it should not play again. Same thing for "ani2" and "ani3", but after ani3 has played, then "ani1" starts again while "ani2" + "ani3" is on standby again and so on....
The code:
ActionScript Code:
var url:String = "ani1.swf";
var req:URLRequest = new URLRequest(url);
var myLoader:Loader = new Loader();
I made three flash presentation for my company some time back in Flash 8, during an exhibition my company want all the three presentation to play in a loop so i opened the fla file of each presentation and inserted the following code in the last key frame of each presentation:
in careerfair.swf I inserted fscommand("quit"); loadMovieNum("college.swf", 0);
[Code]....
I don't know, it is still not giving me the result, on double clicking on the presentation i just see one presentation that quits at the end and the new one doesn't start.
I have a movie in which three balls bounce up and down 3 times and then bounce high and trade places, then they bounce 3 times and repeat.Instead of bouncing three times I would like to shorten it with a loop.How do I tell the movie to loop from frame 156 back to frame 106 three times, and then go to frame 157 and play?
I have three flv videos (video1.flv, video2.flv and video3.flv) and I want to play them one after the other (no controls, no skins). When video3.flv is finished I need the movie to restart playing video1.flv again and the rest after it, an endless loop.
How can I do that??
I've tried including the videos one after the other in the time line and in the last frame a gotoAndPlay(1); This works, but the final .swf weights almost 10mb. The project is web based so this is way too heavy.
Now I'm trying the flvPlayback component, but I'm getting quite lost here. I'm importing the three flv to the library. The video implementing wizard shows for each flv but finally I have only one FLVPlayback element in the library. Then I drag an instance on the stage but I don't know how to continue .. Am I doing it correctly? If so how can I continue? Will this method give me a lighter final .swf?
so im trying to get a loop to play the first frame until i is greater than 2.
so on the first frame Im increasing the value by 1
i++;
then on the last frame Im putting a if then statement that if i is less than 2 replay, else goto and stop at the next frame
var i = 1 if (i < 2 ){ gotoAndPlay(1); }else{ gotoAndStop(361); }
now I kinda know whats happening when the second code excecutes its resetting var to 1, so my question is, how do I say once this movie has played once, stop the second time?
I am working on a project which I have to link a few swf. I have used loadMovieNum for the linking, meaning the actionscript I apply for my buttons look like this:
on (release){ loadMovieNum("filename.swf",0); }
Above script enables me to link the files. However, I wish to play an audio across all files CONTINUOUSLY. Is there ANY way to do it? I tried putting the audio in another file and load the movie on level 1. But everytime when I jump from one file to another, the audio stops.
I've created a looping movie in flash which is made up of several seperate swf files and linked together in the main file- it plays fine for the first couple of plays but gradually the timing becomes delayed and slides start to play over one another, is there a way I can have the full sequence play fully everytime?
I am using a mini MP3 player to play an MP3 file. It is working fine, but I need to play the MP3 file in a loop. I have added a variable loop and set it to true but it still doesn't loop.
<script type="text/javascript"> var so = new SWFObject("player.swf", "mp3player", "0", "0", "8", "#ffffff"); so.addVariable("file", "1-05_Concert_ alla_rustica.mp3"); so.addVariable("loop","true"); so.write("flashcontent"); </script>
I've surfed through the Internet and can hardly find any tutorial on how to make a slideshow auto play.S3 tell me the syntax of loop play of a slideshow?
I am having go with one one of the tutorials here. I am trying to use XML to loop, or play, the list of songs that I have going on. Though, I get stuck with two problems:
1) The Flash will not play the 2nd or third song of the XML file, only the first than it stops.
2) The Flash will also not play the XML file if I embed it on another folder, like for example: I want the flash to be embeded on my home page (so index.php) though I have all my files (songs.xml, the songs, home.as, flash_home.swf) on a folder named /flash/ off my root folder.
In my project i need a code wich allow me to play an animation (not a motion tween)it is a self hand made animation frames by frames.my animation start from frame 10 and finish in frame 15.I just need to play it from 10 to 15 in Loop when my mouse is over.and stop animation loop when my mouse is out.
I'm almost done building a full flash site where it navigates by position of timeline.I just need a simple on/off button for a soundloop to loop and play automatically. the on/off button just simply turns it off (toggle is optional). on it doesn't have to resume, just start the pool again.
I am trying to basically have a loop that is based on a string length. It adds a movie clip for every letter and a hidden rollover button. All this seems to be working fine but I am having trouble wrapping my head around how to code the event listeners or it might be how I'm telling it which movie to play. As of now all the buttons play the last mc which is block6. What do I need to do differently?
I need to create a flash video for a website of a product rotating through 360 degrees - looping seamlessly. This will be 100 frames long. I then need to add a 500 frame voice over.
I need to optimize file sizes so what is the best way to tackle this?
Is there a way to loop the video with actionscript but not the audio? i.e. rather than extend and repeat the video phyiscally in the timeline inlind with the audio length - as I assume this will increase the file size?
I made a 2 frame flash. The first frame has a container that holds the movie clip, masks, audio & transitions for the intro. This frame I only want to play once. Then I want it to advance to frame 2 upon completion. Frame two is a leader/score board that will hold score tallies (it is linked to a TXT file that is linked to an ASP, which has not been completed yet), and therefore, it needs to loop into infinity. When I have the FLA open and I press CTL + Enter the intro plays then automatically advanced to the 2nd frame which loops to infinity.
(This is perfect -- this is how I want it to perform). When I go to the folder where the SWF and EXE are published, and I double clidk to open either one of them up, the intro keeps looping and never advances to the 2nd frame. I have to manually press next frame on the pull down menu -- and that is not feasible since this leaderboard will inevitably end up on a big monitor with an audience. Here is the link to the file: [URL].
I have a .mov file and I want to simply encode the video (i assume with flash media encoder) to be a flash file which loops continuiously with a Play/stop button. I'll then have this movie playing on my html page.
i have succesfully managed to encode / create an .FLV file which now plays back in my .swf file. The picture and sound are great when streaming off the web!
how do i command the file to play back in a continous loop? at present it plays and then rewinds back to the begining.
i have investigated some of the .FLV parameters but can't seem to find the control / command i'm looking for.
I'm using AS3. I have multiple swf files to load in an array, and then play them from a master swf file. I've found scripts that can do that, but I can't find one to continuously loop through the swf files. I need a script that can load multiple swf files, then loop through them all. This is for a tradeshow display that needs to run all day. They are large files, so memory is a concern.
I am new to flash. I can't seem to decifer the script examples in the help files. After a lot of trial and error the following codes works great. It delays playback on the video for the proper amount of time. The only problem is when the playback loops (like it should) the codes executes again. I only want to execute the code the first time thru.
I have a flash file that is looping endlessly. I only need it to play once and stop. I have tried eveything to fix it but simply cant ge tit to work, The file can be seen here:[URL] My html code via golive is set yo play once, i am pretty sure the issue is a setting in FLash
I have 10 mc's on my page which I want to load from alpha = 0 to 100, one at a time, but in a random order each time the page is loaded. I have code which uses an array to loop the mc's and I can then load the array into a tween using as2, but I don't know how to randomly create an array, then load these answers into a tween and play them one after another until the loop is complete.
I might as well start by saying im a total and utter newbie to action script, I have literally been thrown into it in the past 3 days, Im a freelance illustrator and a client has just asked me to create a walk cycle animation for him (which i can do) but theres some action script involved and ive never used.
right i might aswell say what i need doing on the whole: When the completed SWF is opened up, I need;
A looping walk cycle of a character (done) , which, when a button is pressed (ive created the button already) the character stops the walking loop cycle, and changes into an aim animation, once the animation is complete, the character goes back into a walk cycle.
I have 10 mc's on my page which I want to load from alpha = 0 to 100, one at a time, but in a random order each time the page is loaded. I have code which uses an array to loop the mc's and I can then load the array into a tween using as2, but I don't know how to randomly create an array, then load these answers into a tween and play them one after another until the loop is complete.
I am working is CS3 and am experiencing problems changing the first frame on a graphic symbol. When I type in a new number it jumps back to the old one. When I try to change play once/loop/single frame setting it jumps back to the previous setting. I am trying to simply modify this on a keyframe in the symbol's layer on the main stage. I've experienced this on multiple occasions, but can't get the workaround this time. I know I can do what I am attempting. In fact, I do it at a couple of spots earlier in this symbol's instance without problems.
i am using soundmanager to order sounds. my site preview, in home page, square shapes comes into stage and you can drag drop them, all shapes binded its own sound. if they are colliding binded song will play.
the problem is i have 3 second timer to control sounds. every timeout i have to stop sound and play again for synchronous issue, that is my solution for that part. but sometimes before loop, there is an annoying little silence.