welcomeblogmeportfoliosketchbookgift shop

Tag: AS3

7 Useful AS3 Snippets

by Tahoe Designer on Nov.01, 2009, under Design, Personal, Technology, Website Design / Web Development

Below are some useful AS3 snippets that I use quite frequently. Thought they might come in handy for you too!
1. Get a url when the button is clicked.

import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.*;
// ADD EVENT LISTENER AND FUNCTION TO THE BUTTON
button_name.addEventListener(MouseEvent.CLICK, go);
function go(event:MouseEvent):void {
var url:String = “http://www.yourdomain.com”;
var request:URLRequest = new URLRequest(url);
navigateToURL(request, [...]

More... Leave a Comment :, , ,



  • Use Rep Cod TAHOEDESIGNER when you check out and get 20% off your order of BB Dakota Apparel
  • Looking for something?

    Still not finding what you're looking for? Drop a comment on a post or contact me directly so I can help you out!

    Get a Free Estimate! \ RSS Site Feed \ RSS Gallery Feed \ Contact me \ Back to top ↑

    © Jeff Davis 1974 - 2010, All rights reserved.