0 Replies Latest reply on Aug 24, 2009 8:37 AM by aaronb2

    Help with understanding ApplicationBackground?


      I have been searching for some information on the default Application.backgroundImage and have not turned up much.  What I want to do is get to the bitmapdata from the backgroundImage so I can put it in as a  Papervision background?


      What I have is


                   var g:Graphics = backgroundSprite.graphics;
                  var imageClass:Class = null;
                  var imageObject:Object = null;


                  imageObject = cs.getStyle("backgroundImage");
                  imageClass = Class(imageObject);

                  backgroundImageAsApplicationBackground = new imageClass() as ApplicationBackground; 
                  if (backgroundImageAsApplicationBackground) {
                      //alpha = cs.getNumber("backgroundAlpha",DEFAULT_BACKGROUND_ALPHA);