actionscript 3 - How to generate a sound file inside AS3 and upload it to server? -


I created a flash applet to record the sound and encoded it in mp3 bitrate. By uploading the file's readance object's upload method and URL rafing as a parameter, a file can be sent to a script that can process data (eg .php). However, FileReference.data is read-only, so I can not understand the way to pass a file reference object in the MP3 biterere, or create a file in AS3 and load it on the reference reference to the file. By the way, I would not want the user to download the file and upload it manually. Is there any way to solve this problem?

file references is not used to analyze the loaded content, But to do this to load files between a server and a computer, you can use the URLLoader class. Listening events is done directly by the URLLoader object.

  var loader: URLLoader = new URLloader (); Loader.load (new URLRequest ("myFile")); Loader.addEventListener (event.complete, loading);   

To access the data, we use the property of the data of the URL loader object:

  the function loads Being hyphenated (e: event): zero {trace (e.currentTarget.data); }    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -