<?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>memory dump.</title>
	<atom:link href="http://serostar.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://serostar.com/blog</link>
	<description>my memory fails...</description>
	<lastBuildDate>Wed, 26 May 2010 16:21:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problem opening web links from a flash CD</title>
		<link>http://serostar.com/blog/?p=68</link>
		<comments>http://serostar.com/blog/?p=68#comments</comments>
		<pubDate>Wed, 24 Mar 2010 20:15:17 +0000</pubDate>
		<dc:creator>serostar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash CD]]></category>
		<category><![CDATA[Flash Executable]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://serostar.com/blog/?p=68</guid>
		<description><![CDATA[Problem:  Flash executable file does not open web links on a Mac using getURL / navigateToURL when Safari is not set as the user&#8217;s default browser. Users with Firefox get browser focus, but the page doesn&#8217;t load.
Reason:  Not sure.
Solution:  Using ActionScript, determine whether we&#8217;re on a Mac or PC, if Mac, run [...]]]></description>
			<content:encoded><![CDATA[<p>Problem:  Flash executable file does not open web links on a Mac using getURL / navigateToURL when Safari is <strong>not set</strong> as the user&#8217;s default browser. Users with Firefox get browser focus, but the page doesn&#8217;t load.</p>
<p>Reason:  Not sure.</p>
<p>Solution:  Using ActionScript, determine whether we&#8217;re on a Mac or PC, if Mac, run an AppleScript file using fscommand.</p>
<p>AS2:</p>
<pre class="brush: as3;">
// what OS are we on?
operatingSystem = System.capabilities.os.substr(0, 3);
trace(&quot;I am a &quot; + operatingSystem);

//actions for your button.
myButton.onRelease = function() {
    openMacLink();
}

function openMacLink() {
    //if operating system is Mac, run the openWebpage applescript in your fscommand folder
    if (operatingSystem == &quot;Mac&quot;) {
	fscommand (&quot;exec&quot;, &quot;openWebpage.app&quot;);
    }
    //else, we're on windows and just run regular getURL
    else {
    	getURL(&quot;http://www.yourwebaddress.com&quot;, &quot;_blank&quot;);
    }
}
</pre>
<p>AS3</p>
<pre class="brush: as3;">
// what OS are we on?
var operatingSystem:String=Capabilities.os.substr(0,3);
trace(&quot;I am a &quot; + operatingSystem);

//actions for your button.
myButton.addEventListener(MouseEvent.MOUSE_DOWN, openMacLink);

function openMacLink(event:MouseEvent) {
        //if operating system is Mac, run the openWebpage applescript in your fscommand folder
	if (operatingSystem==&quot;Mac&quot;) {
		fscommand(&quot;exec&quot;, &quot;openWebpage.app&quot;);
	}
//else, we're on windows and just run regular navigateToURL
        else {
		var request:URLRequest=new URLRequest(&quot;http://www.yourwebaddress.com&quot;);
		navigateToURL(request, &quot;_blank&quot;);
	}
}
</pre>
<p>Great, we&#8217;re halfway done.  Now we need to make an AppleScript for each link.  On your mac open up the AppleScript Editor (Script Editor prior to Snow Leopard).  It looks like this:<br />
<img src="http://serostar.com/blog/wp-content/uploads/2010/03/scripteditor.gif" alt="script editor" title="scripteditor" width="473" height="559" class="alignnone size-full wp-image-85" /></p>
<p>Paste in the AppleScript (change yourwebsitehere.com to what you want to link to):</p>
<pre class="brush: plain;">
tell application &quot;Safari&quot;
	activate
	do JavaScript &quot;window.open('http://www.yourwebsitehere.com')&quot; in document 1
end tell
</pre>
<p>Now save the applescript as an application into your fscommand folder.<br />
<img src="http://serostar.com/blog/wp-content/uploads/2010/03/application.gif" alt="Save as an application" title="application" width="513" height="169" class="alignnone size-full wp-image-86" /></p>
]]></content:encoded>
			<wfw:commentRss>http://serostar.com/blog/?feed=rss2&amp;p=68</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synesthesia research &#8211; color to sound.  color to shape.</title>
		<link>http://serostar.com/blog/?p=42</link>
		<comments>http://serostar.com/blog/?p=42#comments</comments>
		<pubDate>Thu, 28 May 2009 21:10:18 +0000</pubDate>
		<dc:creator>serostar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://serostar.com/blog/?p=42</guid>
		<description><![CDATA[University of Sussex Synesthesia Research Publications &#8211; haven&#8217;t sorted through them yet.
The Synesthesia Battery &#8211; A series of online tests to be taken by synestheses.  Most promising so far, especially for color to sound.   Need to find out what research groups have done studies with this test and how to access their results.  Talk to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://http://www.syn.sussex.ac.uk/5.html">University of Sussex Synesthesia Research Publications</a> &#8211; haven&#8217;t sorted through them yet.</p>
<p><a href="http://www.synesthete.org/demo.php">The Synesthesia Battery</a> &#8211; A series of online tests to be taken by synestheses.  Most promising so far, especially for color to sound.   Need to find out what research groups have done studies with this test and how to access their results.  Talk to Allison or Wes.</p>
<p><a href="http://psy2.ucsd.edu/~edhubbard/">Edward M. Hubbard&#8217;s Synesthesia Research</a> &#8211; have not sorted through them yet.</p>
<p>Other:</p>
<p><a href="http://www.thereminvox.com/article/articleview/33/1/5/">A Brief History of Synaesthesia and Music</a></p>
<p><a href="http://home.vicnet.net.au/~colmusic/opticks1.htm">Newton&#8217;s Opticks overview</a></p>
]]></content:encoded>
			<wfw:commentRss>http://serostar.com/blog/?feed=rss2&amp;p=42</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
