In the javascript, I've done :
pluginobj.lge.value = 15;
but the plugin method ScriptablePluginObject::SetProperty was not
called.
I do something wrong ?
Thanks for your help.
Philippe
What is pluginobj.lge? You can't set plugniobj.lge.value until pluginobj.lge
exists.
--BDS
Is the good way to set a property in JavaScript : "pluginobj.lge.value
= 15;" ?
Thanks for your answer.
Philippe
On the pluginobj NPClass, right? What about the lge object itself? What
NPClass does it have?
> Is the good way to set a property in JavaScript : "pluginobj.lge.value
> = 15;" ?
I'm a bit confused about your example. When you set pluginobj.lge.value, you
aren't setting a property on pluginobj, you're setting a property on the
`lge` object. What type is the lge object? Is it implemented by a custom
NPClass in your plugin, or is it a regular JS object?
--BDS
in fact, "lge" is a property of the plugin, like sBar in the npruntime
mozilla exemple.
It's not a regular JS object.
After some research, it appear that even Adobe with the flash plugin
use set/getPropertyInt and getPropertyString to access to the plugin
properties, and not use the direct JavaScript access.
I will use theses methods.
Thanks for your answers.
Philippe