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 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

Some background: I'm writing a policy-based smart pointer (like SmartPtr in the Loki library),
Background: So i'm writing a web-service style web application as a way to increase
I'm writing a UDP client-server pair for a networks class, and I have hit
Background: We have a ClickOnce-deployed WPF app, that talks to WCF Services, which in
I'm writing an application that validates login credentials on an external webserver - so
I'm writing app for android device, which is simple download manager. I want to
I just started writing a live wallpaper. What I would like to do is
I need to implement a simple spill to disk layer for large volume of
What is the stackoverflow approved (and hence correct) method to force a VBS to

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.