-
1. Re: How to catch event when active document is chnaged in Photoshop CC HTML 5 extension
xiaogezi Jan 16, 2014 12:19 AM (in response to Airnauts)I have the same problem. how to change ExternalInterface.addCallback("PhotoshopCallback", xxx); to Javascript code?
-
2. Re: How to catch event when active document is chnaged in Photoshop CC HTML 5 extension
Airnauts Jan 17, 2014 3:04 AM (in response to xiaogezi)What do you mean by "ExternalInterface.addCallback("PhotoshopCallback", xxx);" ? There is no such object (
"ExternalInterface") in extension js environment.
-
3. Re: How to catch event when active document is chnaged in Photoshop CC HTML 5 extension
jun xia Jan 23, 2014 11:20 PM (in response to Airnauts)The events' type are not correct. They are as the following.
- documentAfterActivate
- documentAfterDeactivate
- applicationActivate
- documentAfterSave
You could try code as below.
var cs = new CSInterface();
cs.addEventListener('documentAfterActivate',function(){ console.log('success'); });
It's better to upgrade to Photoshop14.2 with the events above supported, besides that, Photoshop 14.2 also supports persistent and unpersistent panel.
What's more, there is an known issue although it rarely happens that, the specific events might be missing in Html panel without any flash panel opened. If you are in this case, the workaround is to open a invisible flash panel background.
-
4. Re: How to catch event when active document is chnaged in Photoshop CC HTML 5 extension
Airnauts Jan 24, 2014 7:21 AM (in response to jun xia)It does not work - I guess I am lucky and will have to open flash panel - could you tell me how I can do this? I have never done any flash panels and I am not familiar with flash.
-
5. Re: How to catch event when active document is chnaged in Photoshop CC HTML 5 extension
dinghui Jan 26, 2014 1:12 AM (in response to Airnauts)Hi Airnauts,
There should be "Adobe Exchange" and "Kuler" extension under Photoshop's Window > Extensions menu, they are Flash extension. Please open either one, then try your HTML extension.
-
6. Re: How to catch event when active document is chnaged in Photoshop CC HTML 5 extension
BaconOppenheim Jun 14, 2014 4:49 AM (in response to dinghui)Oh I seem to have the same problem.
Version: Photoshop 14.2.1 x64
Opening Kuler (and only while its open) makes 'documentAfterActivate' start triggering.
I am trying to convert an existing flash extension to the new system and without these elementary events it would be impossible
A few questions:
1) So how do I open an invisible flash panel to solve this?
2) Is this going to be fixed on HTML5 panel SDK launch?
3) Is there any other way to detect document change/open etc?
Please help, thanks
-
7. Re: How to catch event when active document is chnaged in Photoshop CC HTML 5 extension
dinghui Jul 9, 2014 12:17 AM (in response to BaconOppenheim)Hi,
Sorry that I am no longer with Adobe. Could you please post your question on the relevant forum so that other Adobe guys can help you?


