2 Replies Latest reply on Sep 20, 2010 12:11 AM by springframework

    How do I mix javascript with actionscript?

    springframework Level 1

      I have an HTMLLoader object instance inside an .mxml class.

       

      I specifically want to call jquery functions from inside an .mxml or .as file and have the jquery execute on the content inside the HTMLLoader.

       

       

      here is some non-working code that will maybe explain more of what i want to do:

      [as]

      <fx:Script>

      <![CDATA[

       

      ldr = new HTMLLoader();

      //...load page and add to stage

       

      <script src="js/jquery-1.3.1.min.js" type="text/javascript" charset="utf-8"></script>

       

      $(ldr.window.document.getChildById("id")).performJQueryFunc{

           //stuff i want to do.

      }

       

      ]]>

      </fx:Script>

      [/as]

       

       

      I don't know if this is even possible but I really hope I can do such a thing.