doh! I was thrown by the lack of quotation marks for the linkage name.
thanks On 7/26/06, Supriya <[EMAIL PROTECTED]> wrote:
In the library, right click on the symbol , click on Linkage. There select the checkbox Export for ActionScript. Give a name (gf) in the class field, flash will autogenerate a class for you with that name Now on timeline do this var myGf = new gf() this.addChild(myGf) this is equivalent to attachMovie ----- Original Message ----- From: "Carl Welch" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Wednesday, July 26, 2006 2:44 PM Subject: Re: [Flashcoders] as3 and attachmovie > OK. I am trying to learn how to use classes and have had some success > - But what I just can't seem to grasp in this situation is if I use > this: > > var newMC=new MovieClip(); > this.addChild(newMC); > > instead of this: > attachmovie("gf","gf"+_root.getNextHighestDepth(),_root.getNextHighestDepth > > How do I select "gf" as the movieclip to be added to the stage? > > > Thanks. > > On 7/25/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote: >> Carl, >> >> Everything in AS3 is classes, so you can't do anything without using >> classes. >> It's actually easier than attachmovie. Just make a >> >> var newMC=new MovieClip(); >> this.addChild(newMC); >> >> feels alot cleaner that >> attachmovie("gf","gf"+_root.getNextHighestDepth(),_root.getNextHighestDepth()); >> doesn't it ;). >> >> good luck! >> >> Meinte >> >> ps. you can checkout senocular.com , he has some excellent tutorials on >> AS3 >> >> On 7/25/06, eka <[EMAIL PROTECTED]> wrote: >> > >> > Hello :) >> > >> > read in french : >> > >> > - >> > >> > http://iteratif.free.fr/blog/index.php?2006/07/11/44-bibliotheque-partagee-sous-flash-9 >> > >> > attachMovie is remove in AS3 :) Use [embed(source="....")] metadata and >> > create the instance with new MyClass and addChild() method :) >> > >> > eKA+ :) >> > >> > >> > 2006/7/25, Carl Welch <[EMAIL PROTECTED]>: >> > > >> > > I just downloaded the demo of Flash 9 / as3 and I noticed you can't >> > > use attachmovie anymore. I've found some new methods on google but it >> > > seems like the only way I can do it is by using classes. Is there >> > > another way to handle an attachmovie equivilent without using a class >> > > in as3? >> > > >> > > thanks. >> > > >> > > -- >> > > Carl Welch >> > > http://www.carlwelch.com >> > > [EMAIL PROTECTED] >> > > 805.403.4819 >> > > _______________________________________________ >> > > Flashcoders@chattyfig.figleaf.com >> > > 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 >> > > >> > _______________________________________________ >> > Flashcoders@chattyfig.figleaf.com >> > 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 >> > >> _______________________________________________ >> Flashcoders@chattyfig.figleaf.com >> 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 >> > > > -- > Carl Welch > http://www.carlwelch.com > [EMAIL PROTECTED] > 805.403.4819 > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > 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 _______________________________________________ Flashcoders@chattyfig.figleaf.com 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
-- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 _______________________________________________ Flashcoders@chattyfig.figleaf.com 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