Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1074549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:08:35+00:00 2026-05-16T21:08:35+00:00

See Title. I’d do it by hand but there are 200+ .fla files that

  • 0

See Title.

I’d do it by hand but there are 200+ .fla files that have been centered in the middle of the stage that I then load into AS3 (Flash Builder 4).

Thanks for the help.
Jono

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:08:37+00:00Added an answer on May 16, 2026 at 9:08 pm

    You could offset the content once it’s loaded, straight from as3,
    but here’s the jsfl:

    var dir = fl.browseForFolderURL("select fla folder");//open a folder
    var files = FLfile.listFolder(dir,"files");//get the files (note: NOT recursive!)
    var filesNum = files.length;
    fl.outputPanel.clear();
    for(var i = 0 ; i < filesNum; i++){
        if(files[i].substr(files[i].lastIndexOf(".")+1) == 'fla'){//look for fla's
            var doc = fl.openDocument(dir+'/'+files[i]);
            //do whatever to your document here
            doc.selectAll();
            doc.group();
            doc.align('top', true);
            doc.align('left', true);
            doc.unGroup();
            doc.selectNone();
            fl.saveDocument(doc);
            fl.closeDocument(doc,false);
            fl.trace(files[i]+' done');
        }
    }
    fl.trace('all done!');
    

    Luckily you’re using CS5, so should be fine. If you’re using a previous version, replace fl.saveDocument() with fl.saveAndCompact(), as I experienced a bug there.

    Note that it prompts for a folder containing fla files, but it doesn’t step through neste folders.

    If the fla. files aren’t very complex, it should be fine, otherwise, you might encounter some errors when Flash has enough.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See title. I have a template. I want to force a particular instance of
See title. I have: class Foo { private: Foo(); public: static Foo* create(); }
The title say's almost all. What I have is short lived server processes that
The title of the question says it all. I have been researching SHA-1 and
See title. By lightweight markup I mean something like markdown or wikitext.
See title: what does it mean for a C++ function to be inline?
In Visual Studio's Attach to Process dialog I can see a Title column for
Just as the title says, I see a lot of editors touting macro recording
Update: this question, including the title, was rephrased, see history for details I know
I have a jquery bug and I've been looking for hours now, I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.