xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="checkChildType()">
[Bindable]
private var s:String;
[Bindable]
private var t:String;
public function checkChildType():void {
var child:DisplayObject = vg1.getChildAt(0);
var childClassName:String = getQualifiedClassName(child);
var childIsButton:Boolean = childClassName == "spark.components::Button"
s = "child class name = Button (" + childIsButton + ")";
t = "child is " + childClassName;
}