I'm trying to make a text box that displays the current fps in it. My current code looks like this:fpsMeter.addEventListener(Event.ENTER_FRAME, updateMeter);function updateMeter(evt:Event){fpsMeter.text = stage.frameRate.toString();}It does not give an error, but the text box does not display anything in it.Also, the flash file works perfectly in Flash CS4, but it doesn't display anything in CS5.5.Any help?
Make sure your dynamic text's box's instance name is "fpsMeter".If all else fails try looking up a tutorial, try this: http://kaioa.com/node/83
Try tracing the value first, see what comes out... If nothing traces, there's something wrong with getting the framerate value. If something does trace, it probably has something to do with the textbox itself
You must be logged in to post a reply!