The problem is solved. There is no need to workaround. The problem was in the tab section of the screenset file and not in select startup layers section. Here is a simple example. If you have in between of the tabs ( with parent layer 1 ) other tabs with other parent layers, when you save the screenset file with selected layer 3 at startup on the layer 3 you'll see layer 21 or 22 overlaped. I think that the select startup layers section is related to the tab section.
- Code: Select all
//Add tabs to main screen
AS3.Addtab("", "Arial", "center",24, 0,70, 25, 84, 26, 31, 2, 1);
AS3.Addtab("", "Arial", "center",24, 0,480, 419, 130, 26, 33, 21, 2);
AS3.Addtab("", "Arial", "center",24, 0,610, 419, 130, 26, 34, 22, 2);
AS3.Addtab("", "Arial", "center",24, 0,166, 27, 161, 26, 92, 3, 1);
If you put the layer 21 and 22 after all layers with parent layer 1 in the tab section, when you save the screenset file with selected layer 3 at startup you'll see layer 3 and works like expected.
- Code: Select all
//Add tabs to main screen
AS3.Addtab("", "Arial", "center",24, 0,70, 25, 84, 26, 31, 2, 1);
AS3.Addtab("", "Arial", "center",24, 0,166, 27, 161, 26, 92, 3, 1);
AS3.Addtab("", "Arial", "center",24, 0,480, 419, 130, 26, 33, 21, 2);
AS3.Addtab("", "Arial", "center",24, 0,610, 419, 130, 26, 34, 22, 2);
Hope this is useful.