Flash actionscript 3.0: 2012

Play sound files by using Local File Browser

0

Posted by Sankar.G | Posted in | Posted on 4:20 PM


One of the readers requested for to play audio file by using local file browser,thought i will post it so that it may help others who might have siame requirement.

We cannot select and play a audio file by using fileReference because fileReference object doesn’t return the file path of the audio file [this will not be an issue if you are developing a AIR application, as you can use'File' object which will return file path]. So our only choice here is to load the audio file as binary data using fileReference objects ‘load’ method.

And we need to Convert the wave audio data into raw data and use Sound objects Sample data Api to play back.

An API which can convert Wave into raw audio for to play in sound Channel and a small example is below.

Sound_Play.zip

Peer to peer in AS3.0

0

Posted by Sankar.G | Posted in | Posted on 6:17 PM

Adobe Cirrus the previous name of the technology called Adobe stratus using the technology we can connect 2 flash player without any server just we need to exchange the 128 bit code.

Already i done a post about this in my previous blog

Previous_Entry

Usage of Cirrus
You can able to chat,video stream etc but there is no server direct peer to peer connection between 2 flash Player, I develop a small chat application by using Adobe Cirrus below you have the link

Adobe_Cirrus.zip

Steps to use the above Example

1) Download the file from above link.

2) Extract the file and open test.swf twice.

3) you get 128 bit text in the first box in both the swf.

4) Just copy that code from first swf and paste it in second swf and click connect.

5) And copy the code from second swf and paste it in the first swf and click connect.

Now both the swf are connected each other using Adobe Cirrus (Peer to peer)
And start your chat using below text box with send button...