Hello,all.

    I am studding SWF's file format now,there have a question about a
struct's parameter. I don't know how to use it!
    In SWF's SDK,page 106,a Struct GRADIENT like this:

---------------------------------------------------------------------------------------------
GRADIENT
Field                   Type                                   Comment
---------------------------------------------------------------------------------------------
NumGradient       nGrads = UI8                       1 to 8
GradientRecords  GRADRECORD[nGrades]     Gradient records(...)
---------------------------------------------------------------------------------------------

from this information ,I think the NumGradient's value must be a 8 bit
unsigned integer,between 0 to 255. it is the GradientRecords array's
count. But why the Comment write '1 to 8'? What's the mean?
I got it from a SWF file's source code,the value is 176,from the SDK
file,I knew the GradientRecord record information about ratio and
RGB(RGBA),each used 4 or 5 bytes,the shape which I got only have 62
bytes,if the NumGradient is the count of GradientRecords array
really,the shape must larger than 176*4(or 5) Bytes.
I think maybe I had any error about this parameter.Can you help me?


Sorry for my english,it's too >_<!!!!
but I am studding it hard...
Thanks!

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to