Comments(0) » | Add Comment » | Permalink » | Blog Home Page » Blog Post
Tags: actionscript programming technical flash flex Flex/Actionscript CSS Percentage Height & Width
Ran into this particular issue several times as I was working on a little Flex Video Player app. Within the mx tag you can specify height and width of components as a percentage number that includes the % sign.
But if you end exporting some of the styles you apply to an external CSS page, then you can't specify style spec like:
height: 100%;
width: 100%;
Nor can you specify as such:
percentageHeight: 100%;
percentageWidth: 100%;
Although mx tags allow you to specify height and width in px or % format, the CSS spec is a little more picky unfortunately. So here's the correct syntax that will save you lot of headache I suppose:
percentageHeight: 100;percentageWidth: 100;
This'll be recurring problem for me from time to time for sure. So I should etch this into this blog for sure.
Comments