源xml文件
<?xml version="1.0" encoding="iso-8859-1"?> <books> <stock> <name>The Picasso Code</name> <author>Dan Blue</author> <category>Fiction</category> <description>Cubist paintings reveal a secret society of people who really look like that</description> </stock> <stock> <name>Here With the Wind</name> <author>Margaret Middle</author> <category>Fiction</category> <description>In this edition, nobody in the south really gives a damn</description> </stock> <stock> <name>Harry Potluck and the Chamber of Money</name> <author>J.K. Roughly</author> <category>Fiction</category> <description>Young wizard finds the real pot-of-gold and retires</description> </stock> <stock> <name>No Expectations</name> <author>Chuck Dickens</author> <category>Fiction</category> <description>Dickens finally reveals what he really thinks of people</description> </stock> <stock> <name>Atlas Stretched</name> <author>Ann Rind</author> <category>Fiction</category> <description>Great inventors finally just take the money and run</description> </stock> <stock> <name>Recycling Software</name> <author>Big Gates</author> <category>Nonfiction</category> <description>How to just change the name and interface of the same old software and sell it as new</description> </stock> <stock> <name>Make Tons of Money</name> <author>Donald Rump</author> <category>Nonfiction</category> <description>Rump explains how he became a billionaire while constantly declaring bankruptcy</description> </stock> <stock> <name>How to Win Enemies and Lose Friends</name> <author>Dale Crochety</author> <category>Nonfiction</category> <description>The Ultimate how-to book for people who want to stay loners</description> </stock> <stock> <name>My Lies</name> <author>Swill Clinton</author> <category>Nonfiction</category> <description>This former American president tries to define what a lie is</description> </stock> <stock> <name>The Complete History of the World</name> <author>David McClutz</author> <category>Nonfiction</category> <description>McClutz gives you the entire history of all civilization is less than 300 pages</description> </stock> </books>
flex讀取顯示
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="bookData.send()"> <mx:HTTPService id="bookData" url="./assets/books.xml"/> <mx:DataGrid x="56" y="250" width="950" dataProvider="{bookData.lastResult.books.stock}"/> </mx:Application>
使用ArrayCollection顯示
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="bookData.send()"> <mx:Script> <!--[CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; [Bindable] private var bookStock:ArrayCollection; private function bookHandler(evt:ResultEvent):void{ bookStock = evt.result.books.stock; } ]]--> </mx:Script> <mx:HTTPService id="bookData" url="assets/books.xml" result="bookHandler(event)"/> <mx:DataGrid x="56" y="250" width="950" dataProvider="{bookStock}"/> </mx:Application>
最近在做個項目。前端是用flex來寫,後臺用java,數據庫就用mysql。定了以後開始配環境。網上這方面的資料很多都是不負責任的,照着來的話也會有不少的問題,把自己的配置方法寫下來,希望需要的人能用得上。 需要下載的軟件 M
最近打算吧硬盤中的資料記錄在博客中,有用的就當是個分享,沒用的就當是個備份,還望大家不要見怪。 在項目開發中,有這樣的場景:前臺頁面的表格列需要通過查詢的數據來生成。 public Map myMethod() { //此處省略部分代碼
用了兩天時間學習了下Flex和java配合實現文件上傳,找了個小例子。前端當然是flex,後臺使用servlet,把代碼貼上來,備忘吧: FileUpload.java: import java.io.File; import jav
Flex裏面有幾個組件還沒用過,最近正好沒事,就都寫寫demo來使用一下,這個例子是在一本叫《Flex大師之路》的書上看到的,挺好的,決定寫在這裏備忘,方便以後查閱。 Accordion導航有點類似一個摺頁,在每一頁都包含
我安裝的linux系統爲CentOs 5.5,首先從網上下載swftools-0.9.1.tar.gz,然後用以下步驟進行安裝。1、首先將該軟件通過SSH軟件上傳至opt/software目錄中。 2、cd opt/software 3、
一、JW Player是什麼? 簡單地說,JW Player是一種基於flash的交互式網頁媒體播放器。它是由Jeroen 和 Wijering共同建立的LongTail Video所開發,問世於2005年,當時仍名不經傳的YouTube
Image控件在訪問本地圖片時可以正常顯示,但是一但訪問服務器就無法使用,本來以爲是路徑設置錯誤,後來幾經調試發現是tomcat編碼解析錯誤。設置tomcat目錄中的 server.xml 在端口的配置中添加藍色背景色配置。 <Co
最近發現需求需要在每個flex彈出框口上有一個“問號”按鈕,實現幫助功能。在網上搜了一下,對於flex3版本的通過override createChildren 方法來添加,但是由於項目是flex4版本的。因此開始尋找了一下皮膚的使用。
轉自http://blog.chinaunix.net/uid-122937-id-142921.html 1.SparkSkin介紹 (1)spark.skins,這個包裏面只有一個class:SparkSkin,非美工的程序員可
關於源碼:有興趣可以下載看看。Flex 解壓xlsx源碼 表的數據格式 導出json結果(格式化後) ts文件:
前幾天寫了一篇jsp頁面利用ajaxFileUpload上傳文件,現在把flex上傳頁面也分享出來: 前臺頁面 <?xml version="1.0" encoding="utf-8"?> <s:HGroup xmlns:fx="<a t
最近打算吧硬盤中的資料記錄在博客中,有用的就當是個分享,沒用的就當是個備份,還望大家不要見怪。 flex_拋自定義事件 for each(var nc:HBox in this.superTabnav.getChildren()) {
有時候我們需要在Flex應用中嵌入HTML代碼,根據嵌入HTML要求的不同有以下兩種方法:1、Flex文本組件(Label、Text、TextArea
創建ToolTip:var errorToolTip:ToolTip = ToolTipManager.createToolTip("信息",x,y)
1、要想使用FileReference的load()方法和data屬性需要使用flashplayer 10的版本,sdk3.5(sdk4.0肯定也可以