Detecting start/edn transition

1 view
Skip to first unread message

martin.berg

unread,
Dec 1, 2009, 11:44:43 AM12/1/09
to juicekit
Hi,

I am using


treemap.addEventListener(TransitionEvent.START, disableMouseEvents);
treemap.addEventListener(TransitionEvent.CANCEL, enableMouseEvents);
treemap.addEventListener(TransitionEvent.END, enableMouseEvents);

to detect the start/end of the transition and block mouse events this
works fine, except right after the 1st treemap load,

I need to click and it all works as expected just not right after the
1st load ?


Does it work for you ?

martin.berg

unread,
Dec 1, 2009, 11:48:05 AM12/1/09
to juicekit
Is there a way to get the current transition state ofthe treemap ?

like treemap.transitionState ? idk

martin.berg

unread,
Dec 10, 2009, 10:17:30 AM12/10/09
to juicekit
I noticed that displaying a popup fires off the start transition event
that's what is breaking my code, I still dont have a soltion

Sal Uryasev

unread,
Dec 10, 2009, 10:45:50 AM12/10/09
to juic...@googlegroups.com
Hey Martin,

Can you clarify on this popup with a code example?  I can look to see why it would be firing a TransitionEvent.START event, and if there is a good solution.


On Thu, Dec 10, 2009 at 10:17 AM, martin.berg <martin.j...@ndrc.ie> wrote:
I noticed that displaying a popup fires off the start transition event
that's what is breaking my code, I still dont have a soltion

--

You received this message because you are subscribed to the Google Groups "juicekit" group.
To post to this group, send email to juic...@googlegroups.com.
To unsubscribe from this group, send email to juicekit+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/juicekit?hl=en.





--
Sal Uryasev
Juice Analytics
+1 (352) 213 9734

martin.berg

unread,
Dec 10, 2009, 11:02:00 AM12/10/09
to juicekit
public function jkMouseOverHandler(event:DataMouseEvent, type:uint =
1):void {
// The event is to process only if no animation is running ?
if (mouseEventsEnabled) {
var tgtNode:NodeSprite = event.sender as NodeSprite;

if (tgtNode) {
const d:Object = tgtNode.data;
var sizeFieldRef:Field =
TreemapDescriptorUtils.getFieldById(treemapModel.sizePropertyName);

detailCloud.fieldName = "<b>" + (d
[treemapModel.labelPropertyName] as String).toUpperCase() + "</b>";
detailCloud.fieldSizeEncoding = sizeFieldRef.label +
": " + d[treemapModel.sizePropertyName];
detailCloud.fieldColorEncoding =
selectedColorEncodingLabel + ": " + d[treemapModel.colorPropertyName];
detailCloud.position(tgtNode, null);
detailCloud.visible = true;

higlightNode(tgtNode); // this adds a box to the node to
highlight it
addChildsToTreemap(); // t
}
} else {
savedNodeSprite = event.sender as NodeSprite;
}
}

private function addChildsToTreemap():void {
if (nodeHighlight != null)
treemap.addChild(nodeHighlight);

if (detailCloud != null) // After the node higlight !
treemap.addChild(detailCloud);

if (detailCloud2 != null) // After the node higlight !
treemap.addChild(detailCloud2);
}

detailCloud is of type

public class TreemapVizDetailCloud extends VBox {}
Reply all
Reply to author
Forward
0 new messages