ActionScript 2.0 :: Flash8 : Mediaplayback Play All Tracks?

Sep 5, 2010

I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album.It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.

Here are the parts for the mediaplayback:

lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {

[code]...

But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Flash8 Mediaplayback Play All Tracks

May 26, 2009

I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.

Here are the parts for the mediaplayback:

lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {

[Code]....

But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.

View 2 Replies

ActionScript 2.0 :: Flash8 Mediaplayback Play All Tracks?

Oct 13, 2009

I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.

Here are the parts for the mediaplayback:

lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {

[code]....

that is for when you click (or press) on a selected item in the "lista" List.

I tried something like:
for (var i = 0; i<num_total; i++) {
player.setMedia(urlnow+"/"+lista.selectedIndex[i].data, "MP3");
player.play();
}

But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener...

View 1 Replies

ActionScript 2.0 :: MediaPlayback - Play Sound From Library?

Aug 11, 2010

I have a MediaPlayback component on stage, i have a sound with linkage name "sound1" in the library;

Why mediaPlayback.contentPath = "sound1" wouldn't work?

View 1 Replies

Flash :: How To Play Music Tracks In AS3

Dec 19, 2010

I need to play three musical tracks one after the other in a circle. It is necessary that its are not loaded again and were in the cache. I use this code. Everything works fine on localhost, but only works after restart the app on the server. And wrong to re-download tracks every time.

[Code]...

optObj.music - it is the object with the parameters that is called when the app starts or when i call a function change the settings.

View 1 Replies

ActionScript 2.0 :: Xml Sheet - Navigate Between Each Cd To Play Tracks Within?

Apr 19, 2007

for the following xml sheet:

<playlist>
<cd thumb ="album_music/image.gif" albumtitle="album1" artistname="yoohoo" tracktitles="blah blah">[code]...

I have the following actionscript to navigate between each cd to play tracks within.i need the on release function to be corrected for me so that when u click on the icon - THE PARTICULAR cd is played which the icon represents. right now my on release function plays the first mp3 of the first cd no matter which icon u click on.

Code:

var item_spacing = 110;
var item_count = 0;
var tracklist = new Array();[code]....

View 2 Replies

Actionscript :: Play Multiple Tracks In Sync Flash Builder?

Aug 6, 2011

I'm about to create some art installation using augmented reality and music. I'd like to implement some kind of sampler in it, but I can't find any way to do it.

It's gonna be a looper, I've got 12 files (each 8 seconds) and I want to play them synchronized - so they must start at the same time. this is example of something similiar to my project[url]... They must be controlled by changing volume (0 means off).

View 1 Replies

ActionScript 3.0 :: Make A Pause/Play Function For Multiple Audio Tracks?

Aug 13, 2009

I have a Flash file that has two music tracks. The player I built works well so far except for this, I am trying to make a Pause/Play button the works on either track. Right now it only works on one. With my limited knowledge of AS3 I tried different solutions but none worked.

Here is the SWF file; [URL]

You will see that the Pause/Play button only works on �Kiss My Dogg� which is track 1.

Here is the FLA file; [URL]

Below is some of the Script I wrote. The pause/play is the part I can�t figure out.

//function to load different tracks
function loadMusic(evt:MouseEvent):void{
//stop whatever is playing
SoundMixer.stopAll();

[Code].....

View 2 Replies

ActionScript 2.0 :: Flash8 FLV To Play Only Once?

Aug 24, 2009

I need the FLV to play only once when a MC is loaded.

When the FLV is still playing, I want it to stop playing when click on any button..

PHP Code:

stop();
// Flash 8, AS2
import mx.video.*;
var flv1:String = "flvs/DrJoy_corner_KevinIntro.flv";

[Code].....

View 2 Replies

ActionScript 2.0 :: Flash8 Play Sound On Keyframe?

Mar 16, 2009

I have a script that plays a sound on that keyframe. You see, the movie loops. So it keeps hitting that keyframe and the sound keeps playing over and over again. How do I stop this? what kind of script? I want the sound to still loop when it's over, but I dont want it to play again on that keyframe. Only when it's over.

View 1 Replies

Flash8 :: Change Button State On Play?

May 17, 2009

I am writing an application for my students which plays music when buttons are pressed.I made the buttons myself and they have 4 states in 4 colors.The rollover and mousedown states work okay but I would like the button to hold its 'hit' or "mousedown" color while the sound plays, and then return to its normal state. This way, while the sound plays, the student will see its connection to the button label (rather than a screen full of buttons in the same state/color)

View 2 Replies

ActionScript 2.0 :: [Flash8] Get AS To Play From A Movie Clip?

Jul 4, 2008

I am having the hardest time trying to get AS to play from within a MC called "content_002".Please remember that this AS is an XML-Driven sub-menu that successfully works on it's own. When I tie it into a MC, it doesn't like to work with my shifting main-menu.

For this post, I'll first send the "combined" .fla file then I will post them apart to see if anyone can find a better way.

View 12 Replies

ActionScript 2.0 :: [Flash8] Getting Sound To Play When Keyboard Button Is Hit?

Dec 9, 2009

I think worded the question wrong or posted in the wrong catagory I keep geting error messages with this code in AS2.0

Code:
if (key.isDown(key.getCode(81))) {
_root.samplesound=new Sound();
_root.samplesound.attachSound("sample1")

[code]....

This is the message fore both pieces Statement must appear within on/onClipEvent handler Im trying to get the letter "q" to play a linked mp3 in my library When I apply the code to a seperate layer No error messages shows, but no sound plays. When I apply the code to a movie clip/button object, that message shows up!

View 2 Replies

IDE :: CS4 Loop In Mediaplayback?

May 30, 2011

i'am doin a presentation and i put music bg in a mediaplayback component, but i need it in a loop.

View 1 Replies

Mxml - Mx:MediaPlayback Flex Tag?

Oct 22, 2009

I'm trying to compile gui/flex/songs.mxml in the fourth edition of Bruce Eckel's Thinking in Java book and am getting a compilation error with Flex 3.4.

Here is a simplified version of the example that gives the same error:

[Code]...

View 1 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

ActionScript 1/2 :: Stop Mediaplayback Playing

Nov 3, 2010

I have a instance on MediaPlayback and a button on one of my frames, i need to the button to either stop/pause the media file, is there anyway of doing this?

View 3 Replies

AS2 :: Setting PlayheadTime Of MediaPlayback Component

Nov 8, 2010

I'm building a custom Audio Player. The whole thing drives a MediaPlayback component. I have a scrubber set up that moves with the progress of the song. I want to be able to click and scrub with it though. Currently I have it set to set the playheadTime equal to the percent distance the slider is dragged to times the totalTime of the playback component. After the release of the slider I trace out the playheadTime and it seems to be fine, but I can't get it to resume playing at all. Here's the code in the controller:

var totalDistance = bar_mc._width - slider_mc._width;
var wasPlaying = false;
this.onEnterFrame = function(){

[Code]....

View 1 Replies

ActionScript 2.0 :: Use The MediaPlayback Component With An External .flv?

Jun 9, 2004

I'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.

View 1 Replies

ActionScript 2.0 :: MediaPlayback ProgressBar Isn't Working

Jun 9, 2004

I'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.

View 1 Replies

ActionScript 2.0 :: Non Terminating MP3 Download With MediaPlayback Component

Sep 10, 2005

Whenever an MP3 is initiated to stream (well, progressively download really) with the mediaPlayback component, it will contue to dl to the cache until done or the browser is refreshed. The occurs even when the component has been unloaded from an empty movieclip. This is an issue when folks browse alot of MP3s on the site, because even though it's inaudible, suddenly there are many files simultaneously dl'ing to their cache. Cant find a stop stream type of command in the media class, which I think is the only class for the media components. If I were doing real streaming with the Comm Server for example, I could use stopStream.

View 1 Replies

ActionScript 2.0 :: MediaPlayback: Dynamically Loading Videos?

Feb 28, 2007

I currently have this code:

Code:
var vLoad = new Array();
vLoad = vidURL.text;

[code]....

View 1 Replies

ActionScript 3.0 :: Mp4 File With 2 Audio Tracks?

Sep 22, 2010

A quick question. Is it possible to play a mp4 video file with 2 audio tracks in it and switch between the two audio tracks? In stead of subtitles we want to provide the user with audio in their own language. As a test I received a mp4 video file with 2 audio tracks, an English and a German. When I load and play the mp4 video file I default hear the English audio track. Is it possible to switch to the German audio track?

View 5 Replies

Professional :: Soundboard Trying To Layer Tracks

Jan 12, 2011

I'm a games design student from the UK I'm currently working on a music project. for this I want to create a soundboard where the user can select a multiple number of files and then play them as one track, my plan is to record background, rhythm, melody and random event tracks and have the user select one of these elements from each bank of samples and have a button for them to hear the outcome.So far i can get the soundboard elements to work, but no matter where i look or who i ask no one seems to know how to make this idea work, someone suggested using an array but when i started looking at arrays there seems to tutorials on creating them but not implementing them.

View 2 Replies

ActionScript 2.0 :: Change Music Tracks?

Feb 19, 2003

I saw many flash web sites that has multiple music tracks to choose. I would like to learn this nice feature. Is there a tutor? how i can add multiple soundtracks for my flash presentation, I know how to add one soundtrack into my flash movie but i don't know how add several music tracks and how to make button to load one and unload the other.

View 1 Replies

ActionScript 2.0 :: Mediaplayback Component, Control Bar Arrow Pointer Doesn't Move As Media Plays

Jul 4, 2011

Ive used mediaplayback component on a webpage and it works fine except the playhead pointy thing doesnt move as the video plays. Isnt it supposed to do that ? It just stays at the start while the video is actually playing.If i drag the pointer to a different part of the streaming bar then it does what its supposed to do but that doesnt look right.

View 2 Replies

Flash :: Text That Lists The Tracks Done In HTML?

Sep 25, 2009

I am looking to replicate the way the music tracks are presented on this website:[URL].. I'd like to create something somewhat similar, in which I can simply type out the name of each track and then have the small Play/Pause button icon. Are there any templates that are packaged with Flash CS4 for something like this? Otherwise, if you could point me in the right direction as to how it is constructed and/or a tutorial for creating. - But is the text that lists the tracks done in HTML? If so, then this is pretty simple really.

View 1 Replies

ActionScript 2.0 :: Music Navigation Bar Mutliple Tracks?

May 7, 2003

I'm trying to create a music bar that will have next/prev track buttons.I thought of creating an array of the tracks and navigating through the array.Naming the tracks "track1", "track2" etc, start with track1 and increase the number after every pass through the loop. Although I thought of these I could not get the code to work.

View 3 Replies

ActionScript 2.0 :: Load 4 Different Mp3 Tracks Into My Flash Movie?

May 8, 2003

I was wondering how i could load 4 different mp3 tracks into my flash movie. also, how would i be able to have something say loading while it is doing so, or would i have to make the sound stream?

View 2 Replies

ActionScript 2.0 :: Scripts From As Cookbook - Load Mp3 Tracks

Apr 5, 2007

I'm making some scripts to load mp3 tracks. For this I'm using some scripts from the as cookbook. But I'm having some problems with it.

View 1 Replies







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