Is it possible to define a generic type Vector in Actionsctipt 3?

前端 未结 6 2064
遇见更好的自我
遇见更好的自我 2021-02-08 22:04

Hi i need to make a VectorIterator, so i need to accept a Vector with any type. I am currently trying to define the type as * like so:

var collection:Vector.<         


        
6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 22:37

    [Bindable]
    public var selectedItems:Vector.;
    
    public function selectionChange(items:Vector.):void
    {
        selectedItems = Vector.(items);
    }
    
        

    提交回复
    热议问题