Answered
draggable movieclips from library
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.
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.