ActionScript 2.0 :: Loading And Controlling A Song?

Jun 6, 2004

wona make a .fla where a user can select a song and then pressing a "play" button listening it. I also have a "stop" button and a Volume control Slider. The problem is that i wona put a "pause" button too but i don't know how to syntax the code

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Loading MP3 Song - Just Says NaN

Aug 27, 2004

I have an mp3 on my little site, but when It is supposed to load, instead of the percentage number, its just says NaN.

Code:
AudioXml = new XML();
AudioXml.ignoreWhite = true;
AudioXml.onLoad = LoadXmlFile;
AudioXml.load(playListPath);
function LoadXmlFile(success) {
[Code] .....

View 10 Replies

ActionScript 3.0 :: Mp3 Title List - Stop Button Should Move From Song To Song When Playing?

Aug 19, 2009

I have a list of mp3-songs, when song 1 is clicked it gets streamed, a stop-button appears, if this Btn is clicked, this Btn disappears as it should - but if user forgets to click for stopping sound and clicks song 2, stopBtn 1 remains and the new stopBtn 2 also appears. there should be only one stopBtn, the one next to the song is playing.

I would like to move the stopBtn and I have tried several approaches move; graphics.moveTo; if(stopButton !=null) {removeChild (stopButton)}; I packed the var stopButton:Sprite in the header and so on.

Code:
SoundMixer.stopAll();
import flash.display.Sprite;[code]..........

View 0 Replies

ActionScript 3.0 :: Loading More Than One Song Into MP3 Player

Feb 8, 2009

I'm trying to make an MP3 player with art and text associated with each of the 4 songs I need included, but I can't figure out how to load more than one song into the player. The first song loads and plays fine, but when I try to load another one of the songs, I'm given this error:

Code:
Error: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful.
at flash.media::Sound/_load()
at flash.media::Sound/load()
at RealSite_fla::mp3player_mc_6/goGS86()

And here is my code:
var req:URLRequest;
var sound:Sound = new Sound();
var controller:SoundChannel;
var volumeControl:SoundTransform;
var soundPaused:Boolean = false;
var position:int;
function loadSound(event:Event):void
[Code] .....

View 1 Replies

ActionScript 3.0 :: ID3 Tag - Getting The Song Length Before The Entire Song Has Been Loaded?

Feb 15, 2010

I am writing a mp3 player and having some issue getting the song length before the entire song has been loaded - which messes with my position indicator, as it needs to know the track length. I thought I could get the length from an ID3 tag, problem is ID3.TLEN returns undefined, though if I right click the track and show properties, the summary tab shows song duration, bitrate, etc... how I can retrieve the song length before the entire thing has been downloaded?

View 4 Replies

ActionScript 2.0 :: List Component - Random Song Loading Through XML?

Dec 6, 2009

I originally built this in Flash 8, then moved the files over to CS4. I have a list component where I've loaded song files through xml and everything is working great. How to make it play one of the 8 files randomly when it starts playing, instead of it always starting with a specified track (currently track one obviously). So each time a visitor comes to the site it is a different song.

PHP Code:
this._lockroot = true;
//make textfields autosize
album_txt.autoSize = "left";
artist_txt.autoSize = "left";
title_txt.autoSize = "left";
//create sound object
[Code] .....

View 10 Replies

ActionScript 2.0 :: Code To Make A Random Loading Song In A List Component?

Dec 6, 2009

I'm having trouble figuring out the code to add to this to create a random loading song every time the page is refreshed.[code]...

View 0 Replies

IDE :: Loading And Controlling External SWF

Jan 20, 2010

I have a flash website in development and I'm using external .swf files for the sub pages. In my main.swf file I have a loading function that works and everything is fine and dandy there. My problem is that when I am loading the external "content" swf files into my main swf file, the actionscript that is embedded in my external .swf is not functional (there are buttons in the content swf with event listeners to control them). I have a movie clip holder set up and placed on my stage in the main swf file and that is what I am adding the content swf's to.

Now in all of my attempts to isolate the problem I have noticed one thing. If I add the external "content" swf directly to the stage of my main swf file, the code works, but if I add it to my container mc (which I have basically set up to control the position that the content is loaded to and to set up boundaries/masks to control the content from overspilling) then the code is not operational.

Code:
The code below is called by my loadContent function on my main swf
contentmc = MovieClip(event.target.content); // the external swf is assigned to a movie clip object
addChild(contentmc); // when using this, code works in the external swf
contentwindow.addChild(contentmc); // when using this, code in the external swf no longer works.

View 2 Replies

AS3 :: IDE : Loading And Controlling External SWF Movie?

Sep 10, 2008

I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.

function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage

[code]....

I think this is the problem with the code. Casting it to a MovieClip only gives me a 1034 error.

View 2 Replies

AS3 :: IDE - Loading And Controlling External SWF Movie?

Jan 4, 2009

I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.

function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage

[code]....

View 1 Replies

ActionScript 2.0 :: Loading And Controlling External SWF Files

Jan 12, 2009

What I am trying to achieve is the following:
I have a main file (main.swf)
Within this movie i have 5 buttons; Nos. 1-5.
When released each button will load an external swf movie clip:
e.g: button 1 will load "1.swf", button 4 will load "4.swf", etc.

However, this is where I am stuck; each external swf movie clip has its own lead in animation as well as its own lead out animation. So say for example I release button 1, "1.swf" will load and play its lead in animation before it reaches a certain point in its playhead with a 'stop' command. Then lets say, for example, I then release button 3. What I would like it to do is play the lead out animation of "1.swf" before it plays the lead in animation for "3.swf". Obviously I would want this to happen regardless of what button I press, so therefore I would want it to play the lead out of the loaded movie before loading and playing the corresponding swf file of what button I pressed. Would I use loadMovNum or load the swf within a movie clip container?

View 9 Replies

ActionScript 3.0 :: Controlling Preloader From New Class Loading Images From XML

Mar 4, 2010

I have a gallery, which loads up all its images from an XML file. So the XML gets loaded, when loaded it calls a function urlLoaded. That in turn puts uses a Thumbnail class for each image in the XML, which then gets placed in an array, so the array can be iterated through to establish X and Y pos of each image when added to the mc Photocontainer.

PHP Code:

var urlRequest:URLRequest = new URLRequest("pics.xml");
var urlLoader:URLLoader = new URLLoader();
var xml:XML;

[Code]......

I'm passing the parameter 'i' through to the tracel function as this traces when each image has finished loading. I have a preloader in the main timeline I want to control. Say there are 20 images, how do I use the info in the tracel function to control that preloader? Would it be best to pass into the Thumbnail class the xmlList.length(), so the number of total images and then from the tracel function add and control a preloader, so when image 10 is complete the tracel function would make a slider its added to stage go to half way.

View 1 Replies

Flash :: Controlling Sub-movieclips Of A Loaded SWF From A Loading Class?

Feb 4, 2012

I have a compiled swf File (lets call it "cat.swf") that is loaded via the Loader Class of my Main movie. The cat appears without problems. But inside cat.swf there are two movieclips defined (lets call em "head" and "body"), and I have ye to find a way to get control of these from my Main movie.

When I check for numChildren of the loader Object it only gives me back one (an unnamed instance), if I cast that as a Movieclip to check for deeper children it continues all the way down like a tower of turtles.

View 1 Replies

ActionScript 2.0 :: Controlling Order Of Loading External SWFs

Mar 22, 2004

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie? For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

View 2 Replies

ActionScript 2.0 :: Controlling The Order Of Loading External Swfs?

Mar 22, 2004

It could be that using loops is the only way to do what we want, however ever the optimist I'll ask the question anyways.

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie?

For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

View 2 Replies

ActionScript 2.0 :: Loading SWFs Into Scenes - Controlling Position On Screen

Dec 4, 2002

I have several buttons, that link to several scenes, containing swf files. Using the loadmovie command I can get these swf's playing on-screen. That's good.

-How can I control where they appear on my document (I'd guess these require some x or y values, but not sure how this is done) as they all appear in the top left-hand corner.
- When I mouse over another button (link to scene/swf) how can I remove the previous swf from the page, then load the new swf -as they all appear in the same spot/all over each other? Is this an unload movie command?

I was hoping to counter this problem by using different scenes (no luck there) and all I really need to do is remove the previously loaded swf, when the new one is loaded.

View 6 Replies

C# :: Play Mp3 Song Using Asp.net?

Aug 29, 2011

I am developing an online listen music website, on that I want to play song based on the user selection from gridview.right now I am using flash object for playing mp3 and video file this is running fine but its static path.how I can dynamically pass file URL of selected song on flash object.

View 3 Replies

Play A Song Throughout Animation?

Nov 1, 2009

In the animation im making i have multiple scenes in it and i was wondering how i could have 1 song play throughout the whole animation?

View 2 Replies

ActionScript 2.0 :: F8 Mp3 Song Play

Apr 3, 2010

i want to play a mp3 song when i click on button song play and when i click on stop song will be stop.

View 5 Replies

Song Won't Stop Playing

Sep 14, 2011

I have an mp3 file that i dragged into a layer, which starts playing at the beginning of my movie.if i preview, i can hear it playing.

annoying problem is that if i stop or pause the preview, the music keeps playing and if i start it again, another instance of the audio track starts playing again so that they are playing at the same time.

View 1 Replies

ActionScript 3.0 :: Get Song Without Words?

Aug 15, 2010

Where I can find song without words?

View 2 Replies

ActionScript 3.0 :: Mp3 Player Won't Go To Next Song Sometimes?

Oct 17, 2009

so I have this mp3 player I made. It won't go to the next song when a song ends sometimes. It will if the song is very short (10ish seconds) but once it gets to the 30 second mark it won't go.If you click on the slider at any point it will get to the next song, if you click the pause play button it will get to the next song.I have only been doing AS3 for a little bit and I am totally baffled by this problem.
 
I've attached the code as a .txt file, i sorted them into their sepperate files with a header. I hope its ok to read. I can post them differently or post the actual player need be.

View 1 Replies

IDE :: Find Out The Bitrate Of A Song?

Mar 16, 2009

find out the bit rate of a playing song using As2 or 3.

View 1 Replies

ActionScript 2.0 :: Add Song Count To Mp3 Player?

Mar 21, 2009

I've searched the forums and can't seem to find an answer on this one.

How do I add a a counter on a mp3 player that counts the number of times a song is played?

Could I send this count number to a mysql database using PHP?

View 7 Replies

ActionScript 3.0 :: Song ID3 Is Returning Null

Nov 30, 2009

PHP Code:

var aaa:Sound = new Sound (new URLRequest ("awd awd.mp3"));aaa.play ();trace (aaa.id3.artist);

The song plays but when I try to get the song's artist / album it returns null. I also tried copying the format from live adobe help website but it still returns null.

Also I have 3 songs named 1, 2, and 3 in a folder. I made a playlist type thing and it works fine, the only problem I see is that I would have to rename 30 songs.

View 2 Replies

Professional :: Import A Song To The Stage?

Nov 29, 2011

I want to import a song to the stage but I have a key frame every 15seconds and the song starts every 15sec! what do I have to do to hear the hole song in one time and not to hear the song repeated times?

View 3 Replies

ActionScript 2.0 :: Run Same Song For All Listeners Like Radio?

Dec 1, 2009

I want to know that how can I run same song for all listeners like radio.

View 1 Replies

ActionScript 2.0 :: GotoAndPlay Particular Place In Song?

Aug 23, 2010

I am putting together a collab, and I want to know what actionscript is needed to goto and play a particular place in a song? I realise goto and play is for frames, but you get what I mean, like goto and play 2:34 of the song, or goto and play 154 seconds in of the song.

View 3 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 :: Play Same Song Continuously?

Jan 2, 2011

[code]...

It can only allow me to play the songs once? How cn i modify it such that it can play it continuously?

View 1 Replies







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