Re: [Flashcoders] listing children?
try for (var i in my_mc){ if (typeof(my_mc[i]) == movieclip)){ my_mc[i].foo(); } } 2006/11/23, Wendy Richardson [EMAIL PROTECTED]: If I have a mc with some mc's attached, is there a quick way to list/access/manipulate the attached mc's without using their explicit names? Some kind of children thingy? Thanks Wendy ___ 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
Re: [Flashcoders] Object registerClass
I solved the problem, I need to import the class and force a new variable with this type before the new object declaration, So, Object.registerClass is not necessary anymore import lib.buttons.test; var force:test var clase = test; var ap = new (lib.buttons[clase]);//works! var ap = new lib.buttons[clase]();//works! 2006/11/14, Hans Wichman [EMAIL PROTECTED]: Hi, just a small note: var a:String, will NOT guarantee that a is actually a string. for example: var arr:Array = [_root.createEmptyMovieClip(test, 0)]; var str:String = arr[0]; trace( typeof (str)); will compile just fine and trace movieclip greetz JC On 11/14/06, el oskitar [EMAIL PROTECTED] wrote: I will try to explain this: first, apoligizes for my bloody english, :P i want to build one menu from XML source like this. item label=Nuevo clase = bm_New/ i know the process for linking clases to a symbol in the library, but i don't wanna to have multiples copys of symbols with different class linkages. the type of var className is a String im sure of this. var className:String If i make this: for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } trace outputs all the clases in route /lib/botones/menu/, used by flash:classes associated on a symbol in the library, attached to the scene or previous code registered. I hope this is not the same thing. lib.botones.menu[bm_Nuevo]; var clase:String = bm_Nuevo; lib.botones.menu[clase]; The only solution i have found is add a previous methodregister() to the parent class, and use like this. lib.botones.menu[bm_New].register(); or make before attach the simbol botonTipo for all the clases i want to use later. Object.registerClass (botonTipo, lib.botones.menu[bm_New]); botonTipo is the default button i want to attach and apply class. if i make this previously Object.registerClass (botonTipo, lib.botones.menu[bm_New]); Object.registerClass (botonTipo, lib.botones.menu[bm_Close]); Object.registerClass (botonTipo, lib.botones.menu[bm_Open]); ... and trace for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } y found all the new clases. nice or not? 2006/11/13, Zárate [EMAIL PROTECTED]: Hi Oskar! Trace the type of the variable, if you're getting it from an XML, it could easily be object instead of string. Cheers! On 11/13/06, el oskitar [EMAIL PROTECTED] wrote: Hi all, I have a problem with Object.registerClass this works fine! //className hardcoded var myClass = lib.botones.menu[class]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); but extrangely this won't work! //className passed by variable var className = class; var myClass = lib.botones.menu[className]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); Any idea for this extrange behavior? ___ 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 -- Juan Delgado - Zárate http://zarate.tv http://dandolachapa.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 ___ 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
Re: [Flashcoders] Object registerClass
I will try to explain this: first, apoligizes for my bloody english, :P i want to build one menu from XML source like this. item label=Nuevo clase = bm_New/ i know the process for linking clases to a symbol in the library, but i don't wanna to have multiples copys of symbols with different class linkages. the type of var className is a String im sure of this. var className:String If i make this: for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } trace outputs all the clases in route /lib/botones/menu/, used by flash:classes associated on a symbol in the library, attached to the scene or previous code registered. I hope this is not the same thing. lib.botones.menu[bm_Nuevo]; var clase:String = bm_Nuevo; lib.botones.menu[clase]; The only solution i have found is add a previous methodregister() to the parent class, and use like this. lib.botones.menu[bm_New].register(); or make before attach the simbol botonTipo for all the clases i want to use later. Object.registerClass (botonTipo, lib.botones.menu[bm_New]); botonTipo is the default button i want to attach and apply class. if i make this previously Object.registerClass (botonTipo, lib.botones.menu[bm_New]); Object.registerClass (botonTipo, lib.botones.menu[bm_Close]); Object.registerClass (botonTipo, lib.botones.menu[bm_Open]); ... and trace for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } y found all the new clases. nice or not? 2006/11/13, Zárate [EMAIL PROTECTED]: Hi Oskar! Trace the type of the variable, if you're getting it from an XML, it could easily be object instead of string. Cheers! On 11/13/06, el oskitar [EMAIL PROTECTED] wrote: Hi all, I have a problem with Object.registerClass this works fine! //className hardcoded var myClass = lib.botones.menu[class]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); but extrangely this won't work! //className passed by variable var className = class; var myClass = lib.botones.menu[className]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); Any idea for this extrange behavior? ___ 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 -- Juan Delgado - Zárate http://zarate.tv http://dandolachapa.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
[Flashcoders] Object registerClass
Hi all, I have a problem with Object.registerClass this works fine! //className hardcoded var myClass = lib.botones.menu[class]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); but extrangely this won't work! //className passed by variable var className = class; var myClass = lib.botones.menu[className]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); Any idea for this extrange behavior? ___ 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
Re: [Flashcoders] Flash 8 - Import AS Compile Bug
I to all the problem is about class cacheing, flash caches classes on ASO files and generates sinchrony error between compiled class and cached version. deleting ASO files on control menu fixes the problem. You can define a keyboard shortcut to delete ASO files and test movie and use it instead of test movie. reference here: http://www.adobe.com/cfusion/exchange/index.cfm?extid=1016963view=sn111 if you use MX 2004, look at: http://www.blog.lessrain.com/?p=66 PD:its my first message :P 2006/6/20, Mike Mountain [EMAIL PROTECTED]: I have these sorts of issues a lot - I find deleting the ASO files (from the control menu) usually fixes it M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Parsons Sent: 20 June 2006 11:12 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash 8 - Import AS Compile Bug I am having a nightmare with a FLA that does not want to compile anymore - it generates the following error (Flash 8 AS 2.0): **Error** Scene=Scene 1, layer=code, frame=1:Line 3: Type mismatch in assignment statement: found Number where String is required. import nav.MenuXML; Does anybody have a solution or work around? I have searched on livedocs and have found some vague references to this problem - to do with AS time stamping conflicts, but that's about it... ___ 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