Flex 复制内容到粘贴板 Set System Clipboard

Categories: Flex; Tagged with: ; @ October 16th, 2010 12:02

Use:  System.setClipboard(lastShortUrl);

直接Call时, 报错:

Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
    at flash.system::System$/setClipboard()

只好加一个"复制"按钮, 在ButtonHandler中set clipboard – 不友好啊不友好…

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.