Kineticz Interactive

  • Archive
  • RSS
  • Ask me anything

JSFL command: Get Asset Names

Whenever I code ActionScript projects in FlashBuilder I usually need to disable the option to automatically declare stage instances in the Flash IDE. This is so I can specify the the variable names in the class that a library item is associated with. One irritation with that was going back and forth between the Flash IDE and FlashBuilder to write out all the stage instances and data types. About 2 years ago I wrote this JSFL script to handle outputting all that data so I can copy it into Flash Builder easily. Last year while working with the guys from Blitz Agency they took it and made it even better.

What you get now is a simple command that will get all the assets on stage and will then copy the list to your clipboard for easy pasting into your FlashBuilder class in the following format:
public var {INSTANCE_NAME} : {DATA_TYPE};

It loops through the items and tries to find them in the library, if a class is associated to it then you will get the exact data type, if no class is assigned it will output as MovieClip or TextField.

Download the latest version here:
http://code.kineticz.s3.amazonaws.com/jsfl/Get_Asset_Names.zip


    • #flash
    • #flashbuilder
    • #jsfl
  • 2 years ago
  • Permalink
  • Share
    Tweet

About

kineticz interactive specializes in all facets of web and mobile development.

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr