ActionScript 3.0 :: Track / Trace Current Position Of Sound File While It Is Playing?

Aug 18, 2010

does anybody maybe know how to track/trace the current position of a sound file while it is playing?So that it is updated every frame or second?I figured something with trace(sound.position) onEnterFrame, but didn't succeed in realizing this yet.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: When Click The Next Button The Current Track Keeps Playing While The Next One Starts

Apr 9, 2009

I'm making a mp3 player using flash. when i test the movie it starts playing fine but when i click the next button the current track keeps playing while the next one starts. plus the stop button it's not working. here is the code.

[Code]...

View 1 Replies

ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?

Apr 10, 2011

I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
 
This is the code that creates one of the sound objects

[Code]...

View 3 Replies

ActionScript 3.0 :: Delayed Trace - First Click Still Trace The Previous Track?

Nov 14, 2009

ive got a loaded xml list for an mp3 player. from playing track1, when i select track 2, it traces "track1" but then after a second click it traces "track2" and stays on that. the actually music for track2 does load on the first click though, but not the trace. anyone know why on the first click it would still trace the previous track? here is the code for that function...

[Code]...

View 9 Replies

ActionScript 2.0 :: Modifiy The Global Trace Function To Output The Current Time Of A Trace Action

Nov 9, 2011

I've been playing with prototype a bit and I've noticed that either it isn't as static as it should be or that some functions are protected from altering, or that in some cases the prototype actually extends a function. For example, I was trying to modifiy the global trace function to output the current time of a trace action, something like this :

Code:trace("lulu"); // output 12:48:17.286 lulu I DID achieve something close to it, but it seems that I haven't actually modified the global trace function, but rather it's "_root" counterpart,

[Code]...

View 3 Replies

ActionScript 2.0 :: [CS3] Playing Sound Based On Mouse Position?

Jan 10, 2009

I have created a document 600x300 filled with buttons for a rollover effect. I want to be able to play sounds dependant on the x and y position of the mouse without having to use objects that interfere with the buttons.

View 2 Replies

ActionScript 2.0 :: Store Playing Sound Position In A SharedObject?

Mar 16, 2010

I`ve run in a bit of a problem. I`m trying to make a web player in AS2. It stores some data from player for later usage in a shared object. One of the things i`d like to store is my current playing position, so player can start of where it was playing after page reloads, but i can`t think of how it should be done..

[Code]...

View 0 Replies

Sound Plays From Next Scene, While Playing In Current Scene?

Mar 27, 2001

i am making an animation, i have about 8 scenes. for some reason it starts playing the sound from the next scene in the middle of the current scene. why?? i checked movie explorer and the sound is in another scene. does that sound like a flash bug, or just me? it is a big file, could that be it.

View 4 Replies

ActionScript 3.0 :: Playing A Sound File And Graphic Positioning In The Same File

Dec 15, 2009

I have a problem that I have not found a syntax error or logic error to explain. It appears to be an obscure problem related to playing a sound file and graphic positioning in the same file. My next step is to look for any known bugs. I have posted the file at. URL] When the page loads you will see a list of selections. Do not click any of the html Play buttons In the graphic arrow pointing to the right is the play button click it and a default file will start. Click the pause button (which will be green while the selection plays) Then click the play button again. The knob that moves while the song plays, will begin moving from the position it was at the time pause was clicked.

Click the stop button (arrow facing left with vertical line at tip) Choose a selection from the html list by clicking the Play button next to it. Then click the play button in the player display. The title of selection will appear in the title area. repeat the original steps (play, pause, play) This time the knob that moves while song plays, snaps back to the start and moves from start, rather than from the pausedposition.

[Code]...

View 7 Replies

ActionScript 2.0 :: Move Punto_mc From Current Position To Random Position After Release?

Aug 29, 2009

how to make an actionscript to move punto_mc from current position to random position after release, and then from this new position to mevo to another randon position after release?

View 2 Replies

ActionScript 2.0 :: MP3 Player - Play Next Track When Current One Finished?

