Skip to main content
DJ Gecko
Inspiring
August 14, 2009
Answered

Does [Embed(source="assetname")] work in Flash or just Flex?

  • August 14, 2009
  • 1 reply
  • 923 views

Does [Embed(source="assetname")] work in Flash or just Flex?

Thanks!

This topic has been closed for replies.

1 reply

DJ Gecko
DJ GeckoAuthor
Inspiring
August 14, 2009

I'm trying to do something like this in flash.

  1. [Embed(source="assetname.swf")]
  2. private var AssetClass:Class;
    Thanks!
Correct answer
August 14, 2009
DJ Gecko
DJ GeckoAuthor
Inspiring
August 14, 2009

Thanks for the link.  But that sucks.  When I import a mp3 file into the flash library there is a slight delay when it loops.  But if I bring in a AIFF file into the library and let Flash encode it then there is no delay.  I was hoping to not have to have Flash encode my music loops every time I test my game.  Many game sites don't want external assets, everything has to be in one swf.  I could load external swfs with linked music loops, but like I said, most game sites want everything in one swf.  I wish Adobe would either fix this very old loop bug or allow the flash IDE to use Embed : (