# Accessing ViewStack index with actionScript

**URL:** <https://forum.kirupa.com/t/accessing-viewstack-index-with-actionscript/266382>\
**Category:** Uncategorized\
**Created:** [July 19, 2008, 4:02am UTC](https://forum.kirupa.com/t/accessing-viewstack-index-with-actionscript/266382 "2008-07-19T04:02:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matches](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/matches/32/3206_2.png) [@matches](https://forum.kirupa.com/u/matches)\
**Post date:** [July 19, 2008, 4:02am UTC](https://forum.kirupa.com/t/accessing-viewstack-index-with-actionscript/266382/1 "2008-07-19T04:02:24Z")

</div>

Hello,

I am trying to show the second index of my ViewStack via ActionScript. Basically a user logs in in the first index and will be “redirected” (for lack of a better word) to the second index of the VewStack. Currently I am just showing a different state (I have attached the code).

Thanks for any help

```auto

if(evt.result.loginsuccess == "yes")	
			{	
				currentState = "Logged In";
				
			}

```
