arpit / openpyro

An open source framework for ActionScript3 based applications
http://openpyro.org
MIT License
40 stars 5 forks source link

Setting Slidepane selected index to any value before the component is initialized triggers slide animation #20

Open arpit opened 15 years ago

arpit commented 15 years ago

Example:

var vs = new ViewStack() vs.addChild(child1) vs.addChild(child2); vs.selectedIndex = 0;

triggers the slide animation. The default slideIndex should be the top one, but if the selectedIndex is set immediately, that view should immediately appear and not slide in.