ActionScript 3 高级自动完成脚本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ActionScript 3 高级自动完成脚本相关的知识,希望对你有一定的参考价值。

private var autoCompleteDropDownShown:Boolean = false;

/**
		 * Removes filters on the dataprovider so that the whole list can be shown when the AutoComplete
		 * component is clicked. showDropDown on the AdvancedAutoComplete component is called.
		 * If clicked again, hideDropDown is called.
		 */
		public function onClickAutoComplete():void
		{
			if ( organizationList != null )
			{
				organizationList.filterFunction = null;
				organizationList.refresh();
				
				if ( !autoCompleteDropDownShown )
				{
					orgAutoComplete.showDropDown();
					autoCompleteDropDownShown = true;
				}
				else
				{
					orgAutoComplete.hideDropDown();
					autoCompleteDropDownShown = false;
				}
			}
		}

以上是关于ActionScript 3 高级自动完成脚本的主要内容,如果未能解决你的问题,请参考以下文章