• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Declaring Embed in actionscript breaks swf

New Here ,
Aug 27, 2013 Aug 27, 2013

Copy link to clipboard

Copied

I am compiling action-script project using Flex SDK 4.6 and when I declare following in my class file it compiles and generates swf file just fine . But where swf is embedded when I right click it shows "Movie Not Loaded" . I am not even using it yet in actionscript declaration itself breaks swf . What can be causing this ?

    public class TestEmbed extends Sprite {

     [Embed(source="swf_images/TestImage.png")]

      private var embeddedImage : Class; 


     public function TestEmbed() {

          var mBall1:Bitmap = new embeddedImage() as Bitmap;

          addChild(mBall1);

          } 

     }

Views

448

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines