Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package
  2. {
  3.         import mx.containers.Canvas;
  4.        
  5.         import spark.components.Button;
  6.        
  7.         public class MyComponentClass extends Canvas
  8.         {
  9.                 [Bindable]
  10.                 public var myButton:Button
  11.                
  12.                 public function MyComponentClass()
  13.                 {
  14.                         super();
  15.                 }
  16.                
  17.                 protected function changeLabel():void {
  18.                         myButton.label = "Changed";
  19.                 }
  20.         }
  21. }