ToolTip {
cornerRadius: 6;
backgroundAlpha: 0.66;
backgroundColor: #000000;
color: #ffff66;
}
Panel {
borderAlpha: 0.66;
borderColor: #000000;
titleStyleName: "PanelTitle";
}
.PanelTitle {
color: #ffffff;
letterSpacing: 1;
fontWeight: bold;
fontStyle: italic;
/*text-indent: 24;*/
}
OpenScales.org 1.2-snapshot";
text += "\n\n\n";
text += "OpenScales.org is a user-friendly and fast interface designed to manipulate spatial data: geographic raster viewing, data-vector editing, management of smooth transitions between scales and positions, ...";
text += "\n\n";
text += "As a free open source (LGPL license) and extensible tool written in ActionScript, OpenScales is designed to be easily plugged in your Flex or Air application. OpenScales is a small but powerful core of GIS, so try it and let us know.";
text += "\n\n";
text += "OpenScales.org was initially an ActionScript3 port of Openlayers, since it has started from FlexLayers source code that we actively improve to take advantage of new capabilities offered by ActionScript3 and Flex technologies.";
text += "\n\n";
text += "Visit our website, join the community and come discuss with us on OpenScales Discussion Group.";
OSdescription.htmlText = text;
}
private function expandTree():void {
for (var i:int = 0; i < tree.dataProvider.length; i++) {
tree.expandChildrenOf(tree.dataProvider[i], true);
}
}
private function collapseTree():void {
for (var i:int = 0; i < tree.dataProvider.length; i++) {
tree.expandChildrenOf(tree.dataProvider[i], false);
}
}
private function updateSelectedExample():void {
selectedNode = tree.selectedItem as XML;
selectedView = viewStack.getChildByName(selectedNode.@viewStack) as Container;
if (selectedView) {
viewStack.selectedChild = selectedView;
description.text = selectedNode.@description;
oldSelectedIndex = tree.selectedIndex;
} else {
var open:Boolean = false; // FixMe: get the current state
tree.expandChildrenOf(tree.selectedItem, !open);
tree.selectedIndex = oldSelectedIndex;
}
}
private function treeChanged(event:Event):void {
updateSelectedExample();
}
]]>