Expand my Community achievements bar.

Unable to set a local variable from value in a shared property.

Avatar

Former Community Member

Hello Experts,

I want to set a local variable from a shared property so that i can use this variable further also if the shared property value changes.

i am using setting it like,

private function ondatachange(event:SharedPropertyEvent):void

{

var localShared:String = _sharedProperty1.value;

_sharedProperty.value = "";

Alert.show( localShared);// it is coming to be empty/blank

}

please help me in right direction

Regards

Amit

2 Replies