Workaround for JSFL shape selection bug?

There seems to be a bug in the document selection reporting in JSFL in  CS4 (haven't tested earlier versions).  I submitted it as a bug to Adobe  but I'd really like to find a workaround for it.  I've included my bug  report below.  Has anyone else encountered this?  If so, have you  figured out a workaround?  It's pretty annoying, making the tool I'm  working on really difficult to manage.
******BUG******
After performing a publish preview, fl.getDocumentDOM().selection  reports an incorrect selection of raw shapes.
Steps to reproduce bug:
1. Create a JSFL command with the following contents:
doc = fl.getDocumentDOM();
fl.trace("there are " + doc.selection.length + " items selected");
2. Start the authoring environment fresh, with a new document.
3. Draw several shapes on the stage, not touching each other, all in  the same frame and layer.
4. Select one of those shapes but leave the others unselected.
5. Run the previously created JSFL command.  It will send the following  text to the output panel, as one would expect:
"there are 1 items selected"
6. Do a publish preview (either Flash or HTML).
7. When it comes up, close the preview window.
8. Deselect all and then select one of the shapes (again, keeping the  others unselected).
9. Run the JSFL command again.  This time, it will say that there are n  items selected (where n is the number of shapes you drew in step 3).   So if you drew three shapes, it will print out the following:
there are 3 items selected
Note that this result will be the same even if you go to a different  document, do a publish preview on that document, then return to the  original.  It seems that simply doing a publish preview alters Flash's  state to report the selection incorrectly.
Results: The JSFL command reports that all the shapes are selected,  despite the fact that only one of them is.  The only way I've found to  get Flash back to its normal behavior is to restart the authoring  environment.
Expected results: In the steps above, the JSFL command should always  print out that there is one element selected.  There's no reason that  doing a publish preview should change that.

When selected all shapes in selection are treated as one. You can see it if you run this script with selected multiple shapes:
fl.trace( fl.getDocumentDOM().selection[0].contours.length );
It will output you twise bigger number then selected shapes (because each Shape has two contours - one clockwise, other counterclockwise).
Of course this. implementation is strange for me too. Thats how i found your post

Similar Messages

  • Workaround for keyword button sets bug

    Thought I'd post this in case anyone else is beating their head against a wall trying to use custom keyword button sets.
    BUG: Control bar sometimes displays the wrong captions for the keyword buttons. Cause: Deselecting a keyword button set in the "Edit buttons" dialog will cause any active button sets after it to appear corrupted in the control bar. For example, with the default set of "Photo Descriptors, People, Stock Categories, Snapshots, ..." try unchecking the Stock Categories button set. When you return to the control bar, use the popup button set selector (just under "Add Keyword") to select Snapshots. Instead of the Snapshot keyword buttons, you will instead see the button captions from Photo Descriptors, though if you click one of those buttons, it will apply the appropriate keyword from the Snapshots set.
    Workaround: Rearrange the order of the button sets list in the Edit Buttons dialog to make all checked button sets appear before all unchecked button sets. In other words, don't have any gaps where you have an unchecked button set followed by a checked button set.
    Cheers,
    Paul

    You are my hero!!!! This is exactly what I was looking on here for. Thanks again.

  • Is there a workaround for the transform/crop bug?

    Happy Tuesday!
    Does anyone know a way to get around this bug?
    - I have two video clips.
    - One video clip (on top) is a talking head that need to be placed in a box on the other clip.
    - Apply transform to talking head clip.  Scale and change position.
    - Apply crop to talking head clip. Bring in left and right so image fits in the box.
    Everything is good so far...
    - Apply same transform and crop to other talking head clips in same project.
    - Crop fails terribly for second and all subsequent attempts. It seems like there is a magic area for which the clip cannot render.
    The first transform/crop works fine...
    All subsequent transform/crops, either mannually applied or from copied attributes, do this:  (The collection of icons are inside the box and is showing through from the bottom clip.)
    If I drag the image around the screen, there seems to be a "magic area." If the image is in the magic area, everything is fine.  If the image approached any edge of the screen, the bad crop effect happens. Here I have dragged the transform near the bottom left corner of the screen:
    I have played with crop settings and the way the crop jumps, there seems to be some kind of logic bug in the cropping code, particularly with transform/crop combinations.  Any help would be appreciated!  This bug is a show-stopper, and I'm on a fairly tight schedule.  Does anyone know of a way to get around this bug?
    Tom

    I guess, I'm of no help here.. I can crop and transform like crazy - no issues
    I also tried your 'special' method, to crop/transform the main storyline (=what I wouldn't do)  ...  but the attached other clips appear without problems:
    and after that 'arrangement', another one - no issues:
    tsphillips wrote:
    … Perhaps an interesting experiment would be to see what it takes to make a clip render outside of it's crop box.
    here you lost me - in translation, sorry:
    a clip OUTside its crop??
    outside a crop is nothing, that's what a crop is for… shouldn't it?
    cropping means; cutting-off parts of the pic, that icon is a passépartout..
    so, outside a crop is … nothing to see here, Sir..
    Sorry, of being no help here......
    Would be interesting, what Cupertino will andswer you..........

  • Workaround for iPhone smart playlist bug

    There is a bug (do a search for smart playlist in this forum) with smart playlists not displaying the correct songs on the iPhone.
    I just tried something that seems to have worked...
    I have a playlist in iTunes called "Recently Added" which I want to keep synced with my iPhone.
    I created a new smart playlist called "Recently Added (iPhone)". The playlist has one rule: "Playlist is Recently Added" with live updating checked.
    I now sync this second playlist with the iPhone and all the correct songs show up in it.

    Excellent idea Jeff.
    Your approach works for the same reason that my original idea works.
    The inclusion of another playlist as a condition in a smart playlist, causes the playlist to become "rasterized" or static.
    The developers wanted smart playlists to be really smart - instead of copying a static list of songs from the smart playlist to the iPhone/Pod, they simply send the definition of the playlist to the iPhone and let it calculate which songs from it's own library belong on it.
    The nice thing about their approach is that the playlists will continue to live update on the Phone in-between syncs - so if you have a playlist called "Last 25 played" it will have the last 25 played songs on your iPhone, instead of the last 25 played songs that you played in iTunes.
    The problem of course, is that there's a bug in the way the iPhone calculates these rules (probably related to the porting of code to a new architecture).
    So why does this fix work?
    Well, my theory is that when you create a smart playlist that references another playlist, iTunes simply calculates the songs that should appear on the smartplaylist and sends a literal list to the iPhone/Pod.
    This solves the problem that would be created if you only sync the parent playlist, and not the playlists it references. (IE, if you would want to be able to sync the "25 most played" playlist without also having to sync the "MusicOnly" playlist).

  • Reliable workaround for long standing ATV2 bug

    Cracked Home Share photo viewing at last !!
    Windows XP Pro, iTunes11.2.0.115, ATV2 6.1.1 (DHCP) wired ethernet.
    ATV2 will only make one attempt to connect to my PC, and once failed nothing in the world will persuade it to try again.
    You can turn HomeSharing off/on on one or the other or both devices in any order - achieving absolutely nothing, always the message "turn on home sharing on your computer".
    The solution - works every time - pull the mains on ATV2. The connection is established during reboot and works perfectly for the rest of the day.
    Any chance of fixing this bug, Apple ??
    If you can't fix it, give us a reboot option ?? (Do I really have to put a switch in the mains supply ?)

    More info:
    ATV maintains the connection through a manual Sleep/Wakeup sequence, but it you let it time-out of its screensave mode then a reboot is required.

  • Any simple workaround for the 'umount -a' bug?

    On Arch 0.7.2 the installer seems to use a busybox version that has a bug (according to what I've read) or maybe busybox isn't built with the umount -a feature.
    The thing is that 'umount -a' doesn't work so, after installation, the partitions aren't umounted which results in FS errors on the next boot.
    As I'm developing an automated installation I don't use ArchLinux installation scripts but I stumble into this problem.
    Anyone can think of a simple shell snippet to umount all mounted filesystems?
    Something like a loop would do, but I can't think of anything simple.
    Maybe I can even use an  updated ramdisk or update/patch busybox on the 0.7.2 initrd.

    detto wrote:dunno exactly whats the problem :S
    all the time ive installed arch using ext3 as fs it does indeed a quick check during first boot but that always looks like wanted to me, and also is only maybe 3-4 secs long. what fs are u using in installation?
    well that check is probably the result of the filesystem not being umount ed correctly. The problem is supposed to be a bug in 'busybox', the program that's behind all basic comands on the installation. If you try to do 'umount -a' it doesn't work (it should umount everything).
    My filesystem of choice is reiserfs, and it does handle problems like this. But that's not the point. There's a bug that needs to be fixed.

  • Workaround for IMAP mailbox import bug.

    The Import function in Mail doesn't work properly with mailboxes created using an IMAP account. It will refuse to import them. After some fiddling, I discovered that's its the mailbox's file extension that chokes the Import function. It expects ".mbox", and IMAP mailboxes have ".imapmbox". The workaround is to manually change the extension on them to ".mbox", and then Import will be able to read them.

    Whew, great tip, thanks!

  • WARNING: workaround for critical clustering bug in OC4J

    I found a workaround for the HTTP clustering bug described in my previous posting of August 16, 2001 "Urgent: serious HTTP clustering bug in OC4J?" (http://technet.oracle.com:89/ubb/Forum99/HTML/000261.html)
    The workaround:
    When adding the <cluster config/> tag in orion-web.xml specify and ID (numeric) with no more than 9 figures. The autogenerated ID is longer (14 figures on my test system)
    and will cause the error.
    Luciano
    null

    burricall wrote:
    ..Did you find a solution?See [this post|http://forums.sun.com/thread.jspa?threadID=5426321&messageID=11001580#11001580].

  • Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Remove the extensions, redownload Safari, reload the extensions.
    http://www.apple.com/safari/download/
    And if you really want a better experience, use Firefox, tons more choices and possibilities there.
    Firefox's "NoScript" will block the Trojan going around on websites. Best web security you can get.
    https://addons.mozilla.org/en-US/firefox/addon/noscript/
    Ghostery, Ad Block Plus and thousands of add-ons more have originated on Firefox.

  • Workaround for not being able to reference a multi-select field in a calculated field?

    Does anyone have a workaround for the fact that SP doesn't allow the use of a multi-select choice field to be used in a calculation in a calculated column?  I have a list that WAS a single choice in a Status field with three other calculated columns
    that were dependent upon that field.  Then I had to change the Status field to be to multi-select (checkboxes). Now of course my calculated columns don't work.  In addition, the end user can't fill them in either.
    I've got a Status field (multi-select), a Status Date field and Expiration Date field (calc).  The expiration date's calculation is shown below.   This worked great until I was asked
    to change the Status field to multi-select.<o:p></o:p>
    =IF(Status="NoI
    Review",DATE(YEAR([Status Date]),MONTH([Status Date]),DAY([Status
    Date])+21),"")<o:p></o:p>
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

    Hi run4it,
    Since SharePoint calculated column cannot reference the choice field with multiple-select value enabled, a workaround is to use workflow to copy the "Status" column value to another single line text column, then reference this single line text column in
    calculated column.
    Thanks,
    Daniel Yang
    Forum Support
    If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • Is there a workaround for the Safari "clickable hidden content" bug?

    Hi,
    I'm encountering a bug in Safari where hidden content (non-visible content hidden with the CSS attribute overflow:hidden) to be clickable. I did some googling and found other people who are having this same problem:
    http://www.dmxzone.com/forum/go/?35908
    http://archivist.incutio.com/viewlist/css-discuss/76660
    http://lists.macosforge.org/pipermail/webkit-dev/2005-November/000496.html
    But no one seems to have a workaround for this. The last post contains a reply by an Apple developer saying he checked in a bug fix for this, but his reply was posted two years ago and I'm still seeing the problem.
    Does anyone know of a workaround for this? Hacks or kludges welcome.
    Cheers,
    -bri
    Message was edited by: omega-

    Hi
    As Safari uses the WebKit structure, you may find an answer to your question at the FreeNode Network. You may also find help at the WebKit Open Source Project.

  • Suggested workaround for list itemrenderer bug?

    Can someone point me in the right direction for a workaround for the problem described as Flex bug 28191:
    https://bugs.adobe.com/jira/browse/SDK-28191
    Steps to reproduce:
    1. Populate a Tree/List with data and provide a custom itemRenderer class factory.
    2. Change the class factory and dataProvider at the same time.
    3. List.createItemRenderer() will crash during since Factory is the key and it has been changed.
                    delete freeItemRenderersByFactory[factory][renderer];
    Actual Results:
    Crash because the renderer can not be found since it does not exist on that factory dictionary since the class factory was changed and the lookup is using the new factory.
    Expected Results:
    Not crash.
    Seems like a race condition, as sometimes during this process it skips that block of code but in other cases it falls into this block and fails.
    I need to change the data provider and item renderer of a tree control at runtime. Is there one or more methods I should run to prevent this? As the bug notes state, this is an intermittent problem. The error occurs here:
    if (factory == itemRenderer)
                if (freeItemRenderers && freeItemRenderers.length)
                    renderer = freeItemRenderers.pop();
                    delete freeItemRenderersByFactory[factory][renderer];

    Thanks. Actually, I have been updating (not setting or changing) the tree's dataprovider, and then changing the classFactory like this:
    processesXML = event.result as XML;
    nodeTreeData.source = processesXML.children();
    if (treeMultiSelect)
    nodeTree.itemRenderer=new ClassFactory(renderers.TreeItemRendererV1);
    nodeTree.allowMultipleSelection = true;
    nodeTree.setStyle("selectionColor", "0xFFFFFF");
    nodeTree.setStyle("disclosureOpenIcon", MinusIcon);
    nodeTree.setStyle("disclosureClosedIcon", PlusIcon);
    else
    nodeTree.itemRenderer=new ClassFactory(mx.controls.treeClasses.TreeItemRenderer);
    nodeTree.allowMultipleSelection = false;
    nodeTree.setStyle("selectionColor", "0x7FCEFF");
    nodeTree.setStyle("disclosureOpenIcon", OpenArrowIcon);
    nodeTree.setStyle("disclosureClosedIcon", ClosedArrowIcon);
    I had tried using validateNow after changing the ClassFactory before but did get the error again. I will try it again but update the data provider after. Since it's an intermittent error I'm finding it hard to know if a fix is really working.

  • Workaround for H264 playback bug on Android?

    We have been doing extensive testing on H264 playback in both FLV and MP4 containers on Android AIR 3.2 / 3.3 (beta 3) for ICS. The process is documented here:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3164920
    Summarized:
    ==========
    Android AIR 3.2 / 3.3 (beta 3) H264 playback (both in FLV and MP4 container) on Android 4 is severely broken.
    Video object (not StageVideo) with H264 content is:
    1) not playing videos consistently ("NetStream.Play.Stop" is triggered to early) so the movie stops before the end is reached. This also happens on Android 3. Note! The bug is not in AIR 3.1.
    2) not supporting filters (video frame is being scaled). Only Android 4 (ICS).
    3) not supporting seeking when video is paused (video frame is not being updated). Only Android 4 (ICS).
    Is there any known workarounds for these bugs?
    Best,
    Bjørn Rustberggard
    Co-founder
    WeVideo

    Hi,
    I just wanted to follow up.  It looks from your bug comments like the issues you experienced in AIR 3.2 have been resolved AIR 3.3.
    Are there any outstanding problems that you're seeing with regard to the issues you've described that we need to look into further for AIR 3.3? 
    Thanks!

  • Workaround for PSE 6 "Exclude photos from category" bug

    PSE 6 Organizer broke the ability to exclude from a search all photos tagged with a category or a tag within that category. Heres a partial workaround:
    Suppose you want to show all photos not tagged with the Places category or a tag within the Places category. In previous versions, youd right-click Places in the Keywords Pane and select Exclude photos with Places category from search results. Thats broken in PSE 6 so instead, do this:
    1. In the Find bar, Show All. (This shows all photos.)
    2. In the Keyword Tags pane, check the box to the left of Places. (This shows only those photos tagged with Places or a tag within the Places category.)
    3. In the Find bar, select Options > Hide Best Match Results and then select Options > Show Results that Do Not Match. (Only photos not tagged with Places or a tag within the Places category will be shown.)
    Unfortunately, you cant combine this workaround with additional search criteria, i.e. all photos without a Places tag and in the date range 1986 2000.
    Thanks much to JonE at Elements Village who suggested this.

    Thomas,
    Yeah, that's the limitation of the workaround.
    Unfortunately, this is still broken in PSE 7. Its ironic that your use-case is precisely the one described in the PSE 6 and 7 User Guides as an example of how to use exclusion.
    The text search box in PSE 7 provides a partial workaround for some uses of exclusion. You can do not places to find photos not yet tagged with any tag in the Places category. You can do not people to find all photos with no tags in the People category. But larry and not people wont find photos containing just Larry and not any other people it excludes all photos with any tag in the People category.
    Another limitation of the text search box is that it matches all the text in the photo tags, categories, captions, notes, etc. So when I search for jasper, I get photos tagged with People > Friends > Jasper as well as Places > Jasper National Park.

  • [svn:fx-trunk] 10526: Temporary workaround for A+ bug SDK-23387.

    Revision: 10526
    Author:   [email protected]
    Date:     2009-09-22 21:48:33 -0700 (Tue, 22 Sep 2009)
    Log Message:
    Temporary workaround for A+ bug SDK-23387.
    The LinkNormalFormat, LinkHoverFormat, and LinkActiveFormat classes have been removed from FXG, and the FXG compiler was autogenerating static vars of these types (for linkage reasons?) that no longer compiled. I've commented out the offending lines in FXGCompiler.java, but we need a correct fix to cope with the fact that the way hyperlinks are formatted in FXG has changed.
    Instead of formatting hyperlinks by writing
    tag) but at least it can once again compile FXG as long as it doesn't involve styled hyperlinks.
    QE notes: None
    Doc notes: None
    Bugs: SDK-23387
    Reviewer: Carol
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23387
        http://bugs.adobe.com/jira/browse/SDK-23387
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FXGCompiler.java

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

Maybe you are looking for