0 Replies Latest reply on Sep 17, 2009 4:46 PM by Henry.K

    How? Flex pass variables or call function in SWF

    Henry.K

      Dear All:

      I am new in Flex.

      But I stuck with a problem for weeks.

       

      I wish to communication between Flex and Flash(swf).

      I tried to pass variable from Flex to Swf. (Call function in Swf also pass variables)

       

      I did some tourital on google by using SWFLoader, which works fine.

      BUT the AS code in SWF must in MAIN FRAME.

       

      I need put my AS code by using DOCUMENT CLASS.

       

      BUT when I using Document class, the method is not working.

      The flex cannot find function in Flash.

       

      PS.I already set main.as class as public

       

      Hope some one can give some hint.

       

      I really get a huge headache.

       

      Many thanks,

      Henry