It is possible but I don't know if it is supported by Adobe...

You can do this:

dynamic class TestClass{

public static var __symbolName:String =  "__Packages.TestClass";
public static var __symbolLinked:Boolean = Object.registerClass (__symbolName, TestClass);

public static function create (timeline:MovieClip,symbolName:String,instanceName:String, depth:Number):TestClass
        {
var clip = TestClass(timeline.attachMovie (symbolName,instanceName,depth));
                return clip;
        }

}

then use var holder:TestClass=TestClass.create (_root,'test_class_instance',1);


/John



30 okt 2006 kl. 18.41 skrev [EMAIL PROTECTED]:


Hi
I have a pretty basic question concerning registering Movieclips that are created dynamically.

//CODE START
import com.mydomain.util.MyClass;
var holder=this.createEmptyMovieClip ("_mcRef"+_xPos,this.getNextHighestDepth());
//CODE END

How do I register 'holder' with MyClass?

Thanks in advance
Jim Bachalo


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
             - Bruce Mau,'LifeStyle'
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to