JSFL share

  • Published on
    14-May-2015

  • View
    901

  • Download
    3

Embed Size (px)

Transcript

  • 1.JSFLFlash IDE 2012/05/22 EIA

2. EIA https://www.facebook.com/angelliya00 3. Agenda - - Demo - - Tips - - 4. JSFLFlash JavaScript (JavaScript API) 5. Demo JSFL 6. SwapAll 7. NamingInstances 8. SnapToPixel 9. 10. -1 11. -2- Flash - Flash XMPEnable (Flash IDE) Help > Manage Extensions 12. JSFL 13. JSFL DOM 14. Ex: fl.getDocumentDOM().getTimeline().layers [0].frames[0]; 15. flash (fl)fl.closeAll()fl.addEventListener()fl.saveAll()... 16. Document document.close() document.publish() document.save() // document.selectAll() document.selectNone() ... 17. Layer layer.frameCount layer.frames layer.layerType ... 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 });} } 19. Tips 20. 1. / History 21. 2. Git kaede / jsfllib https://github.com/kaede/jsfllib JSFLFlash [] 22. 3. MXPfl.configURI 23. Hello Worldfl.trace("Hello World!!!");fl.outputPanel.trace("Hello World!!!");alert("Hello World!!!"); 24. Flash IDE 25. Alert()confirm()prompt() alert("Hello World!!!"); confirm("Hello World ?");prompt("Hello _____ ?","World"); 26. document.xmlPanel() 27. fl.swfPanels 28. Pakage MXP Extension 29. Pakage MXP Extension .xmi ]]> SWFPanelif(fl.swfPanels[x].name == panelName){fl.swfPanels[x].call("callMySWF",arg);break;}*: swfPanel MMExecute(" fl.runScript(fl.configURI+Javascript/code.jsfl); "); *: fl.runScript(); 32. 33. 1. FrameRate_Transform Resize 34. ex: FPS 3018FrameTimeline 35. fl.getDocumentDOM().exitEditMode();modifyTimelineFrameDuration();var itemNum = fl.getDocumentDOM().library.items.length;for(var i = 0;i