Skip navigation
Currently Being Moderated

Wierd JSFL bug found in CS6

Oct 16, 2013 12:49 PM

Tags: #flash #cs6 #jsfl

So I've been struggling with this wierd bug.  Basically we have this JSFL script that we use to tag our assets in our FLAs (like, this is a "chair" or a "door", etc...).  We decided to move the metadata from stage instances (which use the Element.setPersistentData() method) to the library items themselves (which use the Item.addData() method).  This works under certain circumstances, but I'd like to share the wierdness to see if anyone else has experienced this.


When you open an FLA and start tagging, everything works while you still have it open.  You can re-add metadata using the libraryItem.addData("tag", "string", "chair") function, remove it, and all that fancy stuff.  However, once you close the file and reopen it, any changes you made are now lost.


The wierd bug I found is that this only happens if you save the file normally, or if you use "Save As..." under the CS6 format.  If I save as a CS5.5 document, the metadata I'm using will persist when I open/close the FLA.  The other wierd thing is that the CS6 file can in fact save the persistent data, it just doesn't save your latest changes (basically if you save CS5.5, then immediately save again with CS6 it works because you saved it as a different format at least once).


Has anyone experienced this before or has any solutions that I should try?  I'm testing this on other machines to see if it's only my computer that has this issue, but if anyone has any ideas I'd be happy to hear them.  I'm currently using Adobe Flash Professional CS6 v12.0.2.529 to write these scripts.

  • Currently Being Moderated
    Oct 17, 2013 3:29 AM   in reply to Bakedbeans

    Hi Bakedbeans,


    The issue that your facing exists on CS6 . However on the lastest Flash CC , this bug is not found . The metadata that has been added to the library items are preserved .




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points