actionscript 3 - Embedded Image not Adding to Stage -


so have image i'm trying embed use sprite sheet. problem receiving no errors @ all, image can't added stage. it's nothing being loaded @ all.

i using flash cs 5.5 compiler. here code:

public class game extends movieclip {     [embed(source='../assets/images/sprite_sheet_1.png')]     private var sheetclass:class;     private var sheet:bitmap = new sheetclass();      public function game() {         addchild (sheet);     } } 

i've tried fiddling x , y values make sure nothing covering , can't see problems that, either. it's not showing up. don't understand why it's not working intended. aid fantastic. thanks!

p.s. - i'm trying embed sprite sheet because recommended better route using urlloaders, true? true because talking sprite sheets smallish flash game?

you need check checkbox called "export swc" under publish settings. i'm not sure of exact phrasing because don't have same version of flash have.

see this page , this page


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -