hello,

I am a beginner into flex, and in Flash, so I ask you to tolerate me!
here is my problem: I want to show the use of flash components into flex. So I 
first created a symbol in flash, then I exported it for flex by clicking the 
right item in flash.
Then, I ran flex, I entered the .swc in the library path of my new project, and 
I entered this code:

  package {

      import flash.display.MovieClip;

      import flash.display.Sprite;


      public class pont_flash_flex_2 extends Sprite

      {

          public function pont_flash_flex_2()

          {

              [Embed(source='sans_nom_3.swc',symbol='occu_mon_symbole')]

              var ClasseSymbole:Class;


              var ma_classe:MovieClip=new ClasseSymbole();

              addChild(ma_classe);

          }

      }

  }

Here is the error message:


  'sans_nom_3.swc' does not have a recognized extension, and a mimeType was not 
provided pont_flash_flex_2/src pont_flash_flex_2.as line 9 1251140352156 15


and:


  Unable to transcode sans_nom_3.swc. pont_flash_flex_2/src 
pont_flash_flex_2.as line 9 1251140352156 16


Here is my question: is this code right?

in this case, the error comes from the flash part (creation of the symbol, 
maybe its occurence's name).

thank you,



lolveley.

Reply via email to