[Flashcoders] Accordion-Labels problem...
Hi Folks! I've made a little example where I've got two Accordion- and 3 Button-Instances. First I load two XMLs, one for each Accordion [navi_acc and model_acc]. When I push the 1.Button [models_btn], the 1. Accordion shows up [navi_acc]. Then when I push on one navi_acc-Element, the 2. Accordion shows up [model_acc]. Now I've got two language-Buttons [German English]. When I push on one of these Buttons, each Accordion-Element is updated to the selected Lang. The problem is: it works, the model_btn.label, all Button-Labels inside the Accordions.but.. The labels of the Accordion-headers don't change.visually.but if I make a trace of the labels'n names, they are! You can see my example @ http://www.cryzto.ch/index2.html www.cryzto.ch/index2.html ! Can someone helpme? cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1614 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ 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] Accordion-Labels problem...HELP
Can someone help me? I'm stuck and don't know what's the problem... cryzto Hi Folks! I've made a little example where I've got two Accordion- and 3 Button-Instances. First I load two XMLs, one for each Accordion [navi_acc and model_acc]. When I push the 1.Button [models_btn], the 1. Accordion shows up [navi_acc]. Then when I push on one navi_acc-Element, the 2. Accordion shows up [model_acc]. Now I've got two language-Buttons [German English]. When I push on one of these Buttons, each Accordion-Element is updated to the selected Lang. The problem is: it works, the model_btn.label, all Button-Labels inside the Accordions.but.. The labels of the Accordion-headers don't change.visually.but if I make a trace of the labels'n names, they are! You can see my example @ http://www.cryzto.ch/index2.html www.cryzto.ch/index2.html ! Can someone helpme? cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1626 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ 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
AW: [Flashcoders] textures
Thanks 4 the info... I'll try that! Regards, cryzto -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Jesse Graupmann Gesendet: Mittwoch, 18. Juli 2007 07:22 An: flashcoders@chattyfig.figleaf.com Betreff: RE: [Flashcoders] textures Without practical knowledge, I would suggest either flash.filters.DisplacementMapFilter or mc.beginBitmapFill along with mc.blendMode. // // DisplacementMapFilter // Maybe something like these mixed with a tiled bitmaps? http://www.reflektions.com/miniml/template_permalink.asp?id=334 http://lab.andre-michelle.com/panorama http://lab.andre-michelle.com/gooify http://nodename.com/blog/2006/01/16/psyarks-displacementmapfilter-tutorial/ // // beginBitmapFill // The example below creates a tiled Bitmap image the size of an attached vector MovieClip, attaches a duplicate to use as the Bitmap's mask, and applies a blendMode from the Bitmap MovieClip over the base vector image. var bmp = flash.display.BitmapData.loadBitmap( 'bitmap_linkageID' ); /*actual jpg or png*/ var base = this.attachMovie ( 'vector_image_linkageID3', 'base', this.getNextHighestDepth() ); var mask = this.attachMovie ( 'vector_image_linkageID3', 'mask', this.getNextHighestDepth() ); var bmp_mc = this.createEmptyMovieClip ( 'bmp_mc', this.getNextHighestDepth() ); var useBitmapFill = true; var adjustScale = false; var blend_mode = 'difference'; if ( useBitmapFill ) { var matx = new flash.geom.Matrix(); if ( adjustScale ) { base._xscale = mask._xscale = bmp_mc._xscale = 200; /*test*/ // adjust for scale distortion matx.a = 1 / (bmp_mc._xscale/100); matx.d = 1 / (bmp_mc._yscale/100); } bmp_mc.clear(); bmp_mc.beginBitmapFill(bmp, matx, true, false); var W = base._width || mask._width; var H = base._height|| mask._height; with (bmp_mc) { moveTo(0, 0); lineTo(W, 0); lineTo(W, H); lineTo(0, H); lineTo(0, 0); endFill(); } } else { bmp_mc.attachBitmap ( bmp, bmp_mc.getNextHighestDepth() ); } bmp_mc.cacheAsBitmap = true; mask.cacheAsBitmap = true; bmp_mc.setMask ( mask ); bmp_mc.blendMode = blend_mode; _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cristo @ Cryzto Sent: Tuesday, July 17, 2007 6:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] textures Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1283 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 ___ 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
AW: [Flashcoders] textures
I did check the manual, but apparently not good enough... :) I'm kind in a hurry (project 4 school), thats why I didn't really have the time for checking all manuals... Thanx for the answer JC Cristo [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Hans Wichman Gesendet: Mittwoch, 18. Juli 2007 06:46 An: flashcoders@chattyfig.figleaf.com Betreff: Re: [Flashcoders] textures Hi, I have an interesting question too, did you check the manual? :) beginBitmapFill (MovieClip.beginBitmapFill method) public beginBitmapFill(bmp:BitmapData, [matrix:Matrix], [repeat:Boolean], [smoothing:Boolean]) : Void Fills a drawing area with a bitmap image. The bitmap can be repeated or tiled to fill the area. greetz JC On 7/18/07, Cristo @ Cryzto [EMAIL PROTECTED] wrote: Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1283 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 ___ 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
AW: [Flashcoders] XML.load() and then build some buttons....
Hi Folks... Well my solution doesn't really work and my time's running up... I got two timelines: Preloader Configurator In the Preloader [frame 2] I've got a String-Variable [lang] with the name of the default XML-File [conf_de.xml]. In the Configurator [frame 2] I've got the XML-onLoad()-declaration and there I load the XML-Object with a defaultlanguage (for starters) - lang_xml.load(lang); Then I've got my lang-Buttons on which I can click (onRelease()). This function gets the required lang-File-string (i.e. conf_en.xml for english) and loads then that file - _root.lang_xml.load(_root.lang); // _root because my Buttons are in another mc! Can someone help me out here? Cryzto -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Cristo @ cryzto.ch Gesendet: Donnerstag, 28. Juni 2007 12:51 An: flashcoders@chattyfig.figleaf.com Betreff: AW: [Flashcoders] XML.load() and then build some buttons Hi Folks... I think I just had an Ilumination... I think all I just have to do is to tell my onLoad()-function: gotoAndPlay(next Frame) and in my onLoad-Frame: stop()... Man sometimes, when u're tired over days, ur brain doesn't really perform.. Thnx anyway... I'll answer again if it shouldn't work Cryzto -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Cristo @ cryzto.ch Gesendet: Donnerstag, 28. Juni 2007 12:23 An: flashcoders@chattyfig.figleaf.com Betreff: [Flashcoders] XML.load() and then build some buttons Hi Folks Im working on a configurator and now Ive got an severe problem and not much time left at all to solve it! In my preloader I load an XML-File with some multi-language-elements. In my configurator are some movieclips with buttons (-Button.label), Accordions (labels too), TextFields and TextAres inside Now my problem is that when the configurator (and the preloader too) is running, Id like to dynamically change all those text-Fields but the XML-File takes its time to parse and fill up some Arrays ive created for my language-update-purpose, so that when I want to change/create those text-fields, my configurator doesnt know whats inside these Arrays it means, that the XML wasnt finished parsing yet . Can someone please help me??? Thnx cryzto -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1065 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.12/878 - Release Date: 28.06.2007 17:57 ___ 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] XML.load() and then build some buttons....
Hi Folks I’m working on a configurator and now I’ve got an severe problem and not much time left at all to solve it! In my preloader I load an XML-File with some multi-language-elements. In my configurator are some movieclips with buttons (-Button.label), Accordions (labels too), TextFields and TextAres inside… Now my problem is that when the configurator (and the preloader too) starts, I’d like to dynamically change all those „text“-Fields but the XML-File takes ist time to parse and fill up some Arrays i’ve created for my language-update-purpose, so that when I want to change/create those „text“-fields, my configurator doesn’t know what’s inside these Arrays… it means, that the XML wasn’t parsed yet…. On the other hand I don’t want to do those „updates“ in the onLoad()-function cause after the configurator initiated, i want the ability to change the language at (users)runtime. Can someone please help me??? Thnx cryzto No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.10/875 - Release Date: 27.06.2007 21:08 ___ 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
AW: [Flashcoders] XML.load() and then build some buttons....
Hi Folks... I think I just had an Ilumination... I think all I just have to do is to tell my onLoad()-function: gotoAndPlay(next Frame) and in my onLoad-Frame: stop()... Man sometimes, when u're tired over days, ur brain doesn't really perform.. Thnx anyway... I'll answer again if it shouldn't work Cryzto -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Cristo @ cryzto.ch Gesendet: Donnerstag, 28. Juni 2007 12:23 An: flashcoders@chattyfig.figleaf.com Betreff: [Flashcoders] XML.load() and then build some buttons Hi Folks Im working on a configurator and now Ive got an severe problem and not much time left at all to solve it! In my preloader I load an XML-File with some multi-language-elements. In my configurator are some movieclips with buttons (-Button.label), Accordions (labels too), TextFields and TextAres inside Now my problem is that when the configurator (and the preloader too) starts, Id like to dynamically change all those text-Fields but the XML-File takes ist time to parse and fill up some Arrays ive created for my language-update-purpose, so that when I want to change/create those text-fields, my configurator doesnt know whats inside these Arrays it means, that the XML wasnt parsed yet . On the other hand I dont want to do those updates in the onLoad()-function cause after the configurator initiated, i want the ability to change the language at (users)runtime. Can someone please help me??? Thnx cryzto No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.10/875 - Release Date: 27.06.2007 21:08 ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.10/875 - Release Date: 27.06.2007 21:08 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1032 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.10/875 - Release Date: 27.06.2007 21:08 ___ 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] AS2: Multilanguage-Listener
Hi everybody I’m working on a multilanguage configurator and want to update every textareas, labels etc. by clicking on one of the available lang-buttons (english, german, spanish ect.). My configurator consists of different movieclips/layers of course. Now I’ve tried to reach this by creating an evenlistener on those buttons, but without success. Code (layer: _level0): var langListener:Object = new Object(); langListener.click = function (EvtObj:Object){ trace(it worked!); }; // ie: english-button _level0.langP_mc.en_btn.addEventListener(click, langListener); Can anyone help? Cryzto No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 12.06.2007 06:39 ___ 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
AW: [Flashcoders] AS2: Multilanguage-Listener
@ eka: thanks but for the moment i just want to understand why my code doesn't work... but I sure will take a look at your OpdenSource-project :-) @ Jesse: Thanx fort he hint, I modified now my code to my needs... it works, only: where's the practical difference between this solution and the solution where I just tell the Buttons to do what I want (= onRelease( lang_xml.load(XMLFile); updateTextfields(); ))? Here my code (it works): this.de.onRelease = function() { this.dispatchEvent({type:'click',target:this}); //trace(DE-Button was pressed); } this.fr.onRelease = function() { this.dispatchEvent({type:'click',target:this}); //trace(FR-Button was pressed); } this.it.onRelease = function() { this.dispatchEvent({type:'click',target:this}); //trace(IT-Button was pressed); } this.en.onRelease = function() { this.dispatchEvent({type:'click',target:this}); //trace(EN-Button was pressed); } var langListener:Object = new Object(); langListener.click = function (EvtObj:Object){ var str:String = EvtObj.target.label.toLowerCase(); _root.lang_xml.load(conf_+str+.xml); } for (var prop in this) { mx.events.EventDispatcher.initialize(this[prop]); this[prop].addEventListener(click, langListener); //trace(this[prop]); } stop(); -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Jesse Graupmann Gesendet: Dienstag, 12. Juni 2007 22:09 An: flashcoders@chattyfig.figleaf.com Betreff: RE: [Flashcoders] AS2: Multilanguage-Listener You have to initialize the object before you can add listeners; var listener:Object = new Object(); listener.click = function ( evt:Object) { trace(it worked!); }; var obj:Object = new Object(); mx.events.EventDispatcher.initialize ( obj ); obj.addEventListener( click, listener ); obj.dispatchEvent ( {type:'click', target:obj } ); _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cristo @ cryzto.ch Sent: Tuesday, June 12, 2007 12:45 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS2: Multilanguage-Listener Hi everybody I'm working on a multilanguage configurator and want to update every textareas, labels etc. by clicking on one of the available lang-buttons (english, german, spanish ect.). My configurator consists of different movieclips/layers of course. Now I've tried to reach this by creating an evenlistener on those buttons, but without success. Code (layer: _level0): var langListener:Object = new Object(); langListener.click = function (EvtObj:Object){ trace(it worked!); }; // ie: english-button _level0.langP_mc.en_btn.addEventListener(click, langListener); Can anyone help? Cryzto No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 12.06.2007 06:39 ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 12.06.2007 06:39 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 828 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 12.06.2007 06:39 ___ 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] - Array memory performance
Hi mailinglist-members, this is my first post! I’m working on a flash-configurator-project for school and I would be very happy if someone could give me some hints/links for some configurator-workshops where i could compare and maybe rethink my thoughts. Cause I’ve just found very lil infos about it. I’m talking about a configurator like „NIKE-ID“ where you choos your product and customizing it Stepp-by-step. Now to my nooby-question: I want to fill up an array and later empty it so i can fill it again from scratch, Important is I don’t want to empty the array element by element using a loop. Is in the following code something wrong: var my_array:Array = new Array(); …. for (var z=0; zx; z++){ my_array.push(z)=z; } … delete my_array; my_array = new Array(); for (var i=0; ix; i++){ my_array.push(i)=i; } … I’m rather skilled in C++, and there I have to do that for not overfilling dynamic memory (heap)! And how does Actionscript work with dynamic arrays/Allocations? Thnx for answering, Cryzto. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 16.05.2007 18:05 ___ 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
AW: [Flashcoders] - Array memory performance
Thnx for the info Attila. Well my plan was to fill up the array with object's-name that are visible in the configurator (active ones) cause the invisibles ( _alpha = .25 ) are not important for the user (inactive ones). The thing with the low-level memory ist hat I don't know how Flash handles it, in C++ the Developer ist he one to manage that problem. But I guess u're saying it works more or less like Java (with a garbage-collector) since it works on VM. Yes, it is wrong of course, since only a variable or property can be on the left side of an assignment. What do you want to do with this? I don't understand it at all. push() returns the new length of the array - what do you want to assign to it? Sorry, but I don't know which assignement you exactly refer to, do you mean my_array.push(z)=z; ? It's only a test-code to show me a value has been stored in the array. Thnx 4 that quick answer Attila. Cryzto ;-) -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Rákos Attila Gesendet: Freitag, 18. Mai 2007 00:27 An: Cristo @ cryzto.ch Betreff: Re: [Flashcoders] - Array memory performance Ccc Is in the following code something wrong: Ccc Ccc var my_array:Array = new Array(); Ccc Ccc for (var z=0; zx; z++){ Ccc my_array.push(z)=z; Ccc } Yes, it is wrong of course, since only a variable or property can be on the left side of an assignment. What do you want to do with this? I don't understand it at all. push() returns the new length of the array - what do you want to assign to it? Ccc Im rather skilled in C++, and there I have to do that for not overfilling Ccc dynamic memory (heap)! What do you have to do there? In general you don't have to care about low-level memory management in Flash at all, the VM is responsible for such tasks. Ccc I want to fill up an array and later empty it so i can fill it again from Ccc scratch, Important is I dont want to empty the array element by element Ccc using a loop. No loop is required, a simple splice(0) is enough. Or you can create a new array instance, too - of course. Attila ___ 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 16.05.2007 18:05 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 452 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 16.05.2007 18:05 ___ 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