Type-Not- Found Error for a type not in File!

I am currently getting Error 1046: Type was not found or was not a compile-time constant: HTMLLoader.

The main problem I am having is that I removed all references to HTMLLoader earlier (because I know HTMLLoader only works with AIR). I don’t know why I am still getting this error.

This is my code:


package 
{
    import com.swfjunkie.tweetr.Tweetr;
    import com.swfjunkie.tweetr.data.objects.StatusData;
    import com.swfjunkie.tweetr.events.TweetEvent;
    import com.swfjunkie.tweetr.utils.TweetUtil;
    
    import com.swfjunkie.tweetr.oauth.OAuth;
    import com.swfjunkie.tweetr.oauth.events.OAuthEvent;
    
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.filters.DropShadowFilter;
    import flash.text.StyleSheet;
    import flash.text.TextField;
    

    public class newone extends Sprite 
{
 
        public function newone()
        {
            //ViewSource.addMenuItem(this, "srcview/index.html");
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            init();
        }
        /**
         * @private
         * Initializes the instance.
         */
        private function init()
        {
            oauth = new OAuth();
            oauth.consumerKey = "yydFeOifgvJqu54rr9F1nA";
            oauth.consumerSecret = "58ACu8fw0HTkxj3gx7MfxavTCaY5GfJ0TuxCWlncohc";
            oauth.callbackURL = "http://www.creamandtwosugars.net/tweetr/verified.html";
            oauth.pinlessAuth = true;
            
            oauth.addEventListener(OAuthEvent.COMPLETE, handleOAuthEvent);
            oauth.addEventListener(OAuthEvent.ERROR, handleOAuthEvent);
            
            oauth.getAuthorizationRequest();
            
            tweetr = new Tweetr();
            tweetr.serviceHost = "labs.swfjunkie.com/tweetr/proxy";
            
            tweetr.addEventListener(TweetEvent.COMPLETE, handleTweetsLoaded);
            tweetr.addEventListener(TweetEvent.FAILED, handleTweetsFail);
                
            tweetr.getPublicTimeLine();
        }
        
        private var tweetr:Tweetr;
        private var oauth:OAuth;
/**
         * @private
         * Show a Tweet
         */ 
        private function showTweet(tweet:StatusData):void
        {
            var bg:Sprite = new Sprite();
            bg.graphics.lineStyle(1, 0x888888,1,true);
            bg.graphics.beginFill(0,.4);
            bg.graphics.drawRoundRect(0, 0, 350, 200, 15, 15);
            bg.graphics.endFill();
            bg.filters = [new DropShadowFilter(7, 45, 0, .6, 4, 4, 1, 1)]; 
            
            /*var styles:StyleSheet = new StyleSheet();
            styles.setStyle(".tweet", {color: "#FFFFFF", fontFamily: "Georgia", fontSize: "12"});
            styles.setStyle(".age", {fontStyle: "italic", fontSize: "10"});*/
            
            var textField:TextField = new TextField();
            textField.width = 310;
            textField.wordWrap = true;
            textField.multiline = true;
            textField.text = tweet.text;
            
            bg.height = (textField.height < 100) ? 120 : textField.height + 20;
            bg.x = stage.stageWidth/2 - bg.width/2;
            bg.y = stage.stageHeight/2 - bg.height/2;
            textField.x = bg.x + 20;
            textField.y = bg.y + 20;
            
            addChild(bg);
            addChild(textField);
        }

private function handleTweetsLoaded(event:TweetEvent):void
        {
            var tweet:StatusData = event.responseArray[0] as StatusData;
            showTweet(tweet);
        }
        
        private function handleTweetsFail(event:TweetEvent):void
        {
            trace("ERROR: "+event.text);
        }
        
        private function handleOAuthEvent(event:OAuthEvent):void
        {
            
            if (event.type == OAuthEvent.COMPLETE)
            {
                // removes the authentication window
                //stage.nativeWindow.close();
         
                tweetr.oAuth = oauth;
         
                // prints username, user id and the final tokens
                trace(oauth.toString());
            }
            else
            {
                trace("ERROR: "+event.text);
            }
        }
    }
}

I am trying to use the Tweetr library in this project.

Please, I’d appreciate any help I can get on this. I’d like to finish this project by tomorrow. Thanks!