Category Archives: Web development

AS3 – Access root from a movie clip

Use like this to access root from a movie clip MovieClip(root).someThing; For example suppose you have a text box in root with instance name txtAddress in your root. If you need to set the text of txtAddress from a movie … Continue reading

Posted in ActionScript | Tagged , , | 4 Comments

ActionScript : Find code execution time

Using the script below you can find how much time it took to execute your ActionScript code var startTime:Date = new Date(); // execute your code here var endTime:Date = new Date(); trace("Time take to execute the code "+String(endTime.getTime()-startTime.getTime())+" milliseconds"); … Continue reading

Posted in ActionScript, Flash/Flex, Web development | Tagged , , | Leave a comment

VBScript : Find script execution time

Using the script below you can find how much time it took to execute your VBScript code. Dim startTime startTime = Now ‘execute your code here endTime = Now MsgBox("Time taken to execute code : " & DateDiff("s",startTime,endTime)&" seconds") You … Continue reading

Posted in VBScript | Tagged , | Leave a comment

Javascript : Find script execution time

Using the script below you can find how much time it took to execute your javascript code. var startDate = new Date(); // execute your tasks here var endDate = new Date(); var timeTaken = endDate.getTime() – startDate.getTime(); alert(‘Time take … Continue reading

Posted in JavaScript, Web development | Tagged , | 4 Comments

PHP : Find script execution time

If you are a PHP developer chances are many that you need to find how much time it took to execute a piece of code. Using the script below you can find how much time it took to execute your … Continue reading

Posted in PHP | Tagged | 3 Comments