# Linking Class to Visual Object

**URL:** <https://forum.kirupa.com/t/linking-class-to-visual-object/228304>\
**Category:** flash\
**Created:** [June 6, 2007, 7:35pm UTC](https://forum.kirupa.com/t/linking-class-to-visual-object/228304 "2007-06-06T19:35:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lonerhino](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lonerhino](https://forum.kirupa.com/u/lonerhino)\
**Post date:** [June 6, 2007, 7:35pm UTC](https://forum.kirupa.com/t/linking-class-to-visual-object/228304/1 "2007-06-06T19:35:24Z")

</div>

In AS2, I had a class to allow for some draggable objects with various props & methods. Using Linkage in the library, I linked my 6 MovieClips to the class.

In AS3, Linkage is different…

My Class does extend MovieClip so I believe that the base class of **flash.display.MovieClip** is correct. Identifier is unavailable and it expects a unique Class? If the same 6 MoviClips are instances of the same class, then the class name (and classpath) is not unique but the same for all 6. I have a DragObject class and want 6 MoviClips to become instances of DragObject.

I think I’m completely missing something basic here.

I’ve also looked into what the Flash documentation calls\* Embedded Asset Classes\* but that seems to confuse me even more. It automatically created a class file that I cannot find on my HD - Yikes! where’s the AS file? I think this must be a completely different can of worms.

Thanks for any guidance.
