Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
audio stream - can 't figure it out

audio stream - can 't figure it out

2004-03-13       - By John Glynn

 Back
Reply:     1     2     3     4     5     6     7  

Hey Suzete,

I do not know if this is the best option but I use this as a getTimer method
like this:

sendTime = getTimer();

if (getTimer()>sendTime+13000) {
someFunction();
}

The timer starts with the streamed event.

You can see it in action here with video/audio:  www.leadminepond.com  (Click
on your connection speed in the upper right).  Be warned, it is goofy but seems
to work ok.  There must be a better way of doing this and I would be interested
to hear it if anyone else wants to chime in...  

John

 -- -- Original Message -- --
 From: Suzete Herrmann
 To: flashcomm@(protected)
 Sent: Friday, March 12, 2004 11:58 AM
 Subject: [FlashComm] audio stream - can't figure it out


 Hey everyone, I need some help.

 I have a continuous 20 minute audio file encoded in mp3 format. I want to
absolutely sync this audio file with flash, but have not been able to do this.
I can stream the file embedded in flash, but that corrupts the sound so much I
can barely her it.

 I am used to sync real audio files and flash through smil, but that is
becoming a bad option, as flash has gone alone. I thought that if I run/stream
the mp3 file with flash graphics through flashcom I would be able to do this,
but I am not getting there. Any examples that I could look at?

 Thanks for your help,
 Suzete

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hey Suzete,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I do not know if this is the best option but I use
this as a getTimer method like this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>sendTime = getTimer();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if (getTimer()&gt;sendTime+13000)
{<BR>&nbsp;someFunction();<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The timer starts with the streamed
event.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>You can see it in action here with
video/audio:&nbsp; <A
href="http://www.leadminepond.com">www.leadminepond.com</A>&nbsp; (Click on
your
connection speed in the upper right).&nbsp; Be warned, it is goofy but seems to
work ok.&nbsp; There must be&nbsp;a better way of doing this and I would be
interested to hear it if anyone else wants to chime in...&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>John</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#000000 2px solid; MARGIN-RIGHT: 0px">
 <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV>
 <DIV
 style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
 <A title=suzete@(protected) href="mailto:suzete@(protected)">Suzete Herrmann</A>
 </DIV>
 <DIV style="FONT: 10pt arial"><B>To:</B> <A
 title=flashcomm@(protected)
 href="mailto:flashcomm@(protected)">flashcomm@(protected)
</A>
 </DIV>
 <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 12, 2004 11:58
 AM</DIV>
 <DIV style="FONT: 10pt arial"><B>Subject:</B> [FlashComm] audio stream - can
't
 figure it out</DIV>
 <DIV><BR></DIV><X-SIGSEP>
 <P></X-SIGSEP>Hey everyone, I need some help. <BR><BR>I have a continuous 20
 minute audio file encoded in mp3 format. I want to <U>absolutely</U> sync
this
 audio file with flash, but have not been able to do this. I can stream the
 file embedded in flash, but that corrupts the sound so much I can barely her
 it.<BR><BR>I am used to sync real audio files and flash through smil, but
that
 is becoming a bad option, as flash has gone alone. I thought that if I
 run/stream the mp3 file with flash graphics through flashcom I would be able
 to do this, but I am not getting there. Any examples that I could look
 at?<BR><BR>Thanks for your help,<BR>Suzete </P></BLOCKQUOTE></BODY></HTML>