A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: why does CSS in Flash suck so bad and are there any extensions/classes to improve it?

  1. #1
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508

    why does CSS in Flash suck so bad and are there any extensions/classes to improve it?

    sorry for the long title BUT seriously! Why does Flash/AS3 even support CSS at all since it does such a poor job of it! It doesn't even make it to supporting CSS2, and 3 is right around the corner. And the subset it does support in CSS1 is laughable. Ok, done venting. Does anyone know of a way to improve it's performance or a custom class that will do a better job of parsing and manipulating CSS in AS3?

    Thanks!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Because flash doesn't need css as bad as html does, imho.

    gparis

  3. #3
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    who said anything about NEED...let's talk about WANT. I would like a CSS file to do the lion share of my formatting for me. Big benefit. Unfortunately, the support sucks in Flash. It's amazingly useful. I don't want to have to hand-code all my text formatting because CSS isn't supported well. This is a serious deficiency. If they are going to support it at all, they should at least do it justice, or not even bother. Right now, it's the illusion of support.

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    there's a little bit of css support and a little bit of html support, which is more than what i need when i use Flash. If i realize i need more css/html, i'll think that maybe Flash isn't the best medium, so i'll use another, like html. If i need server-side, i'll use php, and if i need some video-style effects, i'll use AE, etc. My point being that the medium is only a tool. And, as in the previous post, my point is my own opinion, that's all.

    gparis

  5. #5
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    yeah, that's cool...I'm not chastising you for your opinion, our needs are just different. I need some extensive formatting of text in Flash and it's supported poorly. Actually, my needs aren't even extensive, they are actually pretty basic (<p>, <span>, <ul>, <li>, and a couple others, along with the respective formatting of "padding", "margin", use of id's and classes would be nice)...not complicated stuff, very basic. You would think someone would've run into this problem, maybe Flex developers or something, and would've had to have written their own class to support CSS. Some text-heavy app.

  6. #6
    var x:Number = 1; x /= 0;
    Join Date
    Dec 2004
    Posts
    549
    You could write yourself a class to do it if you need it that bad.
    Z¡µµ¥ D££

    Soup In A Box

  7. #7
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Actually most of what you listed you need already exists. Either html tags or css properties equivalents.

    gparis

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