problem with calling scriptable method in flash
hi,
we have developed c++ application can host plugins through npapi (netscape plugin application programming interface). want call functions implemented plugin through cross-browser npapi extension npruntime ( http://www.mozilla.org/projects/plugins/npruntime.html).
there example shows flash <-> host communication: http://www.martijndevisser.com/blog/article/flashexternalexternalinterface-example
to call function sendtext (from demo above, in local copy of swf-file) in our application following:
1. calling npp_getvalue nppvpluginscriptablenpobject second parameter returns scriptable object
2. calling npobj->_class->hasmethod(npobj, methodname) test if plugin supports given method. npobj scriptable object returned npp_getvalue , methodname identifier created "sendtext".
3. flash-plugin calls npn_utf8fromidentifier utf8 string our passed identifier methodname (in utf8fromidentifier return "sendtext" expected)
4. call hasmethod (2.) returns false if method "sendtext" not exist. therefore calling invoke (npobj->_class->invoke(...)) method fails.
we have disabled security settings "adobe flash player settings manager" - global security settings ( http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l). checked "always allow" , added local swf file , our exe-application files in "always trust files in these locations".
are there more security options prevent calling method? else flash plugin check when testing if method available? have other ideas why cannot call method? there way find out why flash plugin returns false hasmethod? (e.g. advanced debug output, ...)
thanks help!
we have developed c++ application can host plugins through npapi (netscape plugin application programming interface). want call functions implemented plugin through cross-browser npapi extension npruntime ( http://www.mozilla.org/projects/plugins/npruntime.html).
there example shows flash <-> host communication: http://www.martijndevisser.com/blog/article/flashexternalexternalinterface-example
to call function sendtext (from demo above, in local copy of swf-file) in our application following:
1. calling npp_getvalue nppvpluginscriptablenpobject second parameter returns scriptable object
2. calling npobj->_class->hasmethod(npobj, methodname) test if plugin supports given method. npobj scriptable object returned npp_getvalue , methodname identifier created "sendtext".
3. flash-plugin calls npn_utf8fromidentifier utf8 string our passed identifier methodname (in utf8fromidentifier return "sendtext" expected)
4. call hasmethod (2.) returns false if method "sendtext" not exist. therefore calling invoke (npobj->_class->invoke(...)) method fails.
we have disabled security settings "adobe flash player settings manager" - global security settings ( http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l). checked "always allow" , added local swf file , our exe-application files in "always trust files in these locations".
are there more security options prevent calling method? else flash plugin check when testing if method available? have other ideas why cannot call method? there way find out why flash plugin returns false hasmethod? (e.g. advanced debug output, ...)
thanks help!
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment