摘要:
加载xml文件var xml:XML = new XML(); var urlRequest:URLRequest = new URLRequest("t_s_daily_gift.xml"); var urlLoader:URLLoader = new URLLoader(urlRequest); urlLoader.addEventListener(Event.COMPLETE,urlLoaded); function urlLoaded(event:Event):void { xml = XML(urlLoader.data); trace(xml.... 阅读全文
摘要:
贴出错误提示代码【节选】:Access restriction: The method encode(byte[]) from the type CharacterEncoder,Access restriction: The type FileURLConnection is xxx纠错结果:这个是eclipse设置问题,它默认把这些受访问限制的API设成了ERROR,只要把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(acces 阅读全文