Jan 6, 2005

I am just toying around making an mp3 player and came to a problem. I've got everything to work just fine... but I don't know how to get the player to recognize that the current track is finished and get it to get the next track... how can this be done?

View 4 Replies

Actionscript 3 :: Tween Position Relative To Current Position?

Jan 23, 2010

I have a tween set on a timer:

var manTimer:Timer = new Timer(1000,14);
manTimer.addEventListener(TimerEvent.TIMER, moveMan);
function moveMan(e:TimerEvent):void {[code]....

I just need to make the tween's position relative to it's current position, as opposed to starting at the stage's 0 position then moving the the stage's -40 position. It needs to start at its current position the move -40 from that position.

View 1 Replies

ActionScript 3.0 :: Get Flv File To Start Playing With No Sound?

May 2, 2009

I am trying to get my flv file to start playing when the page is loaded with no sound, but I am have no luck. The flv file starts playing fine with the sound on, and I can turn the sound off with my volume controller, but I need it to start playing with no sound.[code]...

View 3 Replies

Flex :: Decrypt Sound Before Playing A Mp3 File?

Dec 20, 2011

can I de-crpypt a streaming file, (assuming that i encrpyting this file on the server side during upload) , in flex before it being processed for playing.

View 1 Replies

ActionScript 3.0 :: Background Sound Not Playing In Embedded File

Jul 1, 2009

I've got a game I made just to play with AS3. But I'm having an issue with the sound. Playing the swf file will play the sound, but when embedded I hear nothing. The code for calling the sound:

Code:
import flash.media.SoundMixer;
SoundMixer.stopAll();
import flash.media.Sound;
import flash.media.SoundLoaderContext;
import flash.net.URLRequest;
[Code] .....

View 4 Replies

ActionScript 3.0 :: Check To See If Loaded Sound File Still Playing

Dec 29, 2010

Is there a way in AS3 to determine if a loaded sound file is still playing or not? I need to start an animation when a sound starts and stop the animation when the sound is done playing.

View 3 Replies

ActionScript 2.0 :: Playing Sound File When Movie Loaded

Aug 5, 2004

I have a problem with sounds in this movie. I have a sounds file that I would like to play as soon as the movie is loaded, but I dont want it to stream because I want to loop it and I want it to be done with AS. I saw a Tutorial where the sound would load as soon as the movie started but it wouldn't play until the play button was pressed. I want the song to play as soon as the sound is loaded. The Tutorial is Creating a Volume Control Silder. [URL]

View 5 Replies

ActionScript 3.0 :: Record A Sound File And Then Playing Back Dynamically?

Mar 5, 2012

I am currently designing an interactive magazine through flash and was wondering if there is any way that the user of the magazine upon opening it can be prompted to record their name and then have that voice recording played back when they perform certain actions while interacting with the magazine?

View 2 Replies

ActionScript 3.0 :: Record The Current Position Of Any Of The Items Item In Order To Use That Data To Change The Position Of The Item After The User Clicks?

Jan 2, 2010

If I have several items that move across the screen but the user can click any of them at any time, how do I record the current position of any of the items item in order to use that data to change the position of the item after the user clicks?

This is what I am doing: I have 11 images that slide accross the screen. The user can click any of them at any time. When he clicks one I am scaling the image so it looks like it is comming forward (z axis) and then the rest of the images are scaled down so it looks like they are going back on z axis. So what I am trying to do is get the current position of the image when the user clicks the image so that I can use that to correctly estimate the scaling and moving of the image to make it look like it scales from the center and not from the top left corner. So if have a variable that gets the current position of the image being clicked I'm thinking I can change its position using something like: x = currentposition + -45;

View 9 Replies

ActionScript 1/2 :: Variable To Track Position In Timeline

Sep 10, 2009

I am trying to create a variable in Actionscript 2 that will record the position in the timeline, so Flash knows the user's last position on the timeline.The first line in the mc is: var portfoliostate;On frame 20 of the timeline, I have the following actionscript: portfoliostate = "1_ portfolio";When a button is clicked, I want Flash to recognise if the user has been on frame 20 or not. The code on the button is:this.onRelease = function()[code]However it does not seem to be working. I am implementing this correctly?

View 3 Replies

Media Server :: Microphone Sound Recording,saving / Playing Flv File Is Saved But Not Working

May 4, 2009

While recording the flv is saved inside applications/stream/samples/audio.flv. But it is not working properly.[code]

View 1 Replies

Flash :: AS3 - Print Current Class In Trace Statement For Debugging?

Mar 3, 2010

Is there a statement in AS3 that will return current class and/or scope? I'd like to use that in trace statements so that I know the exact location of a trace.

View 2 Replies

Track Stop Playing When Press The Play Button

Jul 11, 2011

I'm looking for some help regarding stopping sounds in Actionscript 3. Basically I'm making an interactive story game, basically a quiz game. On the main menu I have a narrator talking. What I basically want to do is have the track stop playing when you press the play button. I have the soundtrack playing already and the play button too. I just can't figure out how to get the sound to stop when I press the play button and it goes to the next scene.

[Code]...

View 2 Replies

Flash :: Mixing AS2 And AS3 - Trace Out The Current Label In Movie's Main Timeline

Feb 23, 2010

For the life of me I can't figure out how to trace out the current label in my movie's main timeline. This is in AS3. I have a button on stage that spans the timeline of the movie. It detects keypresses. I want to trace the current frame label that the play head is on.

[Code].....

I get "_level0" for this...and undefined for the rest. What am I doing wrong here?

View 1 Replies

Flex :: Mouseevent - Track Mouse Position Repeatedly In Application?

Mar 2, 2010

I have a container Canvas named "cnvList" which contains another component horizontal list "hlist". When i hover the mouse over "cnvList", it should display the current mouse position relative to the container cnvList. I have used cnvList.contentMouseX for this. But it should repeatedly track the mouse position repeatedly even when the mouse is not movedk. Can anyone suggest me with code how it can be done?

View 2 Replies

ActionScript 3.0 :: MP3 Player - Trigger Event When Track Finish Playing

Feb 2, 2010

I'm working on an mp3 player. I want to trigger an event when the track finishes playing. I've created a function that will just trace a statement so that I know the event listener is working, but I can't seem to get it to trigger. Here is the playSong function in which the code is used:

Code:
function playSong(mySong:Number):void {
var myURL = my_songs[mySong].@URL;
playingTra = mySong;
current_song = mySong;
my_sound = new Sound();
[Code] .....

I tried to add in the following lines, but that instead institutes some playback issues:
Code:
if (my_channel){
my_channel.stop();
my_channel.removeEventListener(Event.SOUND_COMPLETE, stuff);
}

View 3 Replies

ActionScript 3.0 :: Manipulate A Sound / Track?

Mar 19, 2009

I know that manipulate sound with as2 is limited. I wondered is it possible to manipulate a sound/track is possible with AS3?

View 3 Replies

ActionScript 3.0 :: Stopping A Sound Track

Jun 13, 2010

I am using an addChild() method to place an intro MovieClip into a website. It has a short ten second musical track. I also have a skip intro button on the stage which does a removChild(). I keep trying to write code that will also stop the sound, which continues to play. I tried loading the sound separately and used the channel.stop(); So far nothing is working. It seems like I've been here before.

[Code].....

View 5 Replies

ActionScript 3.0 :: Stop A Track Playing And Line Breaks In A Generated Email?

May 7, 2010

I have multiple audio tracks that have a play/stop button functionality. I need to add a script on the buttons that stops a track from playing when another track has been selected.[code]...

View 0 Replies

ActionScript 2.0 :: Sound Object - Buffering The Next Track?

Sep 16, 2004

I've got the next track to load, when the first one is done, and after that everything works fine.I'm trying to make it so that two tracks will buffer in the same manner - but feel like I'm doing things the hard way.....http:[url]....that is the code

and

http:[url]....that is the fla, txt, and audio files.

View 2 Replies







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