stargatesg1
05-23-2008, 01:13 AM
Trying to convert this function so i can put it in a class
//To change views need to call this function//
public function goToViews(view:String):void
{
if(view == "dash")
{
this.myViewStack.selectedChild=this.dashboard;
}
}
Here is what i was trying to convert it to
//To change views need to call this function//
public function goToViews(view:String,vstk:ViewStack,viewComponent :Comp):void
{
if(view == "dash")
{
//this.myViewStack.selectedChild=this.dashboard;
vstk.selectedChild=viewComponent.toString();
}
} // End goTOViews
But i am not sure what object type viewComponent should be that is all..
//To change views need to call this function//
public function goToViews(view:String):void
{
if(view == "dash")
{
this.myViewStack.selectedChild=this.dashboard;
}
}
Here is what i was trying to convert it to
//To change views need to call this function//
public function goToViews(view:String,vstk:ViewStack,viewComponent :Comp):void
{
if(view == "dash")
{
//this.myViewStack.selectedChild=this.dashboard;
vstk.selectedChild=viewComponent.toString();
}
} // End goTOViews
But i am not sure what object type viewComponent should be that is all..