A Bit of Random Code

Posted by Zu on May 21, 2007 in Flex |

42.7 percent of all statistics are made up on the spot.

We use lots and lots of naming conventions (or at least try to) at work.

I found this little piece of code that might help me(and maybe you) sometime in the future. To have it handy when it’s needed i’ll put it here for my personal reference:


<script>   
<!–DATA[

 private function linkHandler(event:MouseEvent):void
{   
var url:URLRequest = new URLRequest("http://finance.yahoo.com/q/cq?d=v1&s=" + event.target.label);   
navigateToURL(url);
}   
]]>;
</script>

….

<linkbutton label=”ADBE”></linkbutton>
<linkbutton label=”GE”></linkbutton>
<linkbutton label=”HD”></linkbutton>
<linkbutton label=”IBM”></linkbutton>
<linkbutton label=”INTC”></linkbutton>

Leave a Reply

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2007-2010 Xrum! Blog... All rights reserved.
Desk Mess Mirrored v1.5.1 theme from BuyNowShop.com.