<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: AS3 Simulating cue points for Sound</title>
	<atom:link href="http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/feed/" rel="self" type="application/rss+xml" />
	<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/</link>
	<description>Flash, Flex Developer  &#124;  personal playground</description>
	<pubDate>Fri, 12 Mar 2010 07:25:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/comment-page-1/#comment-93</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 29 Jun 2009 17:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=158#comment-93</guid>
		<description>@Lasse thx for pointing.
puase() method is added, for the resume use the same start().
When resume, make sure to set the soundChannel property again:

audioCuePoint.start();
sndChannel= snd.play(sndChannel.position);
audioCuePoint.soundChannel = sndChannel;

source files are updated.</description>
		<content:encoded><![CDATA[<p>@Lasse thx for pointing.<br />
puase() method is added, for the resume use the same start().<br />
When resume, make sure to set the soundChannel property again:</p>
<p>audioCuePoint.start();<br />
sndChannel= snd.play(sndChannel.position);<br />
audioCuePoint.soundChannel = sndChannel;</p>
<p>source files are updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse</title>
		<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/comment-page-1/#comment-92</link>
		<dc:creator>Lasse</dc:creator>
		<pubDate>Mon, 29 Jun 2009 15:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=158#comment-92</guid>
		<description>This is indeed a very helpful class!

Is it possible to add pause functionality? Meaning that when I pause my sound and then resume it, the cue point timer will also pick up where it left.

Thanks, this is a keeper.</description>
		<content:encoded><![CDATA[<p>This is indeed a very helpful class!</p>
<p>Is it possible to add pause functionality? Meaning that when I pause my sound and then resume it, the cue point timer will also pick up where it left.</p>
<p>Thanks, this is a keeper.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/comment-page-1/#comment-77</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 03 Jun 2009 20:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=158#comment-77</guid>
		<description>Not sure yet, but this may be EXACTLY what I need!!! Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Not sure yet, but this may be EXACTLY what I need!!! Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shawn c</title>
		<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/comment-page-1/#comment-68</link>
		<dc:creator>shawn c</dc:creator>
		<pubDate>Mon, 04 May 2009 16:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=158#comment-68</guid>
		<description>@lunacafu. 
do you have an example of what you did online 
I would love to see it in action
thanks both of you for the info.
I am sure this will come in handy.</description>
		<content:encoded><![CDATA[<p>@lunacafu.<br />
do you have an example of what you did online<br />
I would love to see it in action<br />
thanks both of you for the info.<br />
I am sure this will come in handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/comment-page-1/#comment-67</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 04 May 2009 14:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=158#comment-67</guid>
		<description>@lunacafu.
Well, if u are tweening something that out of Class you don't have to add properties inside class.

you catch the event onCuepointFind, u got the time and text, your object/movieclip that u wanna tween is out of class, just have some fucntion to show it(outside of class), and call that method inside onCuepointFind.
Its almost the same thing you did, but not inside Class file itself.</description>
		<content:encoded><![CDATA[<p>@lunacafu.<br />
Well, if u are tweening something that out of Class you don&#8217;t have to add properties inside class.</p>
<p>you catch the event onCuepointFind, u got the time and text, your object/movieclip that u wanna tween is out of class, just have some fucntion to show it(outside of class), and call that method inside onCuepointFind.<br />
Its almost the same thing you did, but not inside Class file itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lunacafu</title>
		<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/comment-page-1/#comment-66</link>
		<dc:creator>lunacafu</dc:creator>
		<pubDate>Mon, 04 May 2009 14:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=158#comment-66</guid>
		<description>I solved it like this;

XML:
var cuepoints:XML = 
	cue point 1 
	cue point 2 
	cue point 2 


added 2 new properties _targetObj and _tween to the Class and added the values to be dispatched with the checkForCuePoints() function.

in the FLA I changed:

function onCuepointFind(e:Event):void
{
	var _time = AudioCuePoint(e.target).cuepointTime;
	var _text = AudioCuePoint(e.target).cuepointText;
	var _targetClip = AudioCuePoint(e.target).cuepointTarget;
	var _tween = AudioCuePoint(e.target).cuepointTween;
	output_txt.appendText("cuepoint find time: " +_time+ " / text: "+_text+"/"+_targetClip+"--"+_tween+"\n");
	output_txt.scrollV = output_txt.maxScrollV
	this[_tween](this[_targetClip]); //this was hardest!!
}

and added the methods fadedIn and fadeOut


function fadeOut(mc:MovieClip):void
{
	TweenLite.to(mc, 1, {alpha:0});
}

function fadeIn(mc:MovieClip):void
{
	TweenLite.to(mc, 1, {alpha:1});
}

Works great, thanks!</description>
		<content:encoded><![CDATA[<p>I solved it like this;</p>
<p>XML:<br />
var cuepoints:XML =<br />
	cue point 1<br />
	cue point 2<br />
	cue point 2 </p>
<p>added 2 new properties _targetObj and _tween to the Class and added the values to be dispatched with the checkForCuePoints() function.</p>
<p>in the FLA I changed:</p>
<p>function onCuepointFind(e:Event):void<br />
{<br />
	var _time = AudioCuePoint(e.target).cuepointTime;<br />
	var _text = AudioCuePoint(e.target).cuepointText;<br />
	var _targetClip = AudioCuePoint(e.target).cuepointTarget;<br />
	var _tween = AudioCuePoint(e.target).cuepointTween;<br />
	output_txt.appendText(&#8221;cuepoint find time: &#8221; +_time+ &#8221; / text: &#8220;+_text+&#8221;/&#8221;+_targetClip+&#8221;&#8211;&#8221;+_tween+&#8221;\n&#8221;);<br />
	output_txt.scrollV = output_txt.maxScrollV<br />
	this[_tween](this[_targetClip]); //this was hardest!!<br />
}</p>
<p>and added the methods fadedIn and fadeOut</p>
<p>function fadeOut(mc:MovieClip):void<br />
{<br />
	TweenLite.to(mc, 1, {alpha:0});<br />
}</p>
<p>function fadeIn(mc:MovieClip):void<br />
{<br />
	TweenLite.to(mc, 1, {alpha:1});<br />
}</p>
<p>Works great, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lunacafu</title>
		<link>http://abrahamyan.com/2009/04/23/as3-simulating-cuepoints-for-sound/comment-page-1/#comment-62</link>
		<dc:creator>lunacafu</dc:creator>
		<pubDate>Sat, 02 May 2009 10:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=158#comment-62</guid>
		<description>nice Tutorial! Thanks

I would like to use this class to control the fade in/out of movieclips on stage. How would you extend/change the XML and the onCuepointFind function to fire something like

fadeOut = new Tween(mc, "alpha",None.easeNone,1,0,2,true);

Any hint appreciated.</description>
		<content:encoded><![CDATA[<p>nice Tutorial! Thanks</p>
<p>I would like to use this class to control the fade in/out of movieclips on stage. How would you extend/change the XML and the onCuepointFind function to fire something like</p>
<p>fadeOut = new Tween(mc, &#8220;alpha&#8221;,None.easeNone,1,0,2,true);</p>
<p>Any hint appreciated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
