Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all articles
Browse latest Browse all 70427

Declaring Embed in actionscript breaks swf

$
0
0

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 ?

    publicclassTestEmbedextendsSprite{

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

      privatevar embeddedImage :Class; 


     publicfunctionTestEmbed(){

          var mBall1:Bitmap=new embeddedImage()asBitmap;

          addChild(mBall1);

          } 

     }


Viewing all articles
Browse latest Browse all 70427

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>