bennyxqg / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

Need a getSprite() method #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a SWF with a document class that extends Sprite
2. Load it with BulkLoader
3. Try to get it with any of the typed getter methods

What is the expected output? What do you see instead?
The get fails since there is no get with type of Sprite.  On getContent() 
works.  For convenience, a 
getSprite() would be nice.

What version of the product are you using? On what operating system?
rev 239, Flash 10

Please provide any additional information below.
public function getSprite(key:String, clearMemory:Boolean = false):Sprite {
    return (_getContentAsType(key, MovieClip, clearMemory)) as Sprite;
}

Added this to my copy...works great.

Original issue reported on code.google.com by drukepple@gmail.com on 1 Apr 2009 at 7:37

GoogleCodeExporter commented 9 years ago
Fixed as of revision 260, thanks drukepple!

Original comment by debert on 26 Apr 2009 at 3:24