Announcement

Collapse
No announcement yet.

Having Trouble With ViewStack and ButtonBar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Found what I needed in the API docs

    Code:
    newObject = GetVariableObject('_root.MainViewStack', className);
    Code:
    // inside newObject
    GetObject('currentView');

    Leave a comment:


  • started a topic Having Trouble With ViewStack and ButtonBar

    Having Trouble With ViewStack and ButtonBar

    I've got this ui screen that basically has 3 buttons in a buttonbar, each button is linked to it's own Symbol in a ViewStack

    Actionscript2:
    Code:
    MenuButtonBar.dataProvider = [
    	{label:"Test1", data:"Test1View"},
    	{label:"Test2", data:"Test2View"},
    	{label:"Test3", data: "Test3View"}
    ];
    How do I get reference to the instantiated views? It has the "AS Linkage" set up appropriately but always returns null.


    UC:
    Code:
    Test1View = GetVariableObject("_root.Test1View");

    I also tried this:
    Code:
    GetVariableObject("_root.MainViewStack.currentView");
Working...
X