플래시에서 클립보드 사용

문자열을 넘겨주면 이를 사용자 컴퓨터의 클립보드에 복사하고 v2 Alert component를 통해 사용자에게 클립보드에 복사된 문자열리 무엇인지 알려준다.

function copyToClipboard(str:String) {
	System.setClipboard(str);
	var alertString = 'String \''+str+'\' has copied to your clipboard.\n';
	alertString +='To paste, press \'ctrl + v\'.';
	mx.controls.Alert.show(alertString, 'Information');
};