Skip to main content
Inspiring
August 4, 2014
Question

Trouble closing a .swf file.

  • August 4, 2014
  • 0 replies
  • 291 views

Hello,

I'm currently working on a script that loads a swf file in the ScriptUI panel.  If I reload the same swf file or load a different swf file while the original is playing, it continues to play even if I remove it from the panel.

The code works correctly while in the ESTK, but in After Effects it continue to play. Here's the code:

////remove the old swf

if(myPanel.video) {

  myPanel.videoArea.remove(myPanel.video);

  }

Any ideas on how to get the original file to stop playing after or before it's removed?

Thanks for your help!

-T

This topic has been closed for replies.