This content has been marked as final. Show 4 replies
did you try to use states ?
in your main Application just do...
this.enabled = false;
If you don't want a grey haze over everything set the Applications disabledOverlayAlpha="0.0"
Thanks for ur replies, if I use the solution would make all the elements in tht application disabled with a gray out,i know i mentioned this as requrement but it is a little different, i want a couple of elements to be active and the rest inactive/disable, these disable elements would then become active on some action performed on the defualt couple of active elements.
This is the final required thing.
Regarding, the state solution, i tried that but with state you can add the canvas like compo to make a mojor gray out area,but it does not come above it, it takes up the palce of other elements.Means it does not come over it instead it gets included with it.
Please correct me,if i was wrong.
Looking for more support
are all your components in the same mxml file ?
if yes you can define the default state where all the components to be disabled have the enabled property set to false.
You define a second state based on the default state with the enabled property set to true.
Then by changing the currentState property of the mxml component at runtime you get it. (if I understand correctly what you want !)
May be you could give some code example...