talhatima / flexlib

Automatically exported from code.google.com/p/flexlib
1 stars 0 forks source link

Get clipboard errors when start drag / drop of tab in SuperTabNavigator #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
<flexlib:SuperTabNavigator id="tabnav">
  <mx:VBox id="tab1" label="tab1" />
  <mx:VBox id="tab2" label="tab2"/>
  <mx:VBox id="tab3" label="tab3"/>
</flexlib:SuperTabNavigator>  
(something like above with things in the vbox, then start to drag say tab3
between tab1 and tab2)
What is the expected output? What do you see instead?
ArgumentError: Error #2004: One of the parameters is invalid.
    at flash.utils::ByteArray/writeObject()
    at flash.desktop::Clipboard/putSerialization()
    at flash.desktop::Clipboard/convertFlashFormat()
    at flash.desktop::Clipboard/setData()
    at
mx.managers::NativeDragManagerImpl/doDrag()[E:\dev\3.0.x\frameworks\projects\air
framework\src\mx\managers\NativeDragManagerImpl.as:249]
    at
mx.managers::DragManager$/doDrag()[E:\dev\3.0.x\frameworks\projects\framework\sr
c\mx\managers\DragManager.as:241]
    at
flexlib.controls::SuperTabBar/doDrag()[C:\workspace\src\flexlib\controls\SuperTa
bBar.as:426]

What version of the product are you using? On what operating system?
2.4 flexlib,  Flex 3.0 release, debug flash player from Flex Builder 3.0, Vista

Please provide any additional information below.
Stepping in the NativeDragManagerImpl/doDrag()
either trying to setData on clipboard with UIText of the tab or SuperTab
itself for "tabDrag" format  (both UIText and SuperTab have the same problem)
    _clipboard.setData(format, data);

Original issue reported on code.google.com by srein...@comcast.net on 19 Apr 2008 at 2:15

GoogleCodeExporter commented 9 years ago
some more info:
1. Works fine on Flex + Browser
2. This problem happens only with AIR+Flex  (AIR 1.0 version)
3. Also tried with a 4th tab, VBox without anything in it, still has the drag 
problem
with AIR+Flex+SuperTabNavigator

Original comment by srein...@comcast.net on 19 Apr 2008 at 3:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello!
Here the reason for this error in my application! 

In use a singletone class to store shared data. One of the variables is a custom
collection that extends an ArrayCollection and this causes the error.

Original comment by rlin...@gmail.com on 25 Sep 2008 at 12:57

GoogleCodeExporter commented 9 years ago

Original comment by dmcc...@gmail.com on 8 Jan 2009 at 5:04

GoogleCodeExporter commented 9 years ago
i just got the same error.

Original comment by emosba...@gmail.com on 1 Apr 2009 at 4:46

GoogleCodeExporter commented 9 years ago
I am using this in AIR as well, and I am getting the same problem. I would like 
the 
drag and drop functionality to work as well.

Thanks,
Matt

Original comment by mwdalrym...@yahoo.com on 17 Apr 2009 at 3:22

GoogleCodeExporter commented 9 years ago
Can u please tell why the drag and drop is not working properly in AdobeAIR 
application.
It is saying one of the parameter is invalid.

Original comment by Sathya....@gmail.com on 3 Feb 2010 at 8:40