<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kohactive &#187; MailChimp</title>
	<atom:link href="http://www.kohactive.com/html/tag/mailchimp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kohactive.com/html</link>
	<description>kohactive  interactive design and marketing</description>
	<lastBuildDate>Mon, 23 Aug 2010 21:26:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How Blogging Can Attract Business</title>
		<link>http://www.kohactive.com/html/think/how-blogging-can-attract-business/</link>
		<comments>http://www.kohactive.com/html/think/how-blogging-can-attract-business/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 00:20:33 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Think]]></category>
		<category><![CDATA[MailChimp]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[small business]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://www.kohactive.com/html/?p=254</guid>
		<description><![CDATA[Blogging is one of the most effective ways of communicating your brand, business and expertise. If used correctly and intuitively, blogging can even attract business. Here are a few simple tips and examples of how blogging can become a new marketing tool.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kohactive.com/html/wp-content/uploads/blogging.jpg"><img class="alignnone size-full wp-image-255" title="blogging" src="http://www.kohactive.com/html/wp-content/uploads/blogging.jpg" alt="" width="535" height="235" /></a></p>
<p>Blogging is one of the most important social media channels available to any business. It&#8217;s great because it&#8217;s free and it&#8217;s easy to do. The only problem is that most people have no idea what to blog about. My response to all clients is the same: Blog about your industry and what you know about it.  Here at kohactive we have two separate blogs: <a title="Think | A blog by kohactive" href="http://www.kohactive.com/html/think">Think </a>is our philosophical approach to social media, web design and anything digital; <a href="http://www.kohactive.com/html/labs">Labs </a>is our creative playground where we test and share stuff. Note that we blog about what we know and do. And not only that, but blogging has made us money and it can absolutely do the same for you.</p>
<p>Calm down, I know you&#8217;re getting excited but I need to set up the situation. A few months ago I was looking for a solution to a problem with regards to <a title="AS3 MailChimp Library" href="http://www.kohactive.com/html/labs/actionscript-3-0-and-mailchimps-api/">Flash Web Development and MailChimp</a> Integration and when I couldn&#8217;t find the answer I decided to develop my own. After a few hours of hard work I solved my problem and then wrote a blog about it. I didn&#8217;t just write about the problem, I provided a solution and source code available for download.</p>
<p>At the time, I didn&#8217;t realize how many other people were looking for the same solution. Without knowing this I went ahead and notified <a title="MailChimp" href="http://www.mailchimp.com">MailChimp </a>about my supreme accomplishment and then immediately posted a link to the article on their website. That was HUGE! One of the largest and most popular Email Marketing company in the world had posted a link to our blog on their website. They did it because it provided solutions for their clients and it was resourceful. It was mutually beneficial.</p>
<p>Over the course of a few months I saw thousands of visitors searching and finding that article. We had thousands of hits and everyone seemed happy. One day a London based company approached us about the code. They thanked us and asked if we were &#8220;experts in flash&#8221;. Consequently, they hired us for a project, which will inevitably lead to future projects. We plan on maintaining a close and personal relationship with this company.</p>
<p>This is just a small example of many companies and bloggers who have gained business leads and clients through blogging. How does this effect you? it&#8217;s quite simple. If you want a blog that matters than you should follow these simple rules:</p>
<ol>
<li>Blog about what you know and do</li>
<li>Don&#8217;t just talk, provide solutions or answers</li>
<li>Provide insight and knowledge to beginners or other industry professionals</li>
<li>Always maintain professionalism and integrity</li>
<li>Always site sources (if applicable)</li>
<li>Use Twitter and Facebook to spread the word</li>
<li>Share with our industry professionals or related businesses</li>
</ol>
<p>Now these simple rules are not going to help every business succeed, but I believe that giving will always provide a return of some sort. Don&#8217;t be hesitant to give out &#8220;secrets&#8221;, unless that secret makes billions of dollars.</p>
<p>If blogging has ever earned you business let us know in the comments below!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kohactive.com/html/think/how-blogging-can-attract-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 MailChimp Library</title>
		<link>http://www.kohactive.com/html/labs/actionscript-3-0-and-mailchimps-api/</link>
		<comments>http://www.kohactive.com/html/labs/actionscript-3-0-and-mailchimps-api/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 14:32:23 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[MailChimp]]></category>

		<guid isPermaLink="false">http://www.kohactive.com/html/?p=123</guid>
		<description><![CDATA[One of our latest projects required MailChimp integration through Flash AS3, while we couldn't find anything that worked properly, we found a nice and easy way to build our own class.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kohactive.com/html/wp-content/uploads/mailchimp.jpg"><img class="alignnone size-full wp-image-124" title="mailchimp" src="http://www.kohactive.com/html/wp-content/uploads/mailchimp.jpg" alt="" width="535" height="235" /></a></p>
<p>While building our awesome new website, we wanted to ensure that users could easily subscribe to our newsletter through the Flash version, without having to be redirected anywhere else. Convenience is king, and we wanted to deliver it!</p>
<p>We use <a href="http://www.mailchimp.com/">MailChimp</a>, the best email marketing platform available! And luckily, they have a great API to work with. Through Flash, we were able to add subscribers to our list and also return any results, i.e. error or success.</p>
<p>While searching Google I found an article by <a href="http://christiancox.com/?p=29">Christian Cox </a>on MailChimp’s API and AS2, but that wasn’t enough.  We needed a nice AS3 version of the code. So Justin and I put together this nice, simple code that should work for anyone. If I had more time I would definitely make a class.. Perhaps later this month.</p>
<pre><code lang="as3">
//api and list id keys
var _api:String = "MAIL_CHIMP_API_KEY_HERE";
var _listID:String = "LIST_ID_HERE";

//text box handler
emailAddress.text = "email address";
emailAddress.tabIndex = 1;
emailAddress.addEventListener(FocusEvent.FOCUS_IN, txtFocusIn);
emailAddress.addEventListener(FocusEvent.FOCUS_OUT, txtFocusOut);

function txtFocusIn(e:FocusEvent) {
        emailAddress.text = "";
}
function txtFocusOut(e:FocusEvent) {
        if (emailAddress.text == "") {
                emailAddress.text = "email address";
        }
}

//button setup
submitBtn.buttonMode = true;
submitBtn.addEventListener(MouseEvent.CLICK, submitForm);

function submitForm(e:Event) {

        var email:String = emailAddress.text;

        //check if valid
        if (isValidEmail(email)) {

                //set response text
                responseText.text = "sending...";

                //disable the submit button
                submitBtn.removeEventListener(MouseEvent.CLICK, submitForm);

                //setup POST
                var variables:URLVariables = new URLVariables("method=listSubscribe&amp;amp;output=xml&amp;amp;apikey=" + _api + "&amp;amp;id=" + _listID + "&amp;amp;email_address=" + email + "&amp;amp;merge_vars=");
                var request:URLRequest = new URLRequest();
                request.url = "http://api.mailchimp.com/1.2/?method=listSubscribe";
                request.method = URLRequestMethod.POST;
                request.data = variables;

                var loader:URLLoader = new URLLoader();
                loader.dataFormat = URLLoaderDataFormat.VARIABLES;
                loader.addEventListener(Event.COMPLETE, completeHandler);

                try {
                        trace("loading...");
                        responseText.text = "loading...";
                        loader.load(request);
                }
                catch(error:Error) {
                        trace("unable to load URL");
                        responseText.text = "Oh, that's embarassing. something went wrong, please try again. Thanks!";
                        trace(e.target.data);
                }
                function completeHandler(e:Event) {
                        var _t:String = unescape(e.target.data); //decode the uri

                        var _xml:XMLList = new XMLList(_t); //parse the xml
                        trace(_xml.@type);
                        if (_xml.@type == "array") { //check to see if there is an error
                                trace(_xml.error);
                                responseText.text = _xml.error;
                                resetForm();
                        } else if (_xml.@type == "boolean") { //check to see if successfully added
                                trace("successfully added to list");
                                responseText.text = "You have beeen successfully added to our list. Thank you!";
                                resetForm();
                        }
                }

        } else {
                trace ("email invalid");
        resetForm ();
                responseText.text = "invalid email!";
        }

}

//validate given email
function isValidEmail(_e:String):Boolean {
        var exp:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;
    return exp.test(_e);
}

//reset the form elements
function resetForm(){
        submitBtn.addEventListener(MouseEvent.CLICK, submitForm);
        emailAddress.text = "email address";

}
</code>
</pre>
<p>Done and done. Pretty easy, right? You can also download the <a href="http://www.kohactive.com/html/wp-content/uploads/mailchimp_api.zip">mailchimp_api</a>.</p>
<p><span class="post_update">UPDATE: A new version has been created that includes First and Last Name data collection [<a href="http://www.kohactive.com/html/wp-content/uploads/mailchimp_api_1.3.zip">mailchimp_api_1.3</a>].</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kohactive.com/html/labs/actionscript-3-0-and-mailchimps-api/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
