topical media & game development
springgraph-thesaurus-WordView.mx
springgraph-thesaurus-WordView.mx
(swf
)
[ flash
]
flex
<?xml version="1.0" encoding="utf-8"?>
<mx:Label xmlns:mx="http://www.adobe.com/2006/mxml" text="{data.id}" selectable="false"
alpha="{springgraph_thesaurus.instance.getItemAlpha(springgraph_thesaurus.instance.roamer.visibleHistoryItems, data.id)}"
color="{springgraph_thesaurus.instance.getColor(springgraph_thesaurus.instance.roamer.currentItem, data)}"
fontWeight="{springgraph_thesaurus.instance.getWeight(springgraph_thesaurus.instance.roamer.currentItem, data)}"
filters="{springgraph_thesaurus.instance.calcFilters(springgraph_thesaurus.instance.roamer.currentItem, data as Item)}">
<!--
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2006 Adobe Macromedia Software LLC and its licensors.
// All Rights Reserved. The following is Source Code and is subject to all
// restrictions on such code as contained in the End User License Agreement
// accompanying this product.
//
/////////////////////////////////////////////////////////////////////////////
-->
<!-- This component is the itemRenderer (a.k.a. view class) for Items of type Word. This is simply the text
of the word. We use various common view settings provided by various Thesaurus functions.
We also implement a double-click action.
-->
<
mx:Script>
<![CDATA[
import com.adobe.flex.extras.controls.springgraph.Roamer;
import com.adobe.flex.extras.controls.springgraph.Item;
public function doubleClick(event: MouseEvent): void {
springgraph_thesaurus.instance.showWord(data.id);
}
]]>
</mx:
Script>
</mx:Label>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.