This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dom = fl.getDocumentDOM(); | |
var items = dom.library.getSelectedItems().concat(); | |
var i = 0; | |
for each(var item in items){ | |
i ++; | |
dom.library.addItemToDocument({x:0,y:0},item.name); | |
var arr = item.name.split("/"); | |
var symbol = dom.convertToSymbol("movie clip",arr[arr.length-1],"top left"); | |
symbol.linkageExportForAS = true; | |
symbol.linkageExportInFirstFrame = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.extend | |
myplugin: (options) -> | |
self = $.fn.myplugin | |
opts = $.extend {}, self.default_options, options | |
$(this).each (i, el) -> | |
self.init el, opts | |
self.log el if opts.log | |
$.extend $.fn.myplugin, | |
default_options: |