PDA

Click to See Complete Forum and Search --> : Library export tags - anyone nailed this ?



nmain
11-21-2000, 04:05 AM
Trying to figure out the Flash 5 Import/Export tags. Below is a simple flash movie that exports a movie clip (sprite) that contains a rect and a nested sprite containing a rect.

Question - why does Flash redefine the exported sprite (id=4) as another sprite (id=5) ? Tag 56 is obviously the "export" tag - but why does it appear once for sprite 4 and twice for sprite 5 ?? Is this a bug in Flash ?

I removed sprite 5 and the two extra tag-56's and the importing movie still worked. So why the extra sprite and duplicate exports ?

Has anyone completely figured out the import/export tags yet ?



<?xml version="1.0" ?>
- <swf length="262" rate="12" version="5" xml:space="preserve">
<rect max-x="11000" max-y="8000" min-x="0" min-y="0" />
- <frame>
- <set-background>
<color blue="255" green="255" red="255" />
</set-background>
- <define-shape id="1">
<rect max-x="410" max-y="310" min-x="-410" min-y="-310" />
- <shape>
- <fill-style>
<color blue="204" green="102" red="0" />
</fill-style>
- <line-style width="20">
<color blue="0" green="0" red="0" />
</line-style>
<change fill-style-1="1" line-style="1" move-x="-400" move-y="-300" />
<line dx="800" dy="0" />
<line dx="0" dy="600" />
<line dx="-800" dy="0" />
<line dx="0" dy="-600" />
</shape>
</define-shape>
- <define-shape id="2">
<rect max-x="410" max-y="310" min-x="-410" min-y="-310" />
- <shape>
- <fill-style>
<color blue="0" green="255" red="255" />
</fill-style>
- <line-style width="20">
<color blue="0" green="0" red="0" />
</line-style>
<change fill-style-1="1" line-style="1" move-x="400" move-y="300" />
<line dx="-800" dy="0" />
<line dx="0" dy="-600" />
<line dx="800" dy="0" />
<line dx="0" dy="600" />
</shape>
</define-shape>
- <sprite id="3">
- <frame>
- <place-object-2 character-id="2" depth="1">
<matrix scale-x="1.0" scale-y="1.0" skew-0="0.0" skew-1="0.0" translate-x="0" translate-y="0" />
</place-object-2>
</frame>
</sprite>
- <sprite id="4">
- <frame>
- <place-object-2 character-id="1" depth="1">
<matrix scale-x="1.0" scale-y="1.0" skew-0="0.0" skew-1="0.0" translate-x="0" translate-y="0" />
</place-object-2>
- <place-object-2 character-id="3" depth="2">
<matrix scale-x="1.0" scale-y="1.0" skew-0="0.0" skew-1="0.0" translate-x="0" translate-y="900" />
</place-object-2>
</frame>
</sprite>
<tag length="8" long="true" tag="56">AQAEAEZvbwA=</tag>
- <sprite id="5">
- <frame>
- <place-object-2 character-id="1" depth="1">
<matrix scale-x="1.0" scale-y="1.0" skew-0="0.0" skew-1="0.0" translate-x="0" translate-y="0" />
</place-object-2>
- <place-object-2 character-id="3" depth="2">
<matrix scale-x="1.0" scale-y="1.0" skew-0="0.0" skew-1="0.0" translate-x="0" translate-y="900" />
</place-object-2>
</frame>
</sprite>
<tag length="8" long="true" tag="56">AQAFAEZvbwA=</tag>
<tag length="8" long="true" tag="56">AQAFAEZvbwA=</tag>
- <place-object-2 character-id="5" depth="1" name="Bar">
<matrix scale-x="1.0" scale-y="1.0" skew-0="0.0" skew-1="0.0" translate-x="3400" translate-y="2300" />
</place-object-2>
</frame>
</swf>