Simple Flash Panel fails in Windows, not on Mac.

Discussion of actual or possible Bugs, Anomalies and Documentation Errors

Moderators: xbytor, DavideBarranca, Paul MR


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="" layout="absolute" minWidth="955" minHeig\
                        import com.adobe.csxs.core.CSXSInterface;

                        public function runEnlarge():void {
        <mx:Button x="25" y="26" label="Enlarge" click="runEnlarge()"/>


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) {

I've zipped up these files in 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: which looks like this:

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

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