2010-12-12 1 views
0

とのHTTP接続がフラッシュクライアントプログラムがHTTP接続を使用してサーバと通信することができます。それはJAVA指向のやり方でやるのと同じようFlashクライアントとサーバ

String URLS = "http://" + s.getHostName() 
+ ":8888/Producer/getItems"; 
try { 
URL url = new URL(URLS); 

InputStream is = url.openStream(); 
ObjectInputStream ois = new ObjectInputStream(is); 

res = (Items[]) ois.readObject(); 
is.close(); 
ois.close(); 
} catch (MalformedURLException e) { 
e.printStackTrace(); 
} catch (IOException e) { 
e.printStackTrace(); 
} catch (ClassNotFoundException e) { 
e.printStackTrace(); 
} 

答えて

0

明らかにそれができます。 URLRequestマニュアルを確認してください。マニュアルからリンクされているセキュリティの章に特に注意してください。

関連する問題