Trying to convert this function so i can put it in a class
Code:
//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
Code:
//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..