[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] Re: SERIALNUMBER - tag 41 (0x29) in SWF6 LFC

From: Henry Minsky
Subject: [Gnash-dev] Re: SERIALNUMBER - tag 41 (0x29) in SWF6 LFC
Date: Wed, 14 Feb 2007 16:50:47 -0500

I see this code in the JGenerator library, in


     * Writes content of this script to flash buffer
     * <P>
     * This method has to be used only if this script is main script.
     * @param fob    flash buffer to write
     * @see #isMain
     * @see #write
    public void generate( FlashOutput fob ) {
        int frameCount = timeline.getFrameCount();
        fob.writeWord( frameCount );

        // collect fonts and make sure there is only one instance of each font
        FontsCollector fc = new FontsCollector();
        collectFonts( fc );

        // Create a slot for license key first
        int licenseLen = 32;
        fob.writeTag( Tag.SERIALNUMBER, licenseLen );
        for (int i=0; i < licenseLen; i++)
            fob.writeByte( 0x78 ); // x

        // write background color
        if( bkgColor != null ) bkgColor.write( fob );

        mergeFonts( fc.getFonts() );

        // generate timeline in right order (definitions first)
        timeline.generate(fob, new DepsCollector(fc));

        Tag.END_TAG.write( fob );

But I don't see this getting used in the OpenLaszlo 4 branch, at least there's no
SERIALNUMBER tag in the app that gets compiled, according to swfdump.

On 2/14/07, strk <address@hidden> wrote:
LFC6.lzl, targetted at SWF6 contains the 'SERIALNUMBER' tag (41).
I don't think it is valid for an SWF6 file.
Anyway, can you tell me what the encoding is for this tag ?


Henry Minsky
Software Architect

reply via email to

[Prev in Thread] Current Thread [Next in Thread]