Search code examples
actionscript-3flash-cs5jsfl

How to trace the code that written in a .fla file on the Actions panel with jsfl?


Is there a way to reach the code that is on Actions panel in a flash file with jsfl?

Thank you guys alot for any help.


Solution

  • When you have a Frame object you access the actionScript property. See this link

    Example code taken from there, which adds stop(); to the first frame of the first layer on the timeline

    fl.getDocumentDOM().getTimeline().layers[0].frames[0].actionScript = 'stop();';
    

    If you want to change the AS of a symbol, you should first get its timeline by symbolItem.timeline