Do you get the crash with HostObject?
Do you have a modal dialog open?
There is no modal dialog open - just a regular Extensions panel.
What do you mean by "get the crash with a HostObject"?
Harbs, thank you very very very much for the link. It's very nice technique.
But I have one question to you. Can I pass Array from jsx to sdk? I mean the real array, not a xml of string or anything?
On the very bottom of the post in the link you provided, theres an example:
var d:Document = new Document();
d.hostObjectDelegate = jsxInterface.getDocumentFromJSX();
And it works great, but only for SDK-specific classes, because they have a 'hostObjectDelegate" property/function.
Array doesn't have one, so how can i get an array from JSX?
Yes. You can pass an array, but it will not be an ActionScript Array type.
Something like this:
var jsArray:Object = jsxInterface.getArray();
trace(jsArray); // returns "2".
I've seen several references to the jsxInterface, but my compiler can't seem to find it. I'm using CS Extension Builder 4.6. What library/imports do I need to get access to this object??
Its shorthand for referencing HostObject.
Read the cookbook post. It's all explained there.
I'm an idiot. Let's just leave it at that
Thank you very much Hrabs. With this 2 short post you helped me more, than anything and anybody since my start with creative SDK (like 2 months now)
This has been a very helpful post, thank you!
The link to the cook book is broken, do you have a new one?
since the Cookbooks are no longer available, can you please write here what is the methode to be used instead of 'evalscript' ?