More Related Content Similar to JSFL share (20) JSFL share15. flash 物件 (fl)
fl.closeAll()
fl.addEventListener()
fl.saveAll()
...
18. Frame 物件
frame.actionScript
frame.duration
...
for(var f in layer.frames){
if (f==layer.frames[f].startFrame){
keyframes.push({
frame:layer.frames[f],
index:f
});
}
}
21. 2. Git kaede / jsfllib
https://github.com/kaede/jsfllib
JSFLではじめるFlash制作自動化入門 [単行本]
23. 第一個 Hello World
fl.trace("Hello World!!!");
fl.outputPanel.trace("Hello World!!!");
alert("Hello World!!!");
29. Pakage MXP Extension
.xmi
<macromedia-extension
name=""
version="0.2.3"
requires-restart="true"
type="suite">
<author name="EIA" />
<products>
<product name="Flash" version="7" />
</products>
<description>
<![CDATA[]]>
</description>
<ui-access>
<![CDATA[]]>
</ui-access>
<files>
<file source="FrameRate_Transform.jsfl" destination="$flash/Commands" />
</files>
</macromedia-extension>
30. file
<files>
<file source="callSample.jsfl" destination="$flash/Javascript" />
<file source="05_01.swf" destination="$flash/WindowSWF" />
</files>
$flash (fl.configURI)
/Users/apple/Library/Application Support/Adobe/Flash
CS5.5/en_US/Configuration/
31. JSFL <-> SWFPanel
if(fl.swfPanels[x].name == panelName){
fl.swfPanels[x].call("callMySWF",arg);
break;
}
*: swfPanel
MMExecute("
fl.runScript(fl.configURI+'Javascript/code.jsfl');
");
*: fl.runScript();
41. function jsflSetFillColor($color){
var rect = fl.getDocumentDOM().getSelectionRect();
if(rect != 0){
document.setSelectionRect(rect);
fl.getDocumentDOM().setFillColor($color);
}
}
function jsflStrokeColor($color){
fl.getDocumentDOM().setStrokeColor($color);
}
43. Links
擴充 Adobe Flash CS4 Professional
http://help.adobe.com/zh_TW/Flash/10.0_ExtendingFlash/
DOM 結構摘要
http://help.adobe.com/zh_TW/Flash/10.0_ExtendingFlash/WS359E0FA7-1DA9-4c9b-
8AE3-CFED6B6B11CE.html
Git- kaede / jsfllib
https://github.com/kaede/jsfllib