0
아래에서 언급 한 내용으로 스크립트를 업데이트했지만 여전히 구문 오류가 발생했습니다 ... 어떤 제안이 있습니까?서버에서 텍스트를 올바르게 읽음
<fx:Script>
<![CDATA[
try {
URL url = new URL("http://www.rwolfc.com/App/TRY.txt"){;
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String str;
while ((str = in.readLine()) != null) {
}
in.close();
} catch (MalformedURLException e) {
} catch (IOException e) {
}
]]>
</fx:Script>
하지만 난이를 사용할 때 내가 플렉스에서 다음과 같은 오류를 얻을 :
1071: Syntax error: expected a definition keyword (such as function) after attribute String, not str.
1073: Syntax error: expecting a catch or finally clause.
1084: Syntax error: expecting rightbrace before leftbrace.
도움말! ??! 다음 줄에
을해야한다 'fx : Script'에 대해 언급합니다. 나는 당신이 사용하고있는 프로그래밍 언어의 종류에 대해 혼란스러워 할 것 같아요. –