dealing with my xml mp3 player again looking through some topics and some help from someone on gotoandlearn forums i was told that the file reference class is what i need to use to force download from the xml file i used a code from a topic post to show how to use it and it tells you what all you need to change and such but i keep getting this error when i test my movie.
The class or interface 'flash.net.FileReference' could not be loaded.
this is my code to import it in
Code:import flash.net.FileReference; var myListener:Object = new Object(); myListener.onSelect = function(file:FileReference):Void { trace("onSelect: " + file.name); } myListener.onCancel = function(file:FileReference):Void { trace("onCancel"); } myListener.onOpen = function(file:FileReference):Void { trace("onOpen: " + file.name); } myListener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void { trace("onProgress with bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal); } myListener.onComplete = function(file:FileReference):Void { trace("onComplete: " + file.name); } myListener.onIOError = function(file:FileReference):Void { trace("onIOError: " + file.name); } var theFileRef:FileReference = new FileReference(); theFileRef.addListener(myListener);





Bookmarks