A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Constant Pool Tags

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    1

    Constant Pool Tags

    Hi all-

    I'm a programmer working on a project which must be able to parse SWF files. I am having trouble with the "Constant Pool" action. First, the Flash 6 file format document from Macromedia says the action simply contains a "string." That clearly isn't correct, as it doesn't match the Constant Pool action in the SWF file I'm testing against.

    Next, every bit of publicly available code I've seen parses this action as containing a 16 bit "count" value, followed by that many strings. This is closer to the truth, as the actual action in my test file does begin this way. However, following this is a series of other bytes which don't parse correctly and appear to be garbage.

    My questions are:

    -- is "Constant Pool" really defined this way?
    -- if so, what could account for the data immediately following the "Constant Pool" action?

    I can supply the test SWF file, and the .fla it came from, if that would help.

    Thanks for your time,

    Bob Bell

  2. #2
    Super Moderator
    Join Date
    Jun 2000
    Posts
    3,512
    I recommend that you look at the Ming code. I have found it most helpful in understanding difficult tags.

  3. #3
    caithness massiv
    Join Date
    May 2000
    Location
    denver
    Posts
    1,672
    aside from the strings (i assume you're seeing those anyway) i think i remember something about there also being a byte0 and byteN thrown in there as well.... i didn't quite get it either because the count value is all you really need with the constantPool ( already knowing the tag length, knowing the actual byteN of the strings isn't necessarily better imho )

  4. #4
    caithness massiv
    Join Date
    May 2000
    Location
    denver
    Posts
    1,672

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center