Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Setting a ViewStack.selectedIndex in States   Message List  
Reply | Forward Message #73662 of 150926 |
Re: [flexcoders] Setting a ViewStack.selectedIndex in States

On 5/7/07, Christoph Diefenthal <diefenthal@...> wrote:

> The Problem:
> --------
> There are two state, in which both do the same:
> Set the selectedIndex of a ViewStack to 1.
> But when you execute them one after another. The second to be executed
> always sets the selectedIndex to 0 !

Bug in ViewStack.

Change this line in the selectedIndex setter:

// Bail if the index isn't changing.
if (value == _selectedIndex)
return;

To this:

// Bail if the index isn't changing.
if (value == selectedIndex)
return;

That should do the trick.



Mon May 7, 2007 3:52 pm

manish_jethani
Offline Offline
Send Email Send Email

Forward
Message #73662 of 150926 |
Expand Messages Author Sort by Date

Hello flexcoders! I have had a little break since working with Flex1.5 but now I am back. And I must say: Flex2.0 is great. But there are still some issues...
Christoph Diefenthal
deepenvalley
Offline Send Email
May 7, 2007
3:19 pm

... Bug in ViewStack. Change this line in the selectedIndex setter: // Bail if the index isn't changing. if (value == _selectedIndex) return; To this: // Bail...
Manish Jethani
manish_jethani
Offline Send Email
May 7, 2007
3:54 pm

Thanks Manish, Had the same problem and fixed it according to your instructions. Just applied the recent Hotfix (Hotfix 2) from adobe, this problem is still...
matin_abdullah
Offline Send Email
Jun 11, 2007
12:46 pm

... Gee, if only there was a public bug base you could look at... -- Tom Chiverton Helping to synergistically facilitate market-driven convergence on:...
Tom Chiverton
tom.chiverton
Offline Send Email
Jun 11, 2007
1:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help