Skip to main content
Inspiring
August 15, 2008
Answered

draggable movieclips from library

  • August 15, 2008
  • 1 reply
  • 239 views
hello,
so the basic functionality of what i'm trying to do is outlined in the topic summary. i have buttons which add movieclips from the library to the stage using addchild. i would like these movieclips to also be draggable, so i've created a class file outlining the function (called Clipdragger). what i'm having trouble with is the constructor code that assigns these movieclips to my Clipdragger class.

I've assigned the clips classes so I can use the buttons to add them to the stage, but this seems to be causing some conflict in trying to get them to relate to the Clipdragger class.

So I suppose my question is, how would the constructor read? i am getting compiler errors when i use: var missionpop:Mission = new Clipdragger();

1151: A conflict exists with definition missionpop in namespace internal
and for my actionscript...
5000: The class 'com.slesite.mouse.Clipdragger' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type. (even though i have code saying that Clipdragger extends MovieClip)

What's going wrong? Any help would be incredibly appreciated.
This topic has been closed for replies.
Correct answer celery4545
solved it myself! how you ask?

turns out that the constructor for clipdragger wasn't needed at all, provided the linkage is done properly in the library.

1 reply

celery4545AuthorCorrect answer
Inspiring
August 15, 2008
solved it myself! how you ask?

turns out that the constructor for clipdragger wasn't needed at all, provided the linkage is done properly in the library.