Skip to content

Instantly share code, notes, and snippets.

@yurfuwa-chan
yurfuwa-chan / gist:1366909
Created November 15, 2011 12:01
ライブラリのアイテムをMovieClipの変換してクラスもつける
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;
@jimeh
jimeh / jquery.myplugin.coffee
Created April 7, 2011 23:44
Example jQuery plugin written in CoffeeScript, and the resulting compiled JavaScript file.
$.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: