Have you thrown some traces in there? What do they show? Where is it breaking?
Jason Merrill | E-Learning Solutions | icfconsulting.com >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Corban Baxter >>Sent: Tuesday, February 07, 2006 5:02 PM >>To: [email protected] >>Subject: [Flashcoders] dynamic text field whoas >> >>Can anyone tell me why my text won't change in my percent.text field that I am >>creating dynamicly...? >> >>[code] >> >>var ldrFormat:TextFormat = new TextFormat(); >>ldrFormat.color = 0x000000; >>ldrFormat.font = "dirty_head"; >>ldrFormat.size = 69; >> >>posX = 91; >>posY = 0; >>this.createTextField("percent", this.getNextHighestDepth(), posX, posY, 1, 1); >>percent.autoSize = true; >>percent.text = "0"; >>percent.embedFonts = true; >>percent.setTextFormat(ldrFormat); >> >>trace("percent.posX: " + posX); >>trace("percent.posY: " + posY); >> >> >>percentIcon_mc.onEnterFrame = function(){ >> spacing = percent._width+93; >> //trace(this.percent); >> this._x = spacing; >> //trace(_parent.spacing); >> >> loaded = _parent.getBytesLoaded(); >> total = _parent.getBytesTotal(); >> //trace(total); >> //trace(loaded); >> percentNum = Math.floor((loaded/total)*100); >> //percentNum.toString(); >> percent.text = percentNum; >> trace(percentNum); >>} >> >>stop(); >> >>[/code] >> >>Corban Baxter | rich media designer | www.funimation.com >> >> >>_______________________________________________ >>Flashcoders mailing list >>[email protected] >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

