UIScrollBar Breaks CSS Formatting

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default UIScrollBar Breaks CSS Formatting

    :confused;
    Hi people. I'm trying to load some CSS-formatted HTML text into a text field
    in Flash MX 2004. I've managed to assign the external stylesheet to the text
    area using Actionscript, and get the text itself from an external file. The
    text display fine. However, when I add a UIScrollBar component to the text
    area, all the CSS text formatting disappears and the text reverts to default
    settings.

    Incidentally, I had to load the text into the text area, THEN use actionscript
    to add the UIScrollBar in the next frame, otherwise the scrollbar wouldn't work
    at all. Not sure if this has any bearing on my problem.

    Anyone else come across this and know of a workaround?

    Cheers,

    Alex Drinkwater
    Goldsmiths College London

    Alex Drinkwater, Goldsmiths College Guest

  2. Similar Questions and Discussions

    1. UIScrollBar with dynamic text field
      I have a dynamic text field that I want to add a UIScrollBar to. The dynamic text field has an rssreader attatched to it so it is reading from an...
    2. FMS breaks at over 2 GB
      I'm using the latest version of FMS trying to do a basic stream of a 2+ GB file. At anything over 2 GB it plays for 1.5 seconds or so then freezes...
    3. mx.controls.UIScrollBar is not visible on IE 6.0.2900
      Hi there, I am having a problem when I view a .swf movie that I published for flash player 7 and have deployed to a web server using IE 6.02. The...
    4. Page Breaks
      The website that i work on has a page which is updated by several users with a CMS (not Contribute). This page is then printed off each day by a...
    5. css buttons - formatting text breaks alignment ?
      Okay, the first thing I see is that you haven't declared a DOCTYPE in your web page. This causes modern browsers to revert to "quirks mode," meaning...
  3. #2

    Default Re: UIScrollBar Breaks CSS Formatting

    Hey Alex,

    I'm not sure why you need 2 frames. I hear you saying you loaded the data
    into a text area? Is that a component Text Area or just a regular text field.
    Try this and see if it works,

    Only thing, remember to drag a copy of the TextArea component onto your stage
    and delete it.
    Also, if this works, you may ant to not use the text field unless you are
    looking for a transparent background for the info. And there is a way around
    that also.




    createObject("TextArea", "field1_ta", 100);
    with(field1_ta) {
    setSize(200, 50);
    _x = 0;
    _y = 0;
    html = true;
    vScrollPolicy = "auto";
    styleSheet = {your stylesheet};
    text = {your CSS formatted text};
    }

    conquerors04 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139