<?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 Re: FLEX - Problem with the released version in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/flex-problem-with-the-released-version/m-p/8803219#M1680365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Daniel Ruiz wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Imported to SAP? - I cannot understand this statement.. Do you have an HTML wrapping the SWF?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a&amp;nbsp; release version of my project in FLEX. Then I created a BSP application and imported all the "release" files as MIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Daniel Ruiz wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt; Also, it seems your onCompleteHandler is trying to use and access properties of a null object. When you work with Events you must ensure your handler will be in a usable state when you dispatch the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Everything is working fine in my debug version, I'm quite sure the problem is with the bulkloader lib.&lt;/P&gt;&lt;P&gt;Here's the coding for it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;BulkLoader.removeAllLoaders()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var loaderbulk: BulkLoader = new BulkLoader("pdf");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( String(xmlDetail.PIC_APPL) , {id:"APPL", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( String(xmlDetail.PIC_EINZ) , {id:"SING", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( String(xmlDetail.PIC_PACK) , {id:"PACK", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( barcode , {id:"BARCODE", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.addEventListener(BulkLoader.COMPLETE, onComplete);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.start();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;function onComplete(evt : Event) : void{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;//var image1:Image = new Image;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var myBmpData:BitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var myByteArray:ByteArray;;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var bmp:Bitmap;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var encoder:JPEGEncoder = new JPEGEncoder ( 100 );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var bytes:ByteArray;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("APPL");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, null,15,30,30 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("SING");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, null,80,30,30 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("PACK");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, null,145,30,30 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("BARCODE");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, new Resize ( Mode.NONE, null ),340,110,50 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; Alert.show("Do you want to save?","Save",Alert.YES | Alert.NO ,SINGLE_BLOCK,handleAlert,null)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2012 08:44:14 GMT</pubDate>
    <dc:creator>michael_fallenbchel</dc:creator>
    <dc:date>2012-07-24T08:44:14Z</dc:date>
    <item>
      <title>FLEX - Problem with the released version</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flex-problem-with-the-released-version/m-p/8803217#M1680363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a FLEX-project. Everything's working fine - until my actual "version".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added some libs (alivePDF, bulkloader, fzip) to my application, which is working fine in the debug version. I have exported a release version, which is working fine in some SWF-Debugger (SWiX), too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have imported it to SAP (as before with the previous versions), but my new added functions only show this problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.&lt;/P&gt;&lt;P&gt; at MethodInfo-856()&lt;/P&gt;&lt;P&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/P&gt;&lt;P&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/P&gt;&lt;P&gt; at br.com.stimuli.loading::BulkLoader/_onAllLoaded()&lt;/P&gt;&lt;P&gt; at br.com.stimuli.loading::BulkLoader/_onItemComplete()&lt;/P&gt;&lt;P&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/P&gt;&lt;P&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/P&gt;&lt;P&gt; at br.com.stimuli.loading.loadingtypes::LoadingItem/onCompleteHandler()&lt;/P&gt;&lt;P&gt; at br.com.stimuli.loading.loadingtypes::ImageItem/onCompleteHandler()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the German version, should be&amp;nbsp; "Error #1009:Cannot access a property or method of a null object reference."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what can be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flex-problem-with-the-released-version/m-p/8803217#M1680363</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2012-06-19T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: FLEX - Problem with the released version</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flex-problem-with-the-released-version/m-p/8803218#M1680364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imported to SAP? - I cannot understand this statement.. Do you have an HTML wrapping the SWF?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it seems your onCompleteHandler is trying to use and access properties of a null object. When you work with Events you must ensure your handler will be in a usable state when you dispatch the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe if you provide parts of the code where the issue happens others may help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 02:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flex-problem-with-the-released-version/m-p/8803218#M1680364</guid>
      <dc:creator>daniel_ruiz2</dc:creator>
      <dc:date>2012-07-24T02:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: FLEX - Problem with the released version</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/flex-problem-with-the-released-version/m-p/8803219#M1680365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Daniel Ruiz wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Imported to SAP? - I cannot understand this statement.. Do you have an HTML wrapping the SWF?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a&amp;nbsp; release version of my project in FLEX. Then I created a BSP application and imported all the "release" files as MIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Daniel Ruiz wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt; Also, it seems your onCompleteHandler is trying to use and access properties of a null object. When you work with Events you must ensure your handler will be in a usable state when you dispatch the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Everything is working fine in my debug version, I'm quite sure the problem is with the bulkloader lib.&lt;/P&gt;&lt;P&gt;Here's the coding for it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;BulkLoader.removeAllLoaders()&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var loaderbulk: BulkLoader = new BulkLoader("pdf");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( String(xmlDetail.PIC_APPL) , {id:"APPL", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( String(xmlDetail.PIC_EINZ) , {id:"SING", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( String(xmlDetail.PIC_PACK) , {id:"PACK", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.add( barcode , {id:"BARCODE", type:BulkLoader.TYPE_IMAGE});&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.addEventListener(BulkLoader.COMPLETE, onComplete);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;loaderbulk.start();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;function onComplete(evt : Event) : void{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;//var image1:Image = new Image;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var myBmpData:BitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var myByteArray:ByteArray;;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var bmp:Bitmap;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var encoder:JPEGEncoder = new JPEGEncoder ( 100 );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var bytes:ByteArray;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("APPL");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, null,15,30,30 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("SING");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, null,80,30,30 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("PACK");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, null,145,30,30 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = new ByteArray;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bmp = loaderbulk.getBitmap("BARCODE");&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myBmpData = bmp.bitmapData;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myByteArray = bmp.bitmapData.getPixels(myBmpData.rect);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;bytes = encoder.encode ( myBmpData );&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myPDF.addImageStream( bytes, ColorSpace.DEVICE_RGB, new Resize ( Mode.NONE, null ),340,110,50 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; Alert.show("Do you want to save?","Save",Alert.YES | Alert.NO ,SINGLE_BLOCK,handleAlert,null)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 08:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/flex-problem-with-the-released-version/m-p/8803219#M1680365</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2012-07-24T08:44:14Z</dc:date>
    </item>
  </channel>
</rss>

