For those who needs to use cs6 on OS X Sierra like me who had to work an old flash project written in as2, you can use Java 8 instead of Java 6 recommended by the software.
I tried at first to use Flash cs6 with Java 6 and I got memory errors publishing the file, errors that disappear using Java 8.
To use Java 8 with Adobe cs6 I followed this thread on stackexchange, specially Zac Jackson’s and Yannick Wurm’s guidelines :
Boot into the recovery partition by holding down Cmd-R upon startup. Then in the terminal app to disable “rootless”, ie “System Integrity Protection”:
csrutil disable
Create the directories:
mkdir /Volumes/Macintosh HD/System/Library/Java/JavaVirtualMachines/1.6.0.jdk
mkdir /Volumes/Macintosh HD/System/Library/Java/Support/Deploy.bundle
Then reenable “rootless”:
csrutil enable