Flash Builder: Changing BorderContainer color during runtime.

I got myself in a mess trying to change the background color of the component during runtime and after different trial and error finally I figured out that it had to do with this declaration:

[as]

[/as]

Once removed I was able to use

[as]this.setStyle(“backgroundColor”,0x00afe1);[/as]

I don’t really understand why having the backgroundFill declaration within the body of the component, it would affect the behavior to the point that I wasn’t able to change the color of the object but when I find the explanation I will for sure post it here.

WordPress Custom Type loop

With the upcoming version of WordPress 3 (available in beta as of today) here is a tip of how to pull the custom types in the loop once you have created them.

[php]

Recent News

    < ?php $recentPosts = new WP_Query(); $recentPosts->query($query_string . ‘&post_type=news’);
    ?>
    < ?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>

  • Posted on Categories WordPress