Actionscript 3 :: XML Playlist With Single-Track Looping?

Mar 26, 2012

My plan for my website is to have music tracks pulled from an XML file which act as the background music for the various .swfs loaded by the menu buttons. I.e. hit 'Home', and it takes you back to the home .swf and plays the appropriate music. I want to do this through XML rather than attaching the music directly to the .swf to cut down on load time (syncing isn't a concern), as I can't seem to retain audio quality without bulking up the .swf significantly.

I'm encountering two problems: one is that with the current code, the music only plays once, and doesn't loop. The other is that I want the functionality to play one song as an intro, and then continue to loop another. I.e., hit the home button, intro plays, followed by the looping section, and never returns to the intro unless you hit home again. I can't seem to figure out how to manage either of these things short of creating a unique function for every single button.

Here's the code I'm using:

var my_songs:XMLList;
var my_total:Number;
var my_sound:Sound;
var my_channel:SoundChannel;

[code]...

View 2 Replies


Similar Posts:


Mp3 Player Modifications - Insert The Playlist 'track Buttons' Inside The Scrollpane On The Stage

Jul 3, 2009

I will inlcude here to code i used and a zipped folder containing all the files of my mp3 player. What i would like to do, (i am not an actionscript expert and did this following a tutorial) is to include a download button for the track which is being listened, be able to insert the playlist 'track buttons' inside the scrollpane on the stage, and sort an annoying bug which makes the music form the player continue even when i leave the section of the site where its in, keeping the music in the background running and starting a new track ontop every time i renter the section where the player is placed.

[Code]...

View 2 Replies

Actionscript 2.0 :: XML Video Playlist Looping

May 18, 2009

i'm using the XML Video Playlist tutorial and have it working like a charm, but my issue is that once a video is done playing, i'd like it to stop. Instead, it starts the video over. i tried adapting the Code: Select allfunction restartIt() {ns.seek(0); by giving a false value, but it didn't change anything. I also added a Code: Select all<param name="loop" value="false" /> to my web page, but that didn't help.

View 1 Replies

ActionScript 3.0 :: XML Into Flash For Looping FLV Playlist

Jul 8, 2011

How to get an array from an XML file, bring it into flash, and set up a playlist from the XML file to play a series of FLV files (that also loops). Also to include the ability to add to the list in the XML and flash automatically recognize the new item and throw it in the playlist on next runtime.

Currently I have an xml file being loaded in to control the prices on a menuboard.

Code:
import flash.display.Loader;
import flash.net.URLLoader;
import flash.events.Event;

[Code].....

View 14 Replies

ActionScript 2.0 :: Assign Mutiple Flv's To A Single Group Node In An Xml Playlist??

Jun 28, 2007

I have been able to successfully build an xml video player that can play videos that all have a unique description attribute but I would like to have the user click on a title and it play through multiple videos while that one title is highlighted. Here is the code that I have so far:

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {

[code].....

View 4 Replies

ActionScript 3.0 :: Looping An Audio Track?

Mar 13, 2012

I would like to continuously loop an audio track which is being played, meaning I would like to click the button once have the track continue to play over and over again. This is the code I have so far which allows me to click the button and for the track to play only once.
 
var mysound:Sound = new Sound();
var mychannel:SoundChannel;
var myrequest:URLRequest=new URLRequest("drums.mp3");
mysound.load(myrequest);

[code].....

View 3 Replies

Single Start/stop Button For Looping Movie?

Oct 25, 2009

I currently have a 23-frame multilayered single-scene animation designed to loop continuously which I would like to add to my portfolio. As such, I am adding a Play button, which I would like to toggle to a Stop (or Pause) button. I currently have an instance of the Play button ("playButton") created.
 
(You can find this at pineboxmovingco.com/gear_redux.swf)
 
Besides imploring your assistance in providing the code, I must also ask if this requires (and best practice for) inserting an additional frame at the beginning for the ActionScript, as well as where/what layer to add an instance of the Stop button. I would like the movie to be stopped by default, presenting the Play button, toggling to the Stop button, and back to the Play button, each upon release.

View 8 Replies

ActionScript 3.0 :: Stop A Single Movie Clip In Flash And Other Movie Clips Still Looping?

Nov 22, 2010

how to stop a single movie clip in flash and other movie clips still looping. I tried stop(); and myclipname.stop(); both are not working. I attached a simple file,

View 0 Replies

Separating Looping Anims From Non-looping?

Feb 2, 2010

The issue I am running across is this: I encoded and embedded a movie clip to act as the background. There are other animations that can and will loop, as the movie resets itself. But there are some elements that I only want to run once and not repeat once the embedded movie loops (link introductions, where objects fly in and transition into the button). How can I set the one time animations to fire just once, while keeping the embedded animation on a loop?

View 1 Replies

IDE :: Singling Out Non-looping Anims From Looping

Feb 2, 2010

I am fairly new to Flash and I am constructing a website. The issue I am running across is this: I encoded and embedded a movie clip to act as the background. There are other animations that can and will loop, as the movie resets itself. But there are some elements that I only want to run once and not repeat once the embedded movie loops (link introductions, where objects fly in and transition into the button). How can I set the one time animations to fire just once, while keeping the embedded animation on a loop?

View 1 Replies

Using XML To Create An SWF Playlist?

Nov 9, 2009

There will be a "pool" of SWF files- I would like to create a "shell" swf that will load an external XML file that will determine which of the files in the "pool" the shell will play. I guess this would be called an XML-driven SWF playlist.Forgive me if my terminology is rather primitive- again, I'm new to XML (I'm an animator by trade.)

View 1 Replies

ActionScript 2.0 :: Play Some Or All Of Playlist?

Aug 11, 2009

I followed along with Lee Brimlow's video playlist tutorial utilizing the list component and XML - easy enough. I'm looking to add another level of complexity to a playlist which would involve some sort of checkbox or radio buttons associated with each item in a playlist. You could then choose to display only 2 or 3 videos of a 10 video playlist, for example.I'm not expecting anyone to write the script out for me. However, I would be very appreciative if anyone could steer me in the right direction to get started. I've been searching for things like "selectable playlist" but that of results in a playlist that allows you to select which item to display.

View 2 Replies

Website FLV Player With Playlist

Oct 18, 2009

I would like to have a simple flv player on my website.But this player should have a playlist.I cn create inside Dreamweaver just a simple player skin... but it doesn't allow me to generate a playlist.

View 1 Replies

Professional :: How To Make A Playlist

Jul 23, 2010

I've been trying to make a playlist of some of the short movies i've done across the years but I am currently stuck.Is there any way to have a .swf file, load other .swf using variables defined on a separate txt or xml file? if so, is there a way that flash can do it all automatically? that way if i have to update it i only have to update the variables in the .txt/.xml file instead of updating the entire .swf file.

View 2 Replies

ActionScript 2.0 :: Flash Playlist From XML

Mar 17, 2005

[code]I need to read this file in flash and list the songs one under another to build a playlist. Not sure if I should do this in an mc, text area, listbox? But either way, I don't know how to list the songs, no matter how many. I might have asked and described it to complicated on other sites,How do you read the files in the playlist node into flash and list them?

View 14 Replies

ActionScript 2.0 :: Next Movie In Playlist?

Feb 5, 2007

I am building a flv player. At the end of the movie I would like it to advance to the next movie. I currently have this.

Code:
if (Math.round(loader_mc.scrub_mc._x) >= Math.round(loader_mc.loadbar_mc._width)) {
nextMovie();
}

Is this the best way to detect when a movie is done or is there a better way. I don't really like my method because it potentially could cut off a half a second of video.

View 3 Replies

ActionScript 3.0 :: XML Playlist Under MP3 Player?

Jan 28, 2009

I have an as3 mp3 player that loads a random file from an xml list so every time the user opens the player a random song plays and when song finishes or the user skips the song it goes to a random song also. I want to create an interactive playlist under this mp3 player. is this possible as the songs that are played are at random?

View 4 Replies

ActionScript 2.0 :: Xml Playlist Mp3 Player?

Feb 21, 2010

i am trying to create an xml driven mp3 playerbut one that displays all the songs in a listwhich users can then click on to select the song they want to play.two examples:[URL]

View 2 Replies

Calling From XML Playlist And Playing MP3 With MediaPlayBack

Jan 15, 2010

I've got a problem to play MP3 with MediaPlayBack, calling from a XML playlist. The playlist seems to work but not the MediaPlayBack which doesn't load the MP3...

Here is my XML code named mp3list.xml
<?xml version="1.0" encoding="utf-8"?>
<musiques>
<musique url="musique/01.mp3" desc="titre 1" />
<musique url="musique/02.mp3" desc="titre 2" />
<musique url="musique/03.mp3" desc="titre 3" />
[Code] .....

View 4 Replies

Media Server :: DynamicStreamItem And Playlist?

Apr 22, 2009

Following the code shown in this example (Examle 6):
 
var ds:DynamicStream = new DynamicStream( myNetConnection );
//The first item in the playlist
var dsi:DynamicStreamItem = new DynamicStreamItem();

[code].....

View 5 Replies

Media Server :: Playlist Xml On FMIS3.5?

Sep 9, 2010

ake a script on my server FlashMedia who plays my playlist xml loop. The script works for the first reading of the playlist but I do not know how to play it at infinity.Can you add my script?
 
application.allowDebug = true;
Define events on application start
 application.onAppStart = function() {[code].........

View 8 Replies

ActionScript 3.0 :: Linking IN To An XML Video Playlist

Dec 13, 2010

I have created a flash video player using a customised flvplayback component and an XML playlist.The playlist in flash consists of a tumbnail with a name, which is within a scrolling MC, and 2 text areas under the video player itself.one for the title and the other for a description. All text and images are loaded from the XML.The default player starts with an auto play video and then the user can select a video from the playlist on the right.I'm trying to make it so I can create a URL link on another page within our website (home page)i.e "see this video of us doing this". I want the URL link to take the user to the video player page, but load in a specific flv and text from the XML instead of the default.

Is this possible?I have looked into flashvars but im not sure how to implement this with an XML player, and preferably not having to create a duplicate html page.(I would like the URL link to tell the flash player which video to load)

View 1 Replies

ActionScript 3.0 :: Video Gallery With Playlist?

Apr 25, 2011

i need a tutorial of video player which must be like  youtube video player. preview of a site like this i want it to be.[URL]

View 1 Replies

Xml :: Flash MP3 Player Loop From Playlist

Sep 18, 2010

I have an mp3 player based on the School of Flash code. When I click "next song" I need it to go to the next song, unless it's the last song in the playlist in which case it needs to go back to song number 1 in the playlist.

The following code doesn't seem to do the trick

var songlist:XMLList;
var currentIndex:Number = 0;
and..
function nextSong(e:Event):void

[Code]....

View 1 Replies

Flash 9 :: Automated Playlist Generator?

Sep 27, 2008

I have searched everwhere on the internet for a solution, with no luck, so I am hoping that someone can point me in the right direction.I am trying to make a kind of interactive tv. I have eight scenes and each scene has four choices of movie clips.A user picks one clip from each scene, maybe with check boxes. This generates a playlist which is loaded into a flv player which in turn plays the eight clips in order.

View 0 Replies

ActionScript 2.0 :: Draggable Xml Video Playlist

Feb 2, 2010

I am working on a video player with a selectable xml video playlist. I have successfully made the playlist draggable but can't seem to figure out how to allow the list (previously accessible outside the draggable movie clip) to be selectable. drag_mc is the movie clip which I have made draggable. Here is the part of code I am dealing with:

[CODE]...

View 0 Replies

ActionScript 3.0 :: Flash Mp3 Player With Playlist?

Jul 25, 2010

I was trying to build a flash mp3 player for my website to help sell my music. The flash mp3 player needs to have a playlist with "Buy Now" buttons next to each song in the playlist, that link back to my paypal for easy checkout.Im not sure if I should try to code this in AS3 using the ListBox Component or the Datagrid Component. Either way, its all coming down to the fact that I need to learn how to embed Images, Mp3's and Links in each row of the playlist.Here is a couple examples of some cool looking flah mp3 players that Im trying to build:

bigboytraks.net
illbeatz.com
myflashstore.net

*NOTE!!!* I'm not asking anyone here to build me a whole mp3 player. Im simply asking the main question of how to populate either a list component or datagrid component with sound and links right next to each sound in the playlist/rows.

View 0 Replies

ActionScript 3.0 :: Load Next Song In Playlist?

Sep 22, 2010

I'm relatively new to AS3 and I'm working on this site/mp3 player. Everything is perfect except I can't figure out how to get the next song to play automatically. I know it's a couple lines of code that I should know by now.

Code:
import fl.events.SliderEvent;
//create instances of the three sound related classes that will be used for this project
var snd:Sound;[code]............

View 3 Replies

ActionScript 3.0 :: VideoOnDemand - Playlist With Buffering?

Feb 28, 2011

I have a VOD application which reads a playlist from an external file and play the video once the previous one is finished. By default, the buffer is set to 2 and once the buffer is full (Netstream.Buffer.FULL) I have another function setting it to 20.

When "Netstream.Buffer.Flush" is triggered I have to set the buffer to 0 and then set it to 2 again.

This application was working fine before I set those buffering stuff. Now the buffer seems to be ok, those videos play suitably but there are some delay when switching between the video which is ending and the video which will begin. I belive there is something wrong when setting the buffer to 0, but if I get it removed, the application does not call the second video..

View 0 Replies

ActionScript 3.0 :: Play A Playlist In Fullscreen?

Jul 12, 2011

People, I'm not sure if this is the best place to put this question, but here it goes: I want to develop an application in which a sequence of videoclips (of 5 minutes maximun) will be played. Let's call this sequence a 'Playlist'. The Playlist must be played like only one long long video, just like a real TV! And this is the main idea, simulate a television channel. It will not be streaming, the videos will be stored local.

The thing is: media can be added while the playlist is already running. So, if I am at the first movie in playlist of 5 movies, we must be able to change the second one, for example, remove the 5th one (for ex) and add another one at end of the playlist.

Most players doesn't allow me to do that: add media to the current playlist (probably because they load the audio and video files to the memory when you play the playlist).

Briefly what I want is handle the movies in A playlist (I think it is possible with XML) and make sure that it will be FULLSCREEN all the time. So when it changes movies, i won't see this transaction.

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved