0

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.

Metin Ilhan
  • 120
  • 10

1 Answers1

1

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

RasmusWL
  • 1,573
  • 13
  • 26