ࡱ> Root EntryRoot Entryp|YrRASH_IU6Contents _Page 1Symbol 1   !CPicPage CPicLayer CPicFramef<sX000?#initclip /* * SomeClass Class. Extends MovieClip. * Version: 1.0.0 * Desc: Your description goes here. * * Component Params: * cp_param1 -Short description. * cp_param2 -Short description. * * Methods: * someMethod() -Short description. */ /* * Class Constructor. Parameters are passed by * an initObj or set as component parameters. */ _global.SomeClass = function () { // Create Instance properties. this.prop1 = this.cp_param1; // Initialize instance. this.someMethod(this.cp_param2); // Remove component params from the instance. for (var p in this) { if (p.indexOf("cp_") != -1) { delete this[p]; } } }; /* * Set MovieClip as SomeClass's superclass. */ SomeClass.prototype = new MovieClip(); /* * Associate the Library's symbol with SomeClass. */ Object.registerClass("someClassSymbol", SomeClass); /* * Instance Methods */ /* * Method: SomeClass.someMethod() * Desc: Short description. * * Params: * param -Short description. * */ SomeClass.prototype.someMethod = function (param) { trace("someMethod invoked with parameter of: " + param); }; #endinitclip Layer 1OCPicPage CPicLayer CPicFrame CPicSprite$ $DsomeClassInstance2param10 cp_param1% FlBparam2Your value here cp_param28ݘyIlj$?;// Create an instance. var initObj = new Object(); initObj.cp_param1 = 15; initObj.cp_param2 = "Hello world"; this.attachMovie("someClassSymbol", "someClassInstance", 1, initObj);  Layer 1O) CDocumentPagePage 1Scene 1U[A=D=Symbol 1someClassSymbolD= someClassSymbolSymbol 1xD=A ball.param10 cp_param1% FlBparam2Your value here cp_param28ݘyIlj$*@hhhhh  CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]h