<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why does ByteArray writeObject/readObject rotate a graphic? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/why-does-bytearray-writeobject-readobject-rotate-a/m-p/447471#M10359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The offending code (startGrfx is of type com.esri.ags.Graphic):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var ba0:ByteArray = new ByteArray();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ba0.writeObject(startGrfx);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ba0.position = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var endGrfx:Graphic = ba0.readObject();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resulting graphics transform is shown in the attached jpg (symbology is not preserved as well).[ATTACH=CONFIG]17382[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some exceptions traced to the console that I haven't carved into yet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e42c2b1 to com.esri.ags.symbols.Symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e42e731 to mx.managers.IFocusManager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0569 to flash.display.DisplayObjectContainer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0569 to mx.styles.IAdvancedStyleClient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0761 to flash.geom.Transform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #2007: Parameter child must be non-null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e5b81a9 to flash.media.SoundTransform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0761 to flash.geom.Transform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 16:56:32 GMT</pubDate>
    <dc:creator>DirkVandervoort</dc:creator>
    <dc:date>2012-08-30T16:56:32Z</dc:date>
    <item>
      <title>Why does ByteArray writeObject/readObject rotate a graphic?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/why-does-bytearray-writeobject-readobject-rotate-a/m-p/447471#M10359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The offending code (startGrfx is of type com.esri.ags.Graphic):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var ba0:ByteArray = new ByteArray();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ba0.writeObject(startGrfx);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ba0.position = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var endGrfx:Graphic = ba0.readObject();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resulting graphics transform is shown in the attached jpg (symbology is not preserved as well).[ATTACH=CONFIG]17382[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some exceptions traced to the console that I haven't carved into yet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e42c2b1 to com.esri.ags.symbols.Symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e42e731 to mx.managers.IFocusManager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0569 to flash.display.DisplayObjectContainer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0569 to mx.styles.IAdvancedStyleClient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0761 to flash.geom.Transform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #2007: Parameter child must be non-null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e5b81a9 to flash.media.SoundTransform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@e4f0761 to flash.geom.Transform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/why-does-bytearray-writeobject-readobject-rotate-a/m-p/447471#M10359</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2012-08-30T16:56:32Z</dc:date>
    </item>
  </channel>
</rss>

