<?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"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: send data from max/msp to flash</title>
		<atom:link href="http://cycling74.com/forums/topic/send-data-from-maxmsp-to-flash/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/send-data-from-maxmsp-to-flash/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 01:59:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/send-data-from-maxmsp-to-flash/#post-26306</guid>
					<title><![CDATA[send data from max/msp to flash]]></title>
					<link>http://cycling74.com/forums/topic/send-data-from-maxmsp-to-flash/#post-26306</link>
					<pubDate>Mon, 05 Jun 2006 20:11:26 +0000</pubDate>
					<dc:creator>christian.guder@gmx.net</dc:creator>

					<description>
						<![CDATA[
						<p>hello, i want to send data from a max patch to an flash.swf. therefor i downloaded the flashserver 1.1. when i press a button in the swf i can recieve data in my max patch. but now i want that the button in my swf changes his colour when i change a parameter in the patch. the question is where i have to write down this code? i put it in the &#8220;action&#8221;-frame where all my other code for the recieving is. </p>
<p>function onMaxData(doc)<br />
{<br />
argv = []; // create a new array<br />
doc = doc.substr(0, doc.length &#8211; 1); // chop off &#8216;;&#8217; at the end<br />
argv = doc.split(&#8221; &#8220;); // split at spaces and convert to array<br />
argc = argv.length; // get number of elements in array<br />
for(i = 0; i < argc; i++) // loop through all arguments<br />
{<br />
msg += &#8220;argument &#8220;+ i +&#8221; is &#8220;+ argv[i];<br />
}<br />
clip = argv[0]; // get name of MovieClip<br />
frame = argv[1]; // get the frame number<br />
_root[clip].gotoAndPlay(frame);<br />
} </p>
<p>an what i have to do in the max patch. i have to connect a broadcast (send) tool with the flashserver an wirte down &#8220;broadcast taste_01_01 4&#8243; (taste_01_01 = is the name of my movieclip / 4 is the frame of the movieclip)</p>
<p>it dosent work at the moment. has anyone an idea. do i have to wirte any code in my movieclip? is it correct to put all the code in a several action frame?</p>
<p>thanx <br />
christian</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/send-data-from-maxmsp-to-flash/#post-78404</guid>
					<title><![CDATA[Re: send data from max/msp to flash]]></title>
					<link>http://cycling74.com/forums/topic/send-data-from-maxmsp-to-flash/#post-78404</link>
					<pubDate>Tue, 06 Jun 2006 15:50:03 +0000</pubDate>
					<dc:creator>Olaf Matthes</dc:creator>

					<description>
						<![CDATA[
						<p>
Am 05.06.2006 um 22:11 schrieb royal8:</p>
<p>><br />
> hello, i want to send data from a max patch to an flash.swf.  <br />
> therefor i downloaded the flashserver 1.1. when i press a button in  <br />
> the swf i can recieve data in my max patch. but now i want that the  <br />
> button in my swf changes his colour when i change a parameter in  <br />
> the patch. the question is where i have to write down this code? i  <br />
> put it in the &#8220;action&#8221;-frame where all my other code for the  <br />
> recieving is.</p>
<p>That&#8217;s the correct place for it. There is just one onMaxData()  <br />
function and that&#8217;s exactly the place where you have to put all the  <br />
code that controlls Flash.</p>
<p>><br />
> function onMaxData(doc)<br />
> {<br />
> argv = []; // create a new array<br />
> doc = doc.substr(0, doc.length &#8211; 1); // chop off &#8216;;&#8217; at the end<br />
> argv = doc.split(&#8221; &#8220;); // split at spaces and convert to array<br />
> argc = argv.length; // get number of elements in array<br />
> for(i = 0; i < argc; i++) // loop through all arguments<br />
> {<br />
> msg += &#8220;argument &#8220;+ i +&#8221; is &#8220;+ argv[i];<br />
> }<br />
> clip = argv[0]; // get name of MovieClip<br />
> frame = argv[1]; // get the frame number<br />
> _root[clip].gotoAndPlay(frame);<br />
> }<br />
><br />
> an what i have to do in the max patch. i have to connect a  <br />
> broadcast (send) tool with the flashserver an wirte down &#8220;broadcast  <br />
> taste_01_01 4&#8243; (taste_01_01 = is the name of my movieclip / 4 is  <br />
> the frame of the movieclip)</p>
<p>Yes, with the above code and a movieclip named &#8216;taste_01_01&#8242; you   <br />
would use a &#8216;broadcast taste_01_01 4&#8242; to make it jump (and play) to  <br />
frame 4.</p>
<p>><br />
> it dosent work at the moment. has anyone an idea. do i have to  <br />
> wirte any code in my movieclip?</p>
<p>Nothing flasherver / Max related, but probably a Stop() or GotoAndStop <br />
() somewhere.</p>
<p>> is it correct to put all the code in a several action frame?</p>
<p>I usually use one layer that just has the action scripting inside.  <br />
This &#8216;frame&#8217; should cover the full lengt of the flash movie and you  <br />
should never jump back top the first frame in your movie or Flash  <br />
would connect to Max again.</p>
<p>Olaf</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

