Skip navigation
MulticastManiac
Currently Being Moderated

Declaring Embed in actionscript breaks swf

Aug 27, 2013 11:47 AM

Tags: #problem #actionscript #flex-4.6 #4.6 #embedding_images

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);

          } 

     }

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points