I am trying to make Video Gallery in AS 3.0. I have placed bunch of containers on my main stage. When user double clicks on any video thumbnail the main videos going to be played on the main stage. XML is loading external videos. The user can also drag the thumbnail and drop(multiple instances of thumbnails) on the main stage to play the main video.
The UILoader component is loading external swfs ( containing external FLVs)on drag and drop on the main stage. Also user would be able to drag and drop the already played videos.
Now my problem is that "When user tries to double clicks on the thumbnial and the video is going to be played on the main stage, when user tries to move that video he will get the run time error 'ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
To track which video has been selected i used getChildIndex()method.That only happens when user tried to drag the video played by clicked thumbnail not by the dragged thumbnail.
Sorry for the long mail but I have to explain everything to make things clear.
Anybody knows where I am going wrong and how to fix this problem.
Any help will be highly appreciated.