A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Cache as bitmap?

  1. #1
    Member
    Join Date
    Sep 2010
    Posts
    37

    Question Cache as bitmap?

    Hey guys, I've recently started using the cache as bitmap switch on my on-stage movieclips, to great success, while creating my isometric RPG. What I can't grasp though, is how to apply it to AS-instantiated classes/object.

    How can I turn on cacheAsBitmap inside a class that extends movieclip? Alternatively, how can I do it from outside the class, from another class that adds mentioned movieclip to the stage?

  2. #2
    Member
    Join Date
    Apr 2010
    Posts
    87
    Actionscript Code:
    var mc:MovieClip = new MovieClip();
    mc.cacheAsBitmap = true;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center