ActionScript 2.0 :: Online Sound Duration Incorrect

Nov 30, 2004

i have a mp3 player that works perfectly offline but once online the sound.duration seems to be incorrect. The sound.duration = 15' online and 52' offline. And it's the same for each mp3 with an incorrect duration. You can see what i mean here : [URL]

View 2 Replies


Similar Posts:


Media Server :: Duration Metadata In Recorded Stream Incorrect?

Aug 1, 2008

I'm streaming live video through FMS 3 and passing the streams to another FMS application to be recorded. While recording, I inject some custom metadata into the stream. Once recording is finished, I move the flv to another location and update my database with the metadata contained in the stream for later reference. All this succeeds without a problem.

However, only sometimes, the default 'duration' metadata (note - I never mess with the duration metadata, merely insert my own fields that are required for other reasons) is COMPLETELY wrong

View 13 Replies

ActionScript 2.0 :: Uses Sound.position And Sound.duration To Use As A Playlist?

Jun 19, 2006

I have currently a music player that uses Sound.position and Sound.duration to use as a playlist. However, the sound is streaming, so then Sound.duration is the number of loaded seconds/miliseconds. Is there a way for me to figure out the duration of a sound without fully loading it? Right now, it really messes up the playhead.

View 2 Replies

Get Duration Of A Streaming Sound?

Feb 18, 2010

I am trying to write an mp3 player. I have tried everything and am suck getting the duration of an mp3.[code]...

View 1 Replies

Flex :: Playing Sound For Certain Duration

Nov 25, 2009

I have a mp3 file and I would like to play it from one position and for a certain duration. I have first used the Sound class, the play method where I can specify the start but not the duration. I have looked then at SoundEffect class where you can specify a duration and a startTime. However I do not know how to play it from a AS3 class not from MXML : there is a play method ... but I get no sound!

View 2 Replies

ActionScript 3.0 :: Incorrect Sound Length Property Value?

Jul 29, 2009

I have a Flash based media player loading mp3s at 22.050 khz, and for some reason the length is being reported as a little over twice what it should be. Is there anything I can do, short of dividing the results by 2?

View 4 Replies

ActionScript 3.0 :: Deterining Duration Of A Sound File?

Nov 27, 2009

1. Is there a method of determining the length of a sound file (mp3 primarily); in bytes, elapsed time, before the file is played? (the file could be played against a stop watch and the elapsed time record after the fact, programmatically).

2. Is it possible to set markers and fast forward/rewind to markers corresponding to the file?What I am thinking of is a feature allowing the user to play a file to a point and pause, set a marker, rewind and play to the marker and stop, or fast forward from the beginning and play from the marker, or even play past the marker and rewind to the marker.

Setting a marker would be the easy part: just record the elapsed time when the pause function is called.Getting the sound file to start playing from that point without the previous part played at normal speed;(with volume off) is the essential part of this question.

View 3 Replies

Professional :: Get The Full Duration Of A Sound Object?

May 5, 2010

I was wondering how I can get the full duration of a sound object.I know "sound.length" returns me the loaded length,but is there a way to get the full length so i don't have to wait until i loaded?

View 2 Replies

Actionscript 3.0 :: Get The Duration Of A Selected Sound File?

Jun 8, 2011

I'm really new about OOP AS3 programming, seems I can't fully understand how the eventcentral class works.For what I've understood this "system" allows classes to communicate between each other, passing parameters and call functions.So, having this ultra simple class:

