• beyond tellerrand – play. Register Now!
Zurück   Flashforum > Flex und AIR > Adobe AIR

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 23-02-2010, 13:08   #1 (permalink)
in Freiheit
 
Benutzerbild von Timo H.
 
Registriert seit: Jun 2001
Ort: Berlin
Beiträge: 353
Question Air und Sandbox

Hallo zusammen,

vorweg ich bin air, aber kein Flash Neuling.

Folgendes Problem:
Ich möchte in einer Air Applikation MP3s von der Festplatte des Users spielen. Allerdings bekomme ich, was ich auch tue ein SandboxViolation

Ich dachte man könnte in Air wie bei SWFs auch den Sandboxtyp einstellen.
[ so wie im Compiler -use-network=false ]

Allerdings kann ich nicht finden wo und wie.
Hab mich schon blöd gegoogelt.

Kann mir jemand einen Tipp geben.

Ich publiziere mit Flash CS4 Professional.
Hatte noch keine Zeit FDT entsprechend einzurichten.

Bin für jede Hilfe dankbar.

Viele Grüße
Timo

Code:
public function setMP3() : void {
			
	var filter : FileFilter;
	filter = new FileFilter("MP3", "*.mp3"); 
			
	var file : File;
	file = new File();
	file.addEventListener( Event.SELECT, MP3SelectHandler );
	file.browseForOpen("Select a mp3 file", [ filter ]);
}

private function MP3SelectHandler( event : Event ):void{
			
	var request : URLRequest;
	//request = new URLRequest( event.target.url );
	request = new URLRequest( event.target.nativePath );
			
	var sound : Sound ;
	sound = new Sound();
	sound.addEventListener( IOErrorEvent.IO_ERROR, errorHandler );
	sound.load( request );
	sound.play();
}
__________________
|Timo H.|
Timo H. ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Sandbox... fian_nick ActionScript 3 0 07-11-2007 15:21
Sandbox André Michelle ActionScript 3 10 24-10-2006 16:14
FileUpload SandBox eddieconnecti ActionScript 1 2 03-07-2006 12:41
Security Sandbox labrar Flash 8 1 06-06-2006 19:41
Sandbox Fehlermeldung tomtom69 ActionScript 1 7 10-03-2006 17:57


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:49 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele