Simple Flash Panel fails in Windows, not on Mac.

Discussion of actual or possible Bugs, Anomalies and Documentation Errors

Moderators: xbytor, DavideBarranca, Paul MR

kpt

Simple Flash Panel fails in Windows, not on Mac.

Postby kpt » Wed Nov 02, 2011 10:58 pm

Here's an interesting bug:

I've created a very simple Flash panel:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeig\
ht="600">
        <mx:Script>
                <![CDATA[
                        import com.adobe.csxs.core.CSXSInterface;

                        public function runEnlarge():void {
                                CSXSInterface.instance.evalScript("enlarge133");
                        }
                ]]>
                </mx:Script>
        <mx:Button x="25" y="26" label="Enlarge" click="runEnlarge()"/>

</mx:Application>

And this is the Javascript with the same name:
Code: Select all

enlarge133 = function() {
  try {
    var layer = app.activeDocument.activeLayer;
    layer.resize(133.33333, 133.33333, AnchorPosition.MIDDLECENTER);
  } catch (e) {
    alert(e);
  }
};

I've zipped up these files in http://irstafoto.se/upload/PS/SimpleTest.zip if anyone wants to try.
The two files should be placed in Adobe Photoshop CS5/Plug-ins/Panels/ folder.

Now, here's the case where it goes all wrong, but only in Windows (for me, at least).

Opening the following file: http://irstafoto.se/upload/PS/enlargetest.psd which looks like this:

Image

Open the Panel with Window > Extensions > SimpleTest, and click on the Enlarge button. This gives:

Image

It works if the smart object is rasterized to an ordinary layer.

Has anyone experienced this?

I have tried resetting Photoshop (ctrl+shift+alt while starting up) and also tested the .jsx file through normal scripting (works fine), so there's something funny going on with the Flash panel here.

I'd be happy to post this somewhere else if someone can advice me.



Return to “Flex, Flash & CS SDK Bugs and Anomalies”

Who is online

Users browsing this forum: No registered users and 1 guest