This content has been marked as final. Show 6 replies
Finally managed to get some text to appear in the tiles. Now I can see that the problem is the way I've set the styles for the tiles.
At their initial appearence the tiles should all be identical, so I thought I could do this:
and so on, but the new tiles do not pick up these styles.
How then do you preset the styles required?
I don't know what other styles you're setting, but "height" is not a style, it's a property on each component. You have to set it when you create the component. eg. mytile.height = 150;
Otherwise, setting styles the way you described works fine for me.
Yes you're right, the problem is the heights and widths are set as styles and so don't work.
I've set them as properties and now they work fine, but I still can't get the Tiles to pick up the styles correctly. As a test I've set cornerRadius to 8, but all the tiles have square corners. On the other hand, I've set borderStyle to outset and this produces a plain gray line all around the tile with a scrollbar inside the bottom.
All the tiles are created after this line.
I am testing to see what strange effects are produced by the other styles.
Okay the scrollbar was my fault, but how can I make the outset look more natural?
And I still don't get rounded corners.
Is your background white? Then the default outset border might look like a grey line cause the white highlights don't show up. Try setting borderColor to something else. And rounded corners work only when borderStyle="solid".
Oh yes you're right. Pity I have to choose between rounded corners and outset. It would have looked best with both.
Thanks again for all your help.
And now that a lot of the basic stuff is working, I just must say that the results with Flex and AS3 are just totally stunning. Absolutely unbelievable. This is brilliant stuff. Anyone who is designing stuff for the web and not using Flex is missing out on some pure magic.