3 Replies Latest reply on Dec 19, 2011 9:16 AM by drkstr_1

    Embed image generated with PHP (Source in post)

    xandout Level 1

      I am trying to embed images from a php file into my flex web page. 


      Unfortunately I don't think that the image has a file name.


      The Image is accessed like this http://localhost/bc2.php?number=125-558&quality=100&width=200&height=100


      http://www.brandonchecketts.com/archives/quick-php-script-to-generate-a-barcode  That is the php code I am using.



      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"


                                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">




                                    protected function button1_clickHandler(event:MouseEvent):void


                                              // TODO Auto-generated method stub

                                              navigateToURL(new URLRequest("/bc2.php?number=" + code.text + "&quality=100&width=200&height=100"));






                          <!-- Place non-visual elements (e.g., services, value objects) here -->


                <s:Button x="111" y="262" label="Button" click="button1_clickHandler(event)"/>

                <s:TextInput id="code" x="115" y="216"/>









      eventually I will be calling the php with an ID from MySQL as 'number'.


      This is just a sandbox to get it working in.