Metin Ilhan
Metin Ilhan

Reputation: 120

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.

Upvotes: 0

Views: 135

Answers (1)

RasmusWL
RasmusWL

Reputation: 1593

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

Upvotes: 1

Related Questions