Code: Select allpackage
{
import flash.events.*;[code].........

I'd like to execute (in the main class) the function "callthis" in the seconda class.

View 2 Replies

ActionScript 2.0 :: Can't Seem To Access The Sound Duration Value In Code

Mar 15, 2007

I can't seem to access the sound duration value in my code, I am not sure what I am doing wrong.

Code:
var directory:String = "Voices/";
var noOfSongs:Number = 100;
var aSongs:Array = [];
var currIndex:Number = 0;

[code]....

View 1 Replies

Actionscript 2.0 :: Access Sound Duration Outside Onload Function?

Jan 21, 2009

How to access the sound duration outside the onload function....im trying to diaply the duartion of each song in the playlist by loading them one after the other...but am not able to access duartion of all the mp3 files....i want to knw if there is any way to access the sound duration outside the sound.onload function.

View 3 Replies

ActionScript 2.0 :: Displaying Duration / Position Of A Sound Object

Aug 4, 2010

I am following this tutorial (Url...) on how to build an audio mixer in Flash. I am trying to display the duration/position of one of the sound objects in the mixer (all sounds in the mixer have the same length). I have tried adding this code to the actions under frame label "ready".[code]I have two dynamic text fields named Text01 and Text02 on the main timeline. Yet, nothing populates.

View 2 Replies

ActionScript 2.0 :: AudioPlayer - Sound Duration Timer Display?

Nov 2, 2003

I'm building a simple audioplayer. In frame 1 I have:

Code:
mySound = new Sound();
songs = new Array("1.mp3", "2.mp3");
songIndex = 0;
mySound.loadSound(this.songs[songIndex], true);
mySound.start();
var playing = true;
[Code] .....

So, the sound begins to play from the beginning. However the problem is with the timer: when 'stop' is pressed it says 0:00. But, when I press play again it immediately jumps to the time it showed when stop was pushed, e.g. 0:12

View 14 Replies

Actionscript 3.0 :: Jsfl Panel & Flash Authoring - Get The Duration Of A Selected Sound File?

Jul 13, 2010

I've developed a neat WindowSWF panel after watching Lee's demonstration video. I got everything I needed to work, but I'm having trouble getting information from my sound files. Basically I have a list of sound objects (.wav format) in my library and I want to find the duration of each file so that I can add them to existing movie clips, then add or remove frames depending on the length of the sound file on the frame. I've been pouring over the jsfl actions libraries and can't find any method to get the duration of a selected sound file.

View 2 Replies

IDE :: Make The Duration Of A Movieclip Equal The Duration Of The Preloader?

Apr 3, 2009

is it possible to make the duration of a movieclip equal the duration of the preloader, i mean is it possible to make something like, the time the preloader needs to reach the 100% = the duration of the movieclip? i'm using AS 3.0 and flash CS4 just in case it helps here is my code for the loader:

Code:
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;

[code].....

View 1 Replies

ActionScript 2.0 :: Externally Loaded Sound Works On Local Machine - But Not Online

Sep 19, 2006

I'm using loadSound to load in external MP3 files and they load and sound great on the local machine but don't work when I upload the files to the web. I'm pretty stumped. The MP3 files are only like 10k and 60k so it can't be a size issue (I'm on a T1 line here at work too). Here is the site: [URL] Basically when you walk close to the fire you should hear the fire crackling and it will get louder as you get even closer. Everything works on my PC, just not online. Here's the AS code for the fire:

[Code]....

View 3 Replies

Actionscript 3 :: Sound Latency - Set It For Any Silence Before The Actual Sound By Calling The Sound

Apr 16, 2011

I am triggering short sounds dynamically from the library for a game (Specifically Air for Android). When the user clicks a button the sound can take up to 600ms to actually play. I have set it for any silence before the actual sound by calling the sound like so:

[Code]...

All return the same results. I know there are threads here that talk about this but none have offered a real solution that I can find. Is there no way to cache the sound or store it in a buffer?

View 1 Replies

Flash :: CS4 Parameter Is Incorrect

Aug 12, 2009

CS4 was working fine for a few weeks, then yesterday I opened an FLA and got an error pop-up that said "Parameter is Incorrect".  The error happened for all FLA files.  I could save changes but could not preveiw or publish (same Parameter is Incorrect error as on starting CS4).  I even made a blank FLA and it wouldn't work either.
 
Relized today during more testing that this error only happens any time I open a file that is on my desktop (running XP).  Same file moved into another folder (Even desktop ewfolder) works fine.

View 5 Replies

Establish Whole Animation Duration?

Sep 1, 2011

How can I see the total duration (in minutes / seconds) of my (multi-scene) flash movie?

Is there a 'whole movie' properties where I can see the size, duration etc?

View 2 Replies

ActionScript 3.0 :: How To Get Video Duration

Oct 24, 2011

How to get video duration in as3 ?

View 6 Replies

Flex :: Get The Duration Of An Mp3 File?

Nov 27, 2009

I noticed many players display audio track duration before loading the sound file, but I cannot figure out how that is done. So how can I get the duration of an mp3 file in Flex without having to load the file in a Sound object ? Think about loading 1000+ files in an application that has to immediately display the duration for each track.

View 2 Replies

Actionscript 3 :: Tween With Zero Duration?

Oct 31, 2010

i have a tween function which fades in a display object over time.

when i set my tween duration to 0 nothing happens. isn't the tween suppose to animate in 0 seconds (or frames) to emulate no animation at all?

new Tween(this, "alpha", None.easeOut, 0.0, 1.0, 0, true);

View 1 Replies

Flash :: Displaying Duration Of FLV With AS3

May 25, 2011

I am trying to show the duration of an FLV movie with AS3. I keep getting a Metadata error. Code below.

[Code]...

View 2 Replies

Flash :: Get The FLV Duration From Class?

May 31, 2011

I have a class which load and play a flv video file. My problem is, How can I get the flv`s duration in my main code? .. This is my video class:

package src {
import flash.display.Sprite;
import flash.media.Video;[code]....

After running program I have " Time: 6.76" in output windows and it plays flv fine, which is correct but I want something like var myTD:int = Veed.getDuration(); in my main class to get the duration.

View 1 Replies

Actionscript 2.0 :: Possible To Get Duration Of An MP4 Video

Feb 1, 2009

I was wondering if it is possible to get the duration of an MP4 video. I am attempting to make a scrubber bar for my video player following Lee's tutorial however in the video he uses an FLV with metadata. Is there any way to produce the same effect with an MP4?

View 3 Replies

Actionscript 2.0 :: Get FLV Duration Without Have To Play It?

May 15, 2010

My project is about a video player who read an xml list, but I have to play FLV video from an exact point, so I'm using xmoov-php, and it works perfectly. My problem is that I have to calculate this point from the total duration of the xml list (the sum of every FLV duration it cointains)... so I have to get the duration of every FLV in the list.

I know I can use onMetaData for get the duration, but I need it of ALL the video in the list, and it works only if I play the single video, don't it? And I cannot play every video in the list for obtain it... I also tried to put the play() function in a for-cicle, but it doesn't work: it gets me the duration of only the last video in the list cause is the last element the for-cicle passed trought.

Is there another method for get the duration without have the FLV to play?

View 3 Replies

ActionScript 2.0 :: .duration Mp3 Id3 Property?

Oct 6, 2007

I'm having trouble with this:

Code:
function playMusicFunc(whichSong) {
mySound = new Sound();
curPlaybackPos = 0;
disablePlay();

[code]...

Seems simple enough, but...

dur_txt.text = mySound.duration;

always displays 0.

View 4 Replies

ActionScript 3.0 :: Incorrect Number Of Arguments

Jul 30, 2009

I'm doing a little flash nav bar and I'm trying to have the buttons link to the correct web pages. My code is extensive and I'd rather not post the whole thing in here so I'll try to be as concise as possible.Basically I'm getting this error:1137: Incorrect number of arguments. Expected no more than 1.Everything was running smooth in my script until I added the URL requests here:[code]Is the syntax incorrect or something? Again, everything was fine up until I added those two at for case 0 and case 1.

View 3 Replies

Professional :: 'Parameter Is Incorrect' After Saving A .fla?

Feb 7, 2010

I'd been using flash cs4 fine for a few weeks before this happened but in the last few days whenever i save a file i'm working on i can no longer preview it (by preview i mean ctrl + enter) my cursor turns to the symbol to show it's working for a few moments but once i move the mouse this goes back to being my normal cursor. Whenever i try and publish a file i get the error "Parameter is incorrect". Before i save the work the file previews fine and even blank documents that i start and immediately save will not allow me to preview or publish them following the save
 
I'm running w7 64bit on a quad core with 4gb ram. I've tried uninstalling and reinstalling but this hasn't helped. My flash professional cs4 is also fully updated.I've attached one of my .fla files that to me i can't use properly anymore, it's just a basic animation of squares forming the words 'enemy down' on a black background.

View 7 Replies

Professional :: Incorrect Navigation From Homepage?

Dec 1, 2010

I am using AS3.0.I have created simple forward naviagtion from my homepage to my second screen using the code below and a simple button (click1)

//handle events for buttons...
click1.addEventListener(MouseEvent.CLICK, clickSection1);
function clickSection1(evtObj:MouseEvent){[code].......

Slightly modified code is used on consequent pages to navigate forward through my site.I have also created a home button that navigates me back to my first screen (called screen2) using the following code...

home_btn.addEventListener(MouseEvent.CLICK, clickhome1);
function clickhome1(e:MouseEvent):void
{gotoAndStop("screen2")
}

However, when I return to the homepage and click forward, instead of taking me to the next page and the next page, it jumps me forward directly to the 5th. screen.

View 5 Replies







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