0
votes

I am a freshman for actionscript. I get some code from others and get confused on some syntax.

private static var _337833930conversationStartTimeList:ArrayList;
private static var conversationStartTimeList:ArrayList;

Whether these two represent same variables or different variables?

I think these should be the different ones but the get and set functions seem also work for the former one.

Does anybody help me to explain why is that and better to give me some references for further study.

Thanks

    public static function get conversationStartTimeList() : ArrayList
    {
        return GeneralManager._337833930conversationStartTimeList;
    }// end function

    public static function set conversationStartTimeList(param1:ArrayList) : void
    {
        var _loc_3:IEventDispatcher = null;
        var _loc_2:* = GeneralManager._337833930conversationStartTimeList;
        if (_loc_2 !== param1)
        {
            GeneralManager._337833930conversationStartTimeList = param1;
            _loc_3 = GeneralManager.staticEventDispatcher;
            if (_loc_3 !== null)
            {
                _loc_3.dispatchEvent(PropertyChangeEvent.createUpdateEvent(GeneralManager, "conversationStartTimeList", _loc_2, param1));
            }
        }
        return;
    }// end function
1

1 Answers

0
votes

These two have different names and they are declared in two separate statements - why would you think they are anything but two separate variables?