Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Is it possible to change the ActionScript values if I only have the .swf file?
 

Is it possible to change the ActionScript values if I only have the .swf file?

Currently, I know there's a button in the game that calles getURL("javascript:function()", ..) and it works fine if the container is an html page with the js function defined. However, I am loading the .swf file into the axshockwaveflash activex object, meaning no js will be interpreted, and so I'm getting a JS when I click on the button. Is there a way around this, pass in JS codes or at least suppress all the js error messages?
du_wong  Tuesday, July 24, 2007 9:49 PM

Hi, du_wang,

I tried some samples, and finally got this solution.

set

Code Snippet

axShockwaveFlash1.AllowNetworking = "internal";

The getURLfunctioncould be prevented.

Hopes this helps,

Regards

Yu Guo â€?MSFT  Wednesday, July 25, 2007 9:26 AM

Hi, du_wang,

I tried some samples, and finally got this solution.

set

Code Snippet

axShockwaveFlash1.AllowNetworking = "internal";

The getURLfunctioncould be prevented.

Hopes this helps,

Regards

Yu Guo â€?MSFT  Wednesday, July 25, 2007 9:26 AM

Thanks!
Dmitry Pavlov  Monday, August 20, 2007 1:15 AM

You can use google to search for other answers

Custom Search

More Threads

• How to hide a property at run time?
• How to disable the maximum click and enlarge of a fom?
• XmlTreeView
• Code generation with CodeDom
• Error: "DataGridView control's columns has no cell template" in UserControl
• Please read before posting
• controls
• How to passing Composite Control messages to the parent Form?
• How to show the progress in percentage over a progress bar
• Source Code Not Updating on ExpandableObject Converter