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

  • SEARCH
  • Home
  • 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 4025356
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:50:12+00:00 2026-05-20T10:50:12+00:00

Background: I am writing a flash game and have encountered a problem. I have

  • 0

Background:

I am writing a flash game and have encountered a problem.
I have been using Polygonal’s AS3 Data Structures (http://code.google.com/p/polygonal/wiki/DataStructures) without any issues.

I have recently added SmartFoxServer 2X support to the game (http://www.smartfoxserver.com/). As soon as I import the SmartFox SWC file, I get runtime errors on “new LinkedQueue()” calls indicating an incompatible override.

Anyway, I filed a bug with Polygonal and it turns out that SmartFox is using an old version of his data structures and have included it in their SWC file.

My question:

Considering that all I have is two SWC files, is there some way I can force on of them into a different namespace? this would allow me to use the new version alongside smartfox’s old version.

  • 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-20T10:50:13+00:00Added an answer on May 20, 2026 at 10:50 am

    Yes, if it’s really important, and you want to spend the time, it’s possible to modify the package in the swc by changing the swf and catalog inside.

    Here’s a sample AIR project using SWFWire Decompiler:

    public class SWFWireCompiler extends Sprite
    {
        public function SWCEditor()
        {
            stage.nativeWindow.activate();
    
            var bytes:ByteArray = getBytes('library.swf');
    
            var swfReader:SWFReader = new SWF10Reader();
            var readResult:SWFReadResult = swfReader.read(new SWFByteArray(bytes));
            readResult.swf.header.signature = SWFHeader.UNCOMPRESSED_SIGNATURE;
    
            for each(var tag:SWFTag in readResult.swf.tags)
            {
                var abcTag:DoABCTag = tag as DoABCTag;
                if(abcTag)
                {
                    for each(var string:StringToken in abcTag.abcFile.cpool.strings)
                    {
                        if(string.utf8 == 'de.polygonal.ds')
                        {
                            string.utf8 = 'de.polygonal.ds.old';
                        }
                    }
                }
            }
    
            var swfWriter:SWFWriter = new SWF10Writer();
            var writeResult:SWFWriteResult = swfWriter.write(readResult.swf);
    
            writeBytes('C:\\output.swf', writeResult.bytes);
        }
    
        private function getBytes(file:String):ByteArray
        {
            var bytes:ByteArray = new ByteArray();
            var stream:FileStream = new FileStream();
            stream.open(File.applicationDirectory.resolvePath(file), FileMode.READ);
            stream.readBytes(bytes);
            stream.close();
            return bytes;
        }
    
        private function writeBytes(filename:String, bytes:ByteArray):void
        {
            var file:File = new File(filename);
            var fs:FileStream = new FileStream();
            fs.open(file, FileMode.WRITE);
            fs.writeBytes(bytes);
            fs.close();
        }
    }
    

    You would then have to do a find/replace in catalog.xml, then repackage it.

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

Sidebar

Related Questions

I'm from a Windows programming background when writing tools, but have been programming using
Background I am writing a simple online judge (a code grading system) using PHP
Background I'm writing application for android, using Eclipse in Windows. I'm implementing C code
BACKGROUND I'm writing a little game using Java, slick2d and other frameworks. Slick2d does
A little background: I'm writing a small word based maze game starting with a
I've been writing a background service which enforces my client's security policies on company
(I'm Coming from a C# background writing iPhone apps with MonoTouch) I have a
Background I am writing code in VS 2010, .NET 4, C#. Also, in case
Background: I'm writing ASP.NET MVC 3 Web app. I have a List<MyObject> (actually several
BACKGROUND I'm writing a method that will (eventually) take as input a System.Data.DataTable and

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.