Hello lolveley,

I am a beginner as well, I use sometimes flash files into my flex proyects
and I just drag and drop the swf in to my flex panel and it works, I hope I
can help you, Good Luck!




2009/8/26 lolveley <[email protected]>

>
>
> hello,
>
> I have already send this message but there's no answer, so I try a new
> time, it's oimportant for me but I can't find any help in forums nor
> tutorials.
> I am a beginner into flex, and in Flash, so I ask you to tolerate me!
> here is my problem: I want to study the use of flash components into flex.
> So I first created a symbol in flash, put one instance of this symbol in a
> FLA file, and , 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.
>
> 
>



-- 
Jorge Hernández Martínez
Electro-Acoustic & Telecommunication Engineer
+34 605 132572

Reply via email to