/// <summary> /// Creates a new instance of ObjectManager. /// </summary> /// <param name="socket">The socket used to communicate with Flash.</param> public ObjectManager(FlashSocket socket, System.Windows.Forms.Control controlForThread) { m_requests = new Hashtable(); m_flatcache = new FlashObjectCollection(); m_rootnode = new FlashObject("_root", FlashObject.ObjectType.MovieClip); m_globalnode = new FlashObject("_global", FlashObject.ObjectType.Object); m_flatcache.Add(m_rootnode); m_flatcache.Add(m_globalnode); m_threadcontrol = controlForThread; m_socket = socket; m_socket.DataRecieved += new FlashSocket.DataRecievedHandler(socket_DataRecieved); }
/// <summary> /// Creates a new instance of FlashObject. /// </summary> private FlashObject() { m_properties = new FlashObjectCollection(); m_parent = null; m_treenode = new TreeNode(); m_treenode.Tag = this; m_treenode.Nodes.Add(new TreeNode("Loading...")); }