0 Replies Latest reply on Jan 22, 2012 4:35 AM by skant

    Importing Class

    skant

      Hello,

       

      I'm trying to import a Class in Flash Builder 4.5 for PHP and it's don't work.

       

      I have this:

       

       

      <s:Application xmlns:d="http://ns.adobe.com/fxg/2008/dt"

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

                                       xmlns:s="library://ns.adobe.com/flex/spark"

                                       xmlns:components="components.*"

          width="320" height="480" backgroundColor="#FFFFFF" preloaderChromeColor="#FFFFFF">

       

                <fx:Style source="Main.css"/>

                <fx:Script>

       

                          <![CDATA[

                     import com.logosware.utils.QRcode.GetQRimage;

                                    import mx.events.FlexEvent;

       

                                    protected function button2_clickHandler(event:MouseEvent):void

                                    {

                               var activarCamera:QRcode = new QRcode ();

                                                        activarCamera.GetQRimage ();

         

                                              }

       

                                     }

       

                          ]]>

       

                </fx:Script>

       

       

      I have an error in QRcode and GetQRimage,

      but I hace imported in import com.logosware.utils.QRcode.GetQRimage;

       

      The message error is the folowign:

      1046: Type was not found or was not a compile-time constant: QRcode.

      1180: Call to a possibly undefined method QRcode

       

      What's wrong?

      I tried to add this class in Flex Build Path but always the message is the same:

      The specified path is invalid

       

      Any suggestion?

       

      thanks,

      best regards,

      Critian