We help IT Professionals succeed at work.
Get Started

automate find replace export

jcsfrei asked
Last Modified: 2012-05-05
Hi all
I have a big collection of .fla files. Many of them have links to a special path on an actionscript in a button, through a window.open javascript call like window.open('../../../directory/file.htm')
But now I must change this path in all files to something like window.open('../directory/file.htm'). Unfortunately, I cant change the directory hierarchy to avoid changing the fla files.
Is there a way to automate this task?
I´ve read a few lines about jsfl, that you can see the history of your actions and so, but find/replace commands don't appear in history. Then I got lost in a huge api.
Using jsfl or even plain actionscript, is there a way of looping through all fla files in a given path, replace all ocurrences of the javascript call in each file and then export the swf of the modified fla, saving the files, instead of doing all this by hand? If possible, can you give any directions, hints, code snipets?
Best regards, JC
Watch Question
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE