SM1 Posted May 28, 2009 Report Share Posted May 28, 2009 When Iam setting the OutputWriter of the Chart as FlashWriter , Link.Click is not working. Following is the piece of code /* attaching annotationtext object 'annotText' on chart */ Link linkObj = annotText.Link; linkObj.OnClick = "return myFunction()"; //myFunction is the javascript functionFlashWriter myFlash = new FlashWriter(); Chart1.OutputWriter = myFlash; If the OutputWriter is not set to Flash then the click works. Quote Link to comment Share on other sites More sharing options...
juanZ Posted May 28, 2009 Report Share Posted May 28, 2009 Chart FX has limited UI functionality when it is rendered as a flash object. Javascript interaction is not available when rendered as flash. Quote Link to comment Share on other sites More sharing options...
SM1 Posted May 29, 2009 Author Report Share Posted May 29, 2009 Thanks Juan for a quick response. To some extent I have succeeded in calling the javascript function for an AnnotationText object while using Flash Writer. The solution achieved is working when annotation object is clicked, I also want javascript function to respond to OnMouseOver event. Following is the code used Link linkObj = annotText.Link; linkObj.Url = "javascript : ShowAlert(" + annotText.Tag + ")"; //ShowAlert is the javascript function (it takes one argument)FlashWriter myFlash = new FlashWriter(); Chart1.OutputWriter = myFlash; When Iam setting Url its giving the same effect as Click is there any way for having Link.MouseOver for Flash. Quote Link to comment Share on other sites More sharing options...
juanZ Posted May 29, 2009 Report Share Posted May 29, 2009 Hey! Nice approach. That is a good way to work around this. Quote Link to comment Share on other sites More sharing options...
SM1 Posted May 29, 2009 Author Report Share Posted May 29, 2009 Thanks Juan but actually my question is ,I Is there any approach through which I can have Link.OnMouseOver work on Flash ?? Or should I consider that since there is limited UI with Flash so Link.OnMouseOver could not be implemented (with Flash) ?? Quote Link to comment Share on other sites More sharing options...
SM1 Posted May 29, 2009 Author Report Share Posted May 29, 2009 Thanks Juan but actually my question is , Is there any approach through which I can have Link.OnMouseOver work on Flash ?? Or should I consider that since there is limited UI with Flash so Link.OnMouseOver could not be implemented (with Flash) ?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.