A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Loading CSS Style Problem - Need Help

  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    52

    Loading CSS Style Problem - Need Help

    So here is the code I have currently

    Code:
    // ----------<Load CSS>---------- \\
    var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
    
    cssStyles.load("styles/styles.css");
    
    cssStyles.onLoad = function(success) {
    	if (success) {
    		loadedInfo.styleSheet = cssStyles;
    		_level0.myLV.load("vars/ourHistory.txt");
    	} 
    	else {
    		loadedInfo.text = "ERROR: CAN'T LOAD INFO...";
    	}
    }
    // ----------</Load CSS>---------- \\
    Now when I load this, the text box is completely empty, or appears to be that way. When I take everything out except:

    Code:
    _level0.myLV.load("vars/ourHistory.txt");
    my text will show up (unstyled of course).

    Also, if I change the location of the OurHistory.txt file the error message will load for me.

    It's just when it's all together it will not load my CSS styled text. Anyone have a clue to what I am missing? I was thinking there was a spelling error or a typo, but after looking for a long time I couldn't find any. Any help would be greatly apreshiated.

  2. #2
    Member
    Join Date
    Dec 2004
    Posts
    52
    anyone?

    this is really bugging me

  3. #3
    Member
    Join Date
    Dec 2004
    Posts
    52
    bump...

    anyone have a clue?

  4. #4
    Member
    Join Date
    Dec 2004
    Posts
    52
    one more try, I still can't figure it out.

    Can someone please help me, I can pay for your time via paypal

    Thanks,
    Mike

  5. #5
    Member
    Join Date
    Dec 2004
    Posts
    52
    Alright, after a week of working on this, I still can't figure out what I did wrong

    I'm offering $10USD via paypal for anyone who can attempt to help me out on this. I'm surprised no one has even posted in here yet

    Any help will be GREATLY apreshiated and rewarded!

    - Mike

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