Upload
kazuhiro-sera
View
217
Download
0
Embed Size (px)
Citation preview
8/15/2019 Apol Lo Sample Applications
1/13
Slide 37 First Hello World Application
8/15/2019 Apol Lo Sample Applications
2/13
Visual Components Data Slider
(build from Scratch)
privatefunctiontrace():void {if (mySlider.value > 3){myLabel.text="More than 3";
} elseif (mySlider.value < 3) {myLabel.text="Less than 3";
}
}
]]>
8/15/2019 Apol Lo Sample Applications
3/13
Visual Components Charts
(can build from Scratch)
import mx.collections.ArrayCollection;[Bindable]privatevar medalsAC:ArrayCollection = new
ArrayCollection( [
{ Country: "USA", Beer: 3, hockey: 39, fun: 6 },{ Country: "Canada", Beer: 32, hockey: 17, fun: 14 },{ Country: "Russia", Beer: 27, hockey:27, fun: 38 } ]);
]]>
8/15/2019 Apol Lo Sample Applications
4/13
Slide (clicktest.mxml)
Demo of using to include functionality
publicfunction copy():void{
destination.text=source.text;
destination2.text=source.text;
}
8/15/2019 Apol Lo Sample Applications
5/13
APOLLO Browser in 4 lines:
Cheat: JamesGovernorsBlogReader.mxml
8/15/2019 Apol Lo Sample Applications
6/13
e4x source code (Apollo Application)
publicvar myGMLData:XML =
56.1
0.45
67.23
0.98
8/15/2019 Apol Lo Sample Applications
7/13
46.719.25
56.8810.44
324.1219.7
0.454.56
]]>
8/15/2019 Apol Lo Sample Applications
8/13
textAlign="right"/>
8/15/2019 Apol Lo Sample Applications
9/13
lineStringMember-->
8/15/2019 Apol Lo Sample Applications
10/13
8/15/2019 Apol Lo Sample Applications
11/13
Apollo RSS Blog Reader (Not complete I have not
tested this finally yet).
publicfunction getDetails():void {description.htmlText=rawRSS.lastResult.rss.channel.item[entries.s
electedIndex].description;
link.htmlText=rawRSS.lastResult.rss.channel.item[entries.selected
Index].link;
}
publicfunction setURL():String {var term:String = "term.text";var URL:String ="http://blogsearch.google.com/blogsearch_feeds?hl=en&tab=wb&q=" + term + "&ie=utf-8&num=10&output=rss" ;return URL;}
]]>
8/15/2019 Apol Lo Sample Applications
12/13
8/15/2019 Apol Lo Sample Applications
13/13
horizontalCenter="-297" enabled="true" fontSize="11" color="#464707"
borderColor="#91f0cb" fillColors="[#3f25f0, #3f25f0]"
click="setURL()">