Question
getClipboardContents
I use next code:
public function doPaste():void
{
var ts:TextScrap = SelectionManager(_textFlow.interactionManager).getClipboardContents();
SelectionManager(_textFlow.interactionManager).pasteTextScrap(ts);
}
and i got security error:
SecurityError: Error #2179: Объект Clipboard.generalClipboard может считываться только при обработке события flash.events.Event.PASTE.
at flash.desktop::Clipboard/getObjectReference()
at flash.desktop::Clipboard/convertNativeFormat()
at flash.desktop::Clipboard/getOriginal()
at flash.desktop::Clipboard/getData()
at flashx.textLayout.edit::TextClipboard/get textScrap()
at flashx.textLayout.edit::SelectionManager/getClipboardContents()
Sorry, it is russian
any ideas?
public function doPaste():void
{
var ts:TextScrap = SelectionManager(_textFlow.interactionManager).getClipboardContents();
SelectionManager(_textFlow.interactionManager).pasteTextScrap(ts);
}
and i got security error:
SecurityError: Error #2179: Объект Clipboard.generalClipboard может считываться только при обработке события flash.events.Event.PASTE.
at flash.desktop::Clipboard/getObjectReference()
at flash.desktop::Clipboard/convertNativeFormat()
at flash.desktop::Clipboard/getOriginal()
at flash.desktop::Clipboard/getData()
at flashx.textLayout.edit::TextClipboard/get textScrap()
at flashx.textLayout.edit::SelectionManager/getClipboardContents()
Sorry, it is russian
any ideas?
