Posted by nameuser in SWF Studio V3 on Feb 11 2011, 06:05 pm

Hello,

I have a Shell.Explorer control in my app and I want to use it only for capturing the URL of links the user drag & drop on the control using the event BeforeNavigate2.


BeforeNavigate2(pDisp As Object, 
                URL As Variant, 
                Flags As Variant, 
                TargetFrameName As Variant, 
                PostData As Variant, 
                Headers As Variant,
                 <B><font color='Red'>OUT Cancel As Boolean</font></B>)


I did something similiar in a VB app and all you had to do was set Cancel to True to stop it from actually making a request for the link. How exactly do you set Cancel to true using swf studio? Is it possible?

Thank you


Posted by nameuser in SWF Studio V3 on Feb 11 2011, 07:19 pm

Looks like I'm able to do what I wanted to do using ssCore.Browser with this line, ssCore.Browser.addRule({type:"deny", pattern:"*"});

Is there a way to access the document Object of a ssCore.Browser?


Posted by AGo in SWF Studio V3 on Feb 12 2011, 07:01 am

Yes there is
http://northcode.com/forums/showthread.php?t=9053


Posted by nameuser in SWF Studio V3 on Feb 12 2011, 12:22 pm

Thanks AGo! :)


Posted by AGo in SWF Studio V3 on Feb 12 2011, 12:24 pm

You're welcome.
Your previous posts are held back in the moderation queque because of the link in it inherited from the quote.

This board does not allow members with less then X posts to post with a link for spam protection ;)