Menu

[r114]: / cairngorm3 / trunk / libraries / TaskTest / src / samples / GoogleSearchTask.mxml  Maximize  Restore  History

Download this file

25 lines (19 with data), 659 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>
<tasks:RestfulTask xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:tasks="com.adobe.cairngorm.work.item.*"
url="http://www.google.com/search?q={ keyword }"
resultFormat="text">
<mx:Script>
<![CDATA[
[Bindable]
public var id:String;
[Bindable]
public var keyword:String;
override protected function handleResultData(data:Object):void
{
super.handleResultData(data);
// do something more meaningful with the result data here
}
]]>
</mx:Script>
</tasks:RestfulTask>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.