I feel like such an idiot but after trying endlessly I still haven't managed to come up with a way to display the current frame number of nested movie clip ("ecke1") (in a dynamically created text field).
The problem really is that I don't know how to have flash keep updating the variable.
Here's my latest attempt:
Code:var frame:int = 0; addEventListener(Event.ENTER_FRAME,updateframe,false,0,true); function updateframe(e:Event):void{ if (frame < ecke1.currentFrame) frame += 1; } var txt2:String = String(frame); var textfeld:TextField = new TextField(); textfeld.text = txt2; addChild(textfeld);




Reply With Quote