Jump to content
Software FX Community

Link.Click not working with Flash


SM1
 Share

Recommended Posts

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 function

FlashWriter myFlash = new FlashWriter();

Chart1.OutputWriter = myFlash;

 If the OutputWriter is not set to Flash then the click works.

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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) ??

Link to comment
Share on other sites

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) ??

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...