3 Replies Latest reply: Apr 12, 2012 1:49 AM by _spoboyle RSS

    printjob not working for android?

    ddhiru Community Member

      Hi Folks,

       

      I have a web application, wherein i am using Printjob class to print my flash content over the connected printer.

       

      While browsing the application on web browser (desktop) it opens a print dailog box which is fine, but same application while browsing from android devices is not working..

       

      I am publishing the content using less than the 10.2 version of the flash player.

       

      any idea??

       

      Thanks in advance.!!

       

       

      Below is the code:

       

      import flash.printing.PrintJob;
      import flash.display.Sprite;
      import flash.events.MouseEvent;
        
      var myPrintJob:PrintJob = new PrintJob();
      var mySprite:Sprite = new Sprite();
      mySprite.graphics.beginFill(0x336699);
      mySprite.graphics.drawCircle(100, 100, 50);
      addChild(mySprite);
      
      
      function BasicPrintExample()
      {
        if (myPrintJob.start())
        {
        try
        {
        myPrintJob.addPage(mySprite);
        }
        catch (e:Error)
        {
        // handle error 
        }
        myPrintJob.send();
        }
      }
      bt.addEventListener(MouseEvent.CLICK, btnClickHandler)
      
      
      function btnClickHandler(evt)
      {
        BasicPrintExample()
      }