3D tag cloud for Flex
I'm trying to use this one class to create the tag cloud to flex.
1.I created a master document.
?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="init();" minWidth="955" minHeight="600" xmlns:local="*">
<fx:Script>
<![CDATA[
import mx.core.IVisualElement;
import mx.core.UIComponent;
public var inputWordr:String = "";
private function init():void {
c20.addElement(tirs as IVisualElement);
]]>
</fx:Script>
<fx:Declarations>
<local:MyComponent id="tirs" x="0" y="0" width="300" height="300"/>
</fx:Declarations>
<s:BorderContainer x="10" y="38" width="542" height="428" id="c20">
</s:BorderContainer>
</s:Application>
2. And created a class (MyComponent.as) based on code from the example and import all required swc.
package
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.BitmapFilterQuality;
import flash.filters.BlurFilter;
import flash.filters.GlowFilter;
import flash.text.TextField;
import mx.core.UIComponent;
import org.papervision3d.core.geom.Particles;
import org.papervision3d.core.geom.renderables.Particle;
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.materials.special.BitmapParticleMaterial;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.view.BasicView;
public class MyComponent extends Sprite
private var scale:Number = 5;
private var radius:Number = 350;
private var smoothing:Boolean = true;
private var minAlpha:Number = 0.3;
private var glow:GlowFilter;
private var tags:Array;
private var tag_num:uint;
private var bv:BasicView;
private var tagArray:Array;
private var tagContainer:DisplayObject3D;
public function MyComponent()
init ();
private function init ():void {
glow = new GlowFilter (0x003366, 1, 8, 8, 2, BitmapFilterQuality.LOW, true, false);
tags = ["free","news","Cookie","practice","JavaScript","toy","life","something","LocalConnection ","memo","MSN","funny", "ActionScript 3", "Food", "Book", "Photo", "favorite"];
tag_num = tags.length;
tagArray = [];
tagContainer = new DisplayObject3D ("tag_container");
tagContainer.x = -radius * 0.25;
tagContainer.y = radius * 0.25;
bv = new BasicView (300, 300, true, true);
bv.viewport.interactive = true;
bv.scene.addChild (tagContainer);
bv.camera.z = -2 * radius;
bv.camera.zoom = 20;
bv.startRendering ();
addChild (bv);
buildTags ();
addEventListener (Event.ENTER_FRAME, enterFrameHandler);
private function buildTags ():void {
var i:uint;
for (i = 0; i < tag_num; i++) {
// 2D
var txt:TextField = new TextField ();
txt.text = tags[i];
txt.filters = [new BlurFilter(1.1, 1.1)];
var txtW:Number = txt.textWidth + 4;
var txtH:Number = txt.textHeight + 4;
var bitmap:BitmapData = new BitmapData (txtW, txtH, true, 0x01FFFFFF);
bitmap.draw (txt);
var phi:Number = Math.acos((2 * (i + 1) - 1) / tag_num - 1);
var theta:Number = Math.sqrt(tag_num * Math.PI) * phi;
// 3D
var material:BitmapParticleMaterial = new BitmapParticleMaterial (bitmap);
material.interactive = true;
material.smooth = smoothing;
var tag:Particle = new Particle (material, scale, 0, 0, 0);
var tagHolder:Particles = new Particles ("tag_");
tagHolder.addParticle (tag);
tagHolder.x = radius * Math.cos (theta) * Math.sin (phi);
tagHolder.y = radius * Math.sin (theta) * Math.sin (phi);
tagHolder.z = radius * Math.cos (phi);
tagHolder.useOwnContainer = true;
tagHolder.autoCalcScreenCoords = true;
tagHolder.addEventListener (InteractiveScene3DEvent.OBJECT_OVER, objectOverHandler);
tagHolder.addEventListener (InteractiveScene3DEvent.OBJECT_OUT, objectOutHandler);
//tagHolder.addEventListener (InteractiveScene3DEvent.OBJECT_PRESS, objectPressHandler);
tagContainer.addChild (tagHolder);
tagArray.push (tagHolder);
private function objectOverHandler (e:InteractiveScene3DEvent):void {
bv.viewport.buttonMode = true;
e.target.filters = [glow];
private function objectOutHandler (e:InteractiveScene3DEvent):void {
bv.viewport.buttonMode = false;
for (var j:uint = 0; j < tag_num; j++) {
tagArray [j].filters = [];
private function enterFrameHandler (e:Event):void {
tagContainer.rotationX += (mouseY - 300 * 0.5) * 0.01;
tagContainer.rotationY += (mouseX - 300 * 0.5) * 0.01;
for (var j:uint = 0; j < tag_num; j++) {
tagArray[j].alpha = minAlpha + (1 - minAlpha) * (1 - (tagArray[j].screen.z - radius) / (2 * radius));
3. Then I created a call of custom component, but nothing is displayed or causes errors. I tried to insert this component in different ways.
Check out where I made mistakes, please.
all i could find...
http://www.ericd.net/tagCloud/
Similar Messages
-
How to Create Tag Cloud using Flex
Hi
I am trying to create Tag cloud using Adobe Flex. Can you
please give me a hint of how to proceed.
Any hint will be a help.
Thanks,
DevHi
I am trying to create Tag cloud using Adobe Flex. Can you
please give me a hint of how to proceed.
Any hint will be a help.
Thanks,
Dev -
Create Tag cloud for web app ?
I am creating an web app, in that i require tag clouds or tags (Not BC tags), how can i create field for it ?
Thank you for your replies!
What would be the best solution to create a pdf (with clickable images etc) to be embedded into a website?
Thanks! -
Is there a Tag Cloud for WebApps
Like with a Blog Tag Cloud, is there one for the WebApp in someway.
Thanks, TeejayHi Joel,
short answer - no -
Need API for creation of tag cloud
Hi,
I have a requirement to create a tag cloud based on a particular business logic. Does Webcenter provide API for the same?
Can I customize the "Tagging - Tag Cloud" task flow? If yes, how and to what extent?
Thanks in advance,
AnuragHi Ajit,
No another FM is available . U can directly create using transaction SE01 .
Or u can create using BDC . -
Revision: 5067
Author: [email protected]
Date: 2009-02-25 08:21:22 -0800 (Wed, 25 Feb 2009)
Log Message:
In preparation for adding ASDoc version tags for Flex, remove old tags from AIR files
QE Notes: None
Doc Notes: None
Bugs: -
Modified Paths:
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemComboBox.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemDataGrid.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemEnumerationMode .as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemHistoryButton.a s
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemList.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemSizeDisplayMode .as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FileSystemTree.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/FlexNativeMenu.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/IWindow.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/Window.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/StatusBar.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/windowClasses/TitleBar.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/AIREvent.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FileEvent.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeMenuEvent.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/FlexNativeWindowBoundsEvent .as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/events/WindowExistenceEvent.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/ApplicationTitleBarBack groundSkin.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/StatusBarBackgroundSkin .as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowBackground.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowCloseButtonSkin.a s
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMaximizeButtonSki n.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowMinimizeButtonSki n.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/skins/halo/WindowRestoreButtonSkin .as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumeration.as
flex/sdk/trunk/frameworks/projects/airframework/src/mx/utils/DirectoryEnumerationMode.asI'm also having this problem. I'm using Flash Builder 4.6, AIR 3.4 and I've made a DLL (e.g. ExtensionDll.dll) which needs to call functions in another DLL (e.g. DllUsedByExtensionDll.dll) . I've made sure my ANE is working with the ExtensionDll.dll already, so there are no issues with my actionscript code or my ANE packaging or my DLL compilation. However, once I start calling functions from the other DLL, it starts throwing me Error #3500. Even if I call this function (e.g. abc()) in ExtensionDll.dll, but I never actually use the function from actionscript, and I call another function (e.g. def()) from actionscript, the Error #3500 still appears, so it does not seem to depened on the whether the code is used or not.
It's similar to this problem.
http://stackoverflow.com/questions/9823504/how-to-use-external-dll-in-air-native-extension
Does anyone have a solution or at least a way to debug this? -
Revision: 15863
Revision: 15863
Author: [email protected]
Date: 2010-05-02 19:20:15 -0700 (Sun, 02 May 2010)
Log Message:
Remove FLEXOSMF 4.0 tagging, the OSMF for Flex 4 version of this class lives in the display package
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/layout/ScaleMode.asWhat I've done is remove osmf.swc from the Flex 4.0 sdk, then I added the new osmf.swc file to my libs folder for my project. Is there a for updating osmf in Flex 4.0 it works nativly with the sdk. The original reason why I got errors was because the frameworks/projects/osmf/src/OSMFClasses.as packages in Flex 4 were not the same as the new osmf.swc (most of the flex 4 swc have these package reference files). So those would have to be updated every time the osmf packages change.
-
Error with this Alien-RFID-Tag-List kind of tag format in flex 1.5
Hi all
I am trying to display the following XML file which i am
getiing from RFID reader when i send the command to reader. I am
using flex 1.5.
<Alien-RFID-Tag-List>
<Alien-RFID-Tag>
<TagID>1000 0000 0000 0000</TagID>
<DiscoveryTime>2006/07/14
12:28:18</DiscoveryTime>
<LastSeenTime>2006/07/14 12:28:18</LastSeenTime>
<Antenna>0</Antenna>
<ReadCount>98</ReadCount>
</Alien-RFID-Tag>
</Alien-RFID-Tag-List>
For this I am using the following codes
private function onResultAl(oEvent:Object):Void {
var aResultAl:Array =
mx.utils.ArrayUtil.toArray(oEvent.result.Alien-RFID-Tag-List.Alien-RFID-Tag);
for(var i:Number = 0; i<aResultAl.length; i++){
_aDPAL.addItem(aResultAl
<mx:HTTPService id="aldt" url="aliendata.jsp"
result="onResultAl(event)" fault="alert(event.fault.faultstring);"
resultFormat="xml"/>
<mx:DataGrid id="aldg" dataProvider="{_aDPAL}" width="630"
height="350">
<mx:columns>
<mx:Array>
<mx:DataGridColumn columnName="TagID" headerText="Tag
ID"/>
<mx:DataGridColumn columnName="DiscoveryTime"
headerText="Read Counts"/>
<mx:DataGridColumn columnName="LastSeenTime"
headerText="Reliability"/>
<mx:DataGridColumn columnName="Antenna"
headerText="Antenna No"/>
<mx:DataGridColumn columnName="ReadCount"
headerText="Read Time"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
But if i run then I am getting the error :There is no
property with the name 'RFID'.
Could anybody tell me why the compiler is ignoring after dash
in this <Alien-RFID-Tag-List> kind of tag format?
Thanx
kvijaihi all
Please have a look and tell me why I am getting this error.
Thanx
kvijai -
hi All,
can we implement Tag Cloud in our enterprise portal?
The user searches for some keywords and those keywords are stored in some location and are displayed in one page and the most searched keywords are displayed in larger fonts.
also please tell if there is any option in TREX where we can enable tagging feature.
regards,
SSHi,
There is no standard way to do that.
We have done a Tag Cloud with Trex for a customer, we had to enable the Trex log and then we created a Tag Cloud with a Java application, key words came from the Trex log file.
Regards, Gilles. -
Need Flash Guru: How can I create a 2D Simple tag cloud in Flash/AS3
I have done some searches, but couldn't find anything on Simple 2D tag clouds like this.
I don't need to make it animated, i just need to create a simple tag cloud in Flash. Please help!!
I just need two rows with 16 words, no animation, but texts got to fire onclick event as button.
Please help1. create a movieclip that contains a textfield. give the textfield an instance name (say tf) and assign the movieclip a class (say MC).
2. create a textformat instance.
3. create an array of your words.
4. loop through your array of words
a. creating a movieclip for each word,
b. assign the textformat a size (a random integer between your desired limits should work),
c. assign the word to the text property of the textfield and
d. assign the textformat to the textfield and autosize your textfield
e. add the movieclip to the display list
f. position the movieclip (after the previously positioned one)
g. add your event listener (possibly using another array). -
How can I share my tag clouds with others?
I just found out this AM that my tag cloud links only work for me. see this thread.
So how can I post links to my tag clouds?
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under constructionDarren wrote:
Laura F. wrote:
I think I'm confused - Does this link not work to see Ben's tags? I can take it to my other browser and view your tags.
I guess you're trying to narrow down to a particular part of your tag cloud?
When I click that link, it just takes me to the main NI Forums page...nothing Ben-specific.
-D
I do see Ben specific Tags...
(FYI-I do not have any of my own tags, not sure if that matters...)
Message Edited by paulmw on 12-10-2009 05:49 PM
Attachments:
BensTaggs.JPG 111 KB -
Custom tag cloud webpart based on keywords from a Term Set in the Term Store .
Hi Guys
Does anyone have developed a custom Tag Cloud webpart in SharePoint 2010? I'm
looking for a custom Tag cloud based on keywords from a Term Set in the Term Store.
Unfortunately
out of the box Tag Cloud Web Part only reference the Social Tags from the User.
in my case editors have created pages and tagged a page using terms from the Term store.
What I would like to see is a web part which could display “Top Keywords”, and the output is something like this:
http://electronicdiscovery.info/what-additional-features-would-you-like-to-see-in-sharepoint-word-cloud-survey-electronic-discovery/
Thanks In advance
Tanaji ChavanHi Ramakrishnaraja ,
Thanks for sharing the links , i tried using web part in second link but that’s not working , have also gone through the code of that web part seems like it is referring to some list like
"Categories" and "Posts"
however I'm looking for a custom Tag cloud based on keywords from a Term Set in the Term Store .
Thanks -
Tag Cloud in RoboHelp 8 WebHelp
I was wondering about a tag cloud on the front page of my WebHelp output, perhaps based on the keywords or title, heading 1 and keywords. Or, even better, on search terms.
I have no idea how to go about this but was wondering if anyone else had given it any thought or to throw it out there as a challenge. Could it be generated from Index keywords?
Any takers, theories, ideas or comments?
Greigability anyone appears bit cheers clouds consider currently feel form frequency generate grieg happy information list moment page peter point really related required rick robohelp sharing something submitting tag tagcrowd thanks thought thread users watching web wish words work worthwhile
created at TagCrowd.com
Thank you Peter and Rick for the replies.
At the top is a tag cloud created via Tag Crowd, as suggested by Peter, using Rick's reply. To create the cloud I cut and pasted Rick's reply into Tag Crowd's paste text option. The next step would be to add links to the words so the user is taken to a page that lists the results, like a search results page. All of this is sounding like a lot of work for little reward and for something that is gimmicky. Peter's suggestion, though, is a valide one for making a tag cloud.
I suppose what I was really wanting was to see a way of using something like the search weightings to determine the size of the text, picking out any keywords that had been added to topics and linking to a search results page. Or of using the index to do a similar thing (Is it possible to put the contents of an index keyword list on to a topic page to create an index page?).
As for Rick's suggestion that Tag Clouds are driven by users tagging of pages I would generally agree but seeing as though we don't have that ability in RoboHelp I thought I would skip that bit, although I feel it would be a nice feature for users, along with an ability for them to save a favourites list perhaps. Time to follow up on Rick's suggestion of using the wishlist.
Thanks,
Greig -
Hello All,
We have free text fields and would like to extract commonly spoken/written words from these fields. I have following questions about this
- Once we have loaded these fields in Endeca data store, would the tag cloud in studio automatically highlight the pattern?
- We do not have the complete list of words which we can put in whitelist and it would be iterative process by looking at the data. We are thinking that tag cloud generated automatically would be a good starting point. Let us know your views
- If we want to rank or give weightage to the comments, do we need to have additional license for Lexalytics component?
ThanksFrom reading your question, I believe you have posted to the wrong forum. You are looking for the [Endeca Information Discovery|https://forums.oracle.com/forums/forum.jspa?forumID=1404] forum where I am confident they can address your question.
-
Hello All,
We have free text fields and would like to extract commonly spoken/written words from these fields. I have following questions about this
- Once we have loaded these fields in Endeca data store, would the tag cloud in studio automatically highlight the pattern?
- We do not have the complete list of words which we can put in whitelist and it would be iterative process by looking at the data. We are thinking that tag cloud generated automatically would be a good starting point. Let us know your views
- If we want to rank or give weightage to the comments, do we need to have additional license for Lexalytics component?
ThanksDuplicate
Maybe you are looking for
-
Prompt for user profile photos
Hi, When we try to open any page in SharePoint with intranet users' pics in it, sometimes it prompts for user name and password and that to many times not once. So if I provide the username and password then it allows me to see the profile pics in
-
Ise 1.2 Snmp strange behaviour
when i click on monitoring the port on wich a host is connected it gives me the result: SNMP request succesful and the switch details but in port details section reports "no such instance" but an endpoint is connected and authorized on it the switch
-
How to make this function in enviroment?
Hi I think I need some help here. I want to set a enviroment to switch the audio instruments like the VSL performence tool: when I press the first key on the midi keyboard, the first instruments plays , and then the second press , the second instrume
-
What does the "option" input of the FIR Windowed Coefficients VI do?
Here's the LV Help entry: option specifies whether to scale the FIR Windowed Coefficients. The default is 0. 0 not scaled-Does not scale the FIR Windowed Coefficients. 1 scaled-Scales the FIR Windowed Coefficients. Well that's....unhelpful. Scales th
-
I've created a package in SSDT (Visual Studio 2012) to import DBF tables into MSSQL 2014 via a wizard. Source DBF files contain tables with Russian (Cyrillic) characters in records fields. Created package works fine, produces correct results (imports