Skip to content

Instantly share code, notes, and snippets.

@csakiistvan
Created June 11, 2013 17:41
Show Gist options
  • Save csakiistvan/5758995 to your computer and use it in GitHub Desktop.
Save csakiistvan/5758995 to your computer and use it in GitHub Desktop.
Flash klikk kód
klikk kód:
A klikk kód:
ActionScript 2.0
- on (release) {getURL(clickTAG, clickTARGET);}
- on (press)
{
getURL("http://www.broadwayjegyiroda.hu/event.php?eid=37", "_blank");
}
Ezt tedd bele akkor ha átírhatóvá akarod tenni az adserver által. Mindkettő kell, egymás után:
on (press) {
getURL("http://www.domain.hu", "_blank");
}
on (release) {
getURL(clickTAG, clickTarget);
}
Eddig
}
- Flash MX verzióknál:
on (release) {
getURL(_root.clickTAG, _root.clickTARGET); }
ActionScript 3.0
var request:URLRequest = new
URLRequest(root.loaderInfo.parameters.clickTAG);
myButton.addEventListener(MouseEvent.MOUSE_UP, tracker);
function tracker(event:MouseEvent):void {
navigateToURL(request, "_blank");
}
Pár utasítás:
1. Select the button object on the stage that you wish to use and in the properties panel assign it an instance name (empty by default)
2. Since you can’t directly apply actionscript to an object with 3.0, you must select the first frame of a layer on the main stage (ideally the layer containing your button) and in the actionscript panel insert this code, replacing the variable “myButton” with the button’s instance name you assigned.
A myButton elnevezés változó, ez az az érték, amire a gombot elnevezi a készítő.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment