1 Reply Latest reply on Aug 12, 2008 8:20 PM by Yorgo Sun

    problem on embed flash symbol

    Neon2302
      Dear all,

      I'm try to embed flash symbol in to flex project, but I'm facing with a problem

      The first part of the code is work well, any way I don't want the whole flash in my project. I want symbol
      The second part of the code is error the error is

      Severity and Description Path Resource Location Creation Time Id
      definition for symbol 'Circle' not found TestImportFlash/src TestImportFlash.mxml line 6 1217864835546 97
      Severity and Description Path Resource Location Creation Time Id
      Unable to transcode ../style/Circle.swf. TestImportFlash/src TestImportFlash.mxml line 6 1217864835546 98

      my flash file already have the "Circle" symbol in the file. Anyone know the way to solve this problem please give me some advise


      another question is, what is the best practice if I prefer to make an object which attached with symbol, should I do AS in Flex by embed symbol, or should I use Flash and export to ActionScript, or else?

      Best Regards,

      Chet Chetchaiyan
        • 1. Re: problem on embed flash symbol
          Yorgo Sun
          you can try to export symbol to .swc from flash. import it using "libary path" setting in Flex.

          import object must use UIComponent to show in Flex

          demo code bellow..

          _boboIndex = new boboIndex();
          var ui:UIComponent = new UIComponent();
          addChild(ui);
          ui.addChild(_boboIndex);