13.07.2015 Views

Quicktime File Format (2012-08-14).pdf

Quicktime File Format (2012-08-14).pdf

Quicktime File Format (2012-08-14).pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Some Useful Examples and ScenariosAdding Wired Actions To a Flash TrackWhat You Need to ModifyFor defineButton2, you need to modify or add the following fields: file length, action records offset, theaction offset, the condition, the record header size portion, and add action record.<strong>File</strong> LengthA 32-bit field in the SWF file header.RecordHeader for the defineButton2RecordHeader contains the tag ID and length. You need to update the length. Note that there are short andlong formats for record headers, depending on the size of the record. The tag ID for defineButton2 is 34.ActionRecordsOffsetThe action records offset, a 16-bit field, is missing from the SWF <strong>File</strong> <strong>Format</strong> Specification. It occurs betweenthe flags and buttons fields. It is initially set to 0 if there are no actions for the button. If there are actions forthe button, then it must contain the offset from the point in the SWF file following this 16-bit value to thebeginning of the action offset field.DefineButton2 =HeaderButtonIDFlagsActionRecordsOffset(this is missing from the spec)ButtonsButtonEndFlagButton2ActionCodeActionOffsetConditionAction[ActionRecords]ActionEndFlag<strong>2012</strong>-<strong>08</strong>-<strong>14</strong> | © 2004, <strong>2012</strong> Apple Inc. All Rights Reserved.348

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!