Home | About Me | Products | Source Code | My Sites | Contact Me

Source Code Samples

Below are some code samples that I found useful. Hopefully they help you on your coding journey. If you are looking for a specific example of code, let me know and I will work on getting it up on this webpage for you.

ActionScript 3.0

Navigate To URL Function

ButtonName.addEventListener(MouseEvent.CLICK, GoToWebSite);

function GoToWebSite(e:Event):void
    var request:URLRequest = new URLRequest("URL to go to");


Set Interval Function

VariableName = setInterval(FunctionToCall, TimeInMilleseconds);
Example: MySeconds = setInterval(IncreaseSeconds, 1000);


Clear interval Function

Example: clearInterval(MySeconds);


Coming Soon!



Coming Soon!


All material included within GreggoryPayne.com is Copyrighted and may not be reproduced or copied in any form without express written permission from Greggory Payne. Linking to images IS NOT allowed. Any and all links must be approved by Greggory Payne before links are established. Images and material holding separate copyright notices are provided exclusively to Greggory Payne and that copyright remains with the original authors. Images and artwork provided herein shall not be copied, reproduced or used in any other fashion without the express written permission of their respective authors.

Copyright © 2001-2018 Greggory Payne. All Rights Reserved.


Find Me On Facebook