A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flash Lite 3.1 and CSS

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    4

    Flash Lite 3.1 and CSS

    Hello everybody,

    I need to style my text on my mobile device with CSS.
    Luckily Flash Lite 3.1 is supporting CSS.

    Is it similar to:
    Code:
    var my_styleSheet:StyleSheet = new StyleSheet();
    my_styleSheet.onLoad = function(success:Boolean) {
    ...
    }
    my_styleSheet.load("styles.css");
    What I am doing: Loading an XML File into a textfield, and I wanna use CSS to decorate my text in the textfield.

    Could anybody help me )
    I could not find any good code examples in the wordwideweb
    I need your help ...
    Thanks a lot

  2. #2
    Junior Member
    Join Date
    Jul 2006
    Posts
    28
    var my_styleSheet:StyleSheet = new StyleSheet();
    my_styleSheet.onLoad = function(success:Boolean) {
    //here
    textfield.stylesheet = my_styleSheet;
    //that will apply styles to your textfield if the html formatting is on
    }
    my_styleSheet.load("styles.css");

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