Actionscript 2.0 :: Use XML To Loop Or Play The List Of Songs
Apr 2, 2009
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.
View 14 Replies
Similar Posts:
Jan 4, 2009
I am making a photo slideshow with music playing in the background. I have the first song in so it plays as soon as the slideshow starts. I want more than one song to play. I would like a new song to start as soon as the old song is complete. I tried creating another music variable underneath the first code but that didn't work. How can I add more songs so when one song ends the next one starts playing?
View 1 Replies
Jan 27, 2009
i want to make a fade volume between songs to songs...this is the function i have made... what's wrong?
Code:
fade.onEnterFrame = function() {
new_volume = 0;[code].....
View 9 Replies
Jun 18, 2009
So im using macromedia flash 8, and Im wondering how I can make a frame automatically play random songs, and have them keep repeating too.
View 4 Replies
Jul 18, 2011
I have a flash player which can play the songs stored on the Local Server, under "mp3" directory.
I would like to modify this player, so that i can play the songs stored on the remote server, through an API.
Following is the code of the player [code]...
View 4 Replies
Mar 5, 2002
I have it like this;
on (release) {
alexSound = new Sound(this);
alexSound.attachSound("coolsound");[code].....
But i dont want it to play two songs at the same time if i press the button twice.
View 1 Replies
Aug 16, 2010
Im new to the AS3 game but I need some help with something. I have built a pretty good website mp3 player but it plays the songs in order. I want the the mp3 player to play a different song everytime it loads.[code]
View 2 Replies
May 31, 2011
I'm looking to create a music player where one can upload songs from any computer on the web and play them back... is this possible and if so how would I go about creating it?
View 1 Replies
Apr 13, 2011
I need to play some mp3 sounds (bird songs), depending on keyboard events.
First I create my Sound and SoundChannel
var music:Sound=new Sound();[code]......
Everything fine till there but I need later to stop the current sound, and play a new one ...I made some tries ; I am able to stop the current sound, but unable to play another one .How should I proceed ?
View 1 Replies
Mar 20, 2009
don't know how to frame my query but i'll try to be as specific as possible.Let's say I have an xml file which I load into my flash app and then populate a listbox with it.So I'll take following steps1. load xml file2. parse xml file and make an array of items to be put in listbox3. loop through the array and populate the listbox (basically attachMovie)Now for step 3 I have been using for loop. This is ok if there are small number of items in a list box. But when the list is quite long (say 200 to 500 items) there is certain lag.same paradigm applies if I have to put different graphic elements on a blank board dynamically.
View 1 Replies
Apr 6, 2012
What am trying to do is match an Array of possible passwords to the correct password and trace if the password is correct or not. This is what I have so far.
var passWords:Array = ["catdog", "fatcow", "yoda", "petergriffin"];
var userPassword:String = "petergriffin";
var wrongPassword:Boolean = false;
[Code].....
View 1 Replies
Oct 11, 2010
I have an array, and, when I use the for...in loop to add each element to a string in order, it appears to list them in descending rather than ascending order. I want to know if this is what its supposed to do and how i might be able to make it go in the right order.
View 2 Replies
Aug 2, 2006
How do we get the XML list looping so when we get to the end of the list the next_btn takes us back to the first photo in the list again? (And Visa Versa)
View 3 Replies
Mar 29, 2012
I have this:
Code:
function onAdd(e:Event){
switch (getQualifiedClassName(e.target))
[code].....
View 5 Replies
Feb 18, 2009
I hope this is the right place to ask my question. OK, I need a list of softwares that can play FLV on my computer, and I mean just play FLV in the software, not through web browser. For I have seen a lot of people asking this question on the Internet, I'm interested in it, too. I know Realplayer cannot play FLV, so please don't say Realplayer again, It's a stupid question, I know. I think you Flash gurus must know the answer.
View 2 Replies
Jan 19, 2011
I've got 13 movieclips that all run a function (setNames) contained in a child object (namer) it contains. The function displays text in a dynamic text boxI've set them up with the instance names mark0 > mark12 so I can target them with a loop and array notation which is something I often use. But the loop sometimes doesn't work, however a list of 13 separate lines of code works fine. Am I overloading Flash with too much code commands at once, and is there a way around this?This doesn't work...
for(i = 0; i<13; i++) {
//sets names
this["mark"+i].namer.setNames();
[code]......
View 4 Replies
Jul 3, 2006
i am trying to create a loop that will put a list of names from external sources into a number of Arrays .so what i did is :
Code:
for (i=0; i<4; i++) {
this["loadVarsText"+i] = new LoadVars();
this["loadVarsText"+i].onLoad = function(success) {
[code].....
and i dont understand why it is not working, and how can i fix it?
View 3 Replies
May 13, 2010
I was wondering if I could pick your brains for moment. In my XML there are video URL's.[code]...
View 2 Replies
Jan 4, 2010
I am trying to create a video player with a play list. I attempted to follow the tutorial at UrL...but couldn't get my customized player to work. I have a feeling there is something that needs to be tweeked with my AS but I'm not really sure because I am not a big programmer (more of a designer).URL...[code]
View 0 Replies
Jun 15, 2009
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.
View 1 Replies
Jan 13, 2009
I have a video player that is working great - but am trying to change the XML play list from one that is prev/next page to a scroller. I don't just want to straight up post it since it was purchased from another site.
View 9 Replies
Jul 19, 2009
you may quickly determine I am totally new to flash and actionscript. Tried learning it a while back but got distracted and just started over. Trying something that I thought would be real simple only to discover that nothing about AS is simple... So I wanted and play a movie via an XML generated list. Followed one of the tutorials here and tried to adapt it for video. The list works and the path for the video traces properly but for some reason the video never appears on the stage. I can take out the variable "vid" and put the path in manually without changing the structure and it works fine. Can someone point out my error. And if I am totally doing this wrong I am open to criticism as long as its constructive.
[Code]...
View 4 Replies
May 8, 2009
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?
View 10 Replies
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();
[Code].....
View 1 Replies
Nov 4, 2009
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?
View 1 Replies
Jun 4, 2008
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?
View 1 Replies
Nov 29, 2009
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.
View 2 Replies
Oct 13, 2008
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?
View 1 Replies
Aug 14, 2010
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>
How can I get this to work?
View 2 Replies
Oct 5, 2011
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?
View 3 Replies