Archived entries for actionscript

[Tips] Using PHPlist with Flash Actionscript 3.0

Will add more description on this post soon, enjoy for now. PHPlist is a powerful mailing list management tool, however the downturn came when there’s very little support in porting this to other type of output i.e. Flash. Thanks to the guys from phplist forums.

function submitRegister():void {
	var fieldName:String					= inputName.text; // your text field on the stage
	var fieldEmail:String					= inputEmail.text;// your text field on the stage	

	var formVariables:URLVariables			= new URLVariables();
	formVariables.attribute1				= fieldName; // the attributes are according to the form's input field

	// anything below is a must to have, do not remove it, but you can modify it //
	formVariables.name 						= "subscribeform";
	formVariables.subscribe 				= "Subscribe";
	formVariables.email 					= fieldEmail;
	formVariables.emailconfirm 				= fieldEmail;
	formVariables.htmlemail					= 1;
	formVariables["list[1]"]				= "signup";
	formVariables["listname[1]"]			= "Your MailingList Name";

	var formRequest:URLRequest				= new URLRequest();
	formRequest.url 						= "http://www.yourwebsite.com/lists/?p=subscribe&id=1"; // url of where your form/subscribe page resides
	formRequest.method						= URLRequestMethod.POST;
	formRequest.data 						= formVariables;

	var formLoader:URLLoader				= new URLLoader();
	formLoader.addEventListener(Event.COMPLETE, registerComplete);
	formLoader.addEventListener(IOErrorEvent.IO_ERROR, registerError);
	formLoader.load(formRequest);
}
function registerComplete(e:Event):void {
}
function registerError(e:IOErrorEvent):void {
}

[Tips] Adding Google Analytics to your Flash Actionscript 3 Project

It has been almost ages that we finally able to harness the power of analytics inside Flash. However it would be a turndown for those who wants this in Actionscript 2. At the moment it seems there won’t be any plan for porting this to ActionScript 2. Your best bet would probably to jump the Actionscript 3 bandwagon to get benefits of this tool. This will be a through guide on how to setup your Flash file to enable Google Analytics tracking.

Continue reading…



Copyright © 2004–2009. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.