ninja captain

flex, cake, and other fun stuff
  • Home
  • About me

Archive

Posts Tagged ‘automatic’

Draw A Quick Stage Border in Flash

July 9th, 2009 Adam 1 comment

Here’s a quick way to automatically add a border to your flash stage without drawing an actual object and resizing it. I use this snippet alot.

1
2
3
4
var stagebox:Sprite = new Sprite();
stagebox.graphics.lineStyle(1, 0x000000, 1);
stagebox.graphics.drawRect(0, 0, stage.stageWidth-1, stage.stageHeight-1);
addChild(stagebox);
Categories: actionscript, flash Tags: actionscript, automatic, border, flash, sprite, stage
RSS
  • Google
  • Youdao
  • Xian Guo
  • Zhua Xia
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha

Random Posts

  • Using Javascript DOM to Get Elements But Exclude Children
  • Making Flex scale when resized
  • Loading TIFF Images in Flex and AIR
  • DataGrid Row Height and Padding
  • Draggable Panel (with close button)

Tag Cloud

aboutflex.net actionscript amplitude automatic beta bookmark bar border brownian chrome component crx custom datagrid datagriditemrenderer default.dll dev DOM draggable draw enterFrame explosion extend flash flex frequency getElementsByTagName google gray grey motion movement panel particle plot random row silver sine skin sprite stable stage theme validatenow wave

Categories

  • actionscript
  • air
  • flash
  • flex
  • javascript
  • misc

Archives

  • May 2012
  • June 2011
  • May 2011
  • April 2010
  • March 2010
  • February 2010
  • October 2009
  • August 2009
  • July 2009
  • August 2008
  • June 2008

Meta

  • Log in
Top WordPress
Copyright © 2008-2012 ninja captain
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.