<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>ActionScript.org Forums</title>
		<link>http://www.actionscript.org/forums/</link>
		<description>ActionScript.org is a large online community for Macromedia Flash developers at all skill levels. We offer tutorials, open source, scripting assistance, book reviews, scene news and a means of contact between developers.</description>
		<language>en</language>
		<lastBuildDate>Sun, 19 May 2013 01:35:53 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.actionscript.org/forums/images/misc/rss.jpg</url>
			<title>ActionScript.org Forums</title>
			<link>http://www.actionscript.org/forums/</link>
		</image>
		<item>
			<title>Checking if video is attached to netstream</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=279132&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 23:20:05 GMT</pubDate>
			<description><![CDATA[I'm working on a video chat application and I'm building a feature where someone who starts a call can switch the call to an audio call. Now the...]]></description>
			<content:encoded><![CDATA[<div>I'm working on a video chat application and I'm building a feature where someone who starts a call can switch the call to an audio call. Now the receiver gets a link for the call and when they join the call the application gets their camera and microphone and attach it to the netstream. What I want is if the initiator if the call turns his camera off when starting the call when the receiver who joins the call, the application shouldn't get the Camera because their is no video attached to the netstream.<br />
Now I have used netstream.info.Videobytespersecond but since the opposing video and audio doesn't start immediately when the receiver joins the call (There is like a 3-4 second delay) the function keeps returning 0 at the start of the call whether or not the netstream has a video attached to it or not.<br />
<br />
This is what I did<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">public function checkVideo():Number&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hey=_incomingStream.info.videoByteCount;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return hey;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
if(_outgoingStream &amp;&amp; _incomingStream!=null ){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(checkVideo()&gt;0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _outgoingStream.attachCamera(camera);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _outgoingStream.attachCamera(null);</code><hr />
</div>It didn't work.<br />
<br />
Next I read about the netstream.send() function and so my idea was that when a user initiates a call he/she will send at message in the netstream which will basically flag true if the user initiated a video call or false if the user initiated an audio call. Then when the receiver joins if the flag is false their camera won't be initiated but if the flag is true the camera would be initiated.<br />
<br />
When I implemented it, it didn't work. I don't know if there is something I did wrong while implementing. <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if(camera &amp;&amp; !muteCam )</code><hr />
</div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {//Initate call<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; camera = setCameraQuality(camera);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yourVidHolder.attachCamera(camera);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(_outgoingStream &amp;&amp; _incomingStream==null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _outgoingStream.attachCamera(camera);<br />
&nbsp;  _outgoingStream.send(&quot;flagVideo&quot;, true);<br />
<br />
----------------------------------------------------------------------------------<br />
public function flagV():Boolean<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _incomingStream.client.flagVideo=function(flag:Boolean):void{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; check=flag;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return check;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
if(_outgoingStream &amp;&amp; _incomingStream!=null ){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(checkVideo()&gt;0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _outgoingStream.attachCamera(camera);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _outgoingStream.attachCamera(null);&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>But I can't get it to work. Can anyone help me out please? <br />
Also maybe there is a better way I could check if the netstream has a video attached to it? Thanks!</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>thenabster</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=279132</guid>
		</item>
		<item>
			<title>adding core issu on press of a button</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=279131&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 20:03:06 GMT</pubDate>
			<description>i have score trying to add the value by 1 on the press of the button. no change in the value.  
 
I want to increase the score and why its not...</description>
			<content:encoded><![CDATA[<div>i have score trying to add the value by 1 on the press of the button. no change in the value. <br />
<br />
I want to increase the score and why its not working any help cheers <br />
<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:500px; height:196px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">var</span> myNumber:<span style="color: #993300;">Number</span> = <span style="color: #000000;">0</span>;
<span style="color: #993300;">var</span> myString:<span style="color: #993300;">String</span> = myNumber.<span style="color: #993300;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;

score.<span style="color: #993300;">text</span> = myString;

btn.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>MouseEvent.<span style="color: #000000;">CLICK</span>, submitFunc<span style="color: #000000;">&#41;</span>;
<span style="color: #993300;">function</span> submitFunc<span style="color: #000000;">&#40;</span>event:MouseEvent<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
myNumber ++
score.<span style="color: #993300;">text</span> = myString;
<span style="color: #000000;">&#125;</span></div></div></pre>
</div></div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>hansolo</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=279131</guid>
		</item>
		<item>
			<title>Reading Excel in ActionScript</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=279130&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 17:13:56 GMT</pubDate>
			<description><![CDATA[I want to read Excel files in actionscript. I'm using Ben Morrow's xlsx reader. Here is the code:  
 
package 
{ 
	import...]]></description>
			<content:encoded><![CDATA[<div>I want to read Excel files in actionscript. I'm using Ben Morrow's xlsx reader. Here is the code: <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:500px; height:516px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript">package
<span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; <span style="color: #993300;">import</span> com.<span style="color: #000000;">childoftv</span>.<span style="color: #000000;">xlsxreader</span>.<span style="color: #000000;">Worksheet</span>;
&nbsp; &nbsp; <span style="color: #993300;">import</span> com.<span style="color: #000000;">childoftv</span>.<span style="color: #000000;">xlsxreader</span>.<span style="color: #000000;">XLSXLoader</span>;
&nbsp; &nbsp; 
&nbsp; &nbsp; <span style="color: #993300;">import</span> flash.<span style="color: #000000;">display</span>.<span style="color: #000000;">Sprite</span>;
&nbsp; &nbsp; <span style="color: #993300;">import</span> flash.<span style="color: #000000;">events</span>.<span style="color: #000000;">Event</span>;
&nbsp; &nbsp; 
&nbsp; &nbsp; <span style="color: #993300;">public</span> <span style="color: #993300;">class</span> ExcelProject <span style="color: #993300;">extends</span> Sprite
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">//Create the Excel Loader</span>
&nbsp; &nbsp; &nbsp; &nbsp; protected <span style="color: #993300;">var</span> excel_loader:XLSXLoader=<span style="color: #993300;">new</span> XLSXLoader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">public</span> <span style="color: #993300;">function</span> ExcelProject<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">//Listen for when the file is loaded</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; excel_loader.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>Event.<span style="color: #000000;">COMPLETE</span>,loadingComplete<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">//Load the file</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; excel_loader.<span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"myExcel.xlsx"</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">//Handler for loading complete</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">function</span> loadingComplete<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>:Event<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">//Access a worksheet by name ('Sheet1')</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> sheet_<span style="color: #000000;">1</span>:Worksheet=excel_loader.<span style="color: #000000;">worksheet</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"Sheet1"</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">//Access row E and output to trace</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"Row E="</span>+sheet_<span style="color: #000000;">1</span>.<span style="color: #000000;">getRowsAsValues</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"E"</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">1273</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
Keep in mind I'm a beginner. <br />
<br />
<b>1. This code gives error : TypeError: Error #1086: The childIndex method only works on lists containing one item. Why? And how do I fix it?</b><br />
<br />
<b>2. Also, how do I make a function that &quot;pushes&quot; the string of all the cells in a row to an Array?</b><br />
<br />
For intance: I have a table:<br />
...| A<br />
1 | Cat<br />
2 | Dogs<br />
3 | Cat<br />
4 | Computer<br />
<br />
function that pushes each cell's value to an Array. So that there is myArray = [Cat], [Dogs] etc. <br />
<br />
Thank you so much for support!</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>ssgupta</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=279130</guid>
		</item>
		<item>
			<title>AS3 Mixing Multiple Arrays</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=279129&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 15:45:25 GMT</pubDate>
			<description><![CDATA[Hey all, 
 
The code below shows how I'm mixing an array. 
 
My question is how do I mix multiple arrays but keep the objects inside the arrays in...]]></description>
			<content:encoded><![CDATA[<div>Hey all,<br />
<br />
The code below shows how I'm mixing an array.<br />
<br />
My question is how do I mix multiple arrays but keep the objects inside the arrays in the same order?<br />
<br />
e.g. Say I have category2 and it contains &quot;a&quot;, &quot;b&quot;, &quot;c&quot; ... if I always wanted &quot;a&quot; to be in the same position in the array as &quot;1&quot;<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">var category1:Array = new Array(&quot;1&quot;, &quot;2&quot;, &quot;3&quot;);<br />
<br />
mixNum = category1.sort(cardShuffle1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
function cardShuffle1(category1, mixNum):Number {<br />
&nbsp; &nbsp; &nbsp; &nbsp; randomNum1 = Math.round(Math.random()*2)-1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return randomNum1;<br />
}</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>antsuperhack</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=279129</guid>
		</item>
		<item>
			<title>Connecting Flash to SQL Database</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=279128&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 11:32:06 GMT</pubDate>
			<description>Hi, 
 
I know that flash can be connected to sql server thorugh server side script php or asp. I have done a software in flash AS2 which has to be...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I know that flash can be connected to sql server thorugh server side script php or asp. I have done a software in flash AS2 which has to be activated through online and also the activation has to to limited to 1 time. I want something like, as soon as it is opened, user will be asked to enter product key. Then it will connect to the server, compare product key with the key assigned in server, if matches, it will be activated. And it should happen each and every time whenever it is opened to protect this from piracy. Please help. The deadline for this project is 30th may 2013.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=35">ActionScript 2.0</category>
			<dc:creator>rajesh2676</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=279128</guid>
		</item>
		<item>
			<title>playWhenEnoughDownloaded() settings</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=279127&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 07:24:09 GMT</pubDate>
			<description><![CDATA[I've got a video that plays within a flash movie.  It plays using the following code: 
 
backgroundVideoLoader.playWhenEnoughDownloaded(); 
 
The...]]></description>
			<content:encoded><![CDATA[<div>I've got a video that plays within a flash movie.  It plays using the following code:<br />
<br />
backgroundVideoLoader.playWhenEnoughDownloaded();<br />
<br />
The problem is that, even when I launch the .swf locally, it takes 15+ seconds for the video to start playing.  There isn't even a download required, as the video is in the same folder as the flash file locally on my hard drive.  Is there a way to set a time limit for the playWhenEnoughDownloaded() portion?  It does not appear to take any arguments.  I can't seem to find anything about this either in these forums, google, or even my copy of the ActionScript 3.0 Bible.<br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>xProteuSx</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=279127</guid>
		</item>
		<item>
			<title>3D Alien Buildings for Game Design</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=279126&amp;goto=newpost</link>
			<pubDate>Sat, 18 May 2013 04:11:01 GMT</pubDate>
			<description>Trying out alien buildings for more variations. 
Went for dark alien scheme for darker scenes. 
  
Please check out and rate the video link below. 
...</description>
			<content:encoded><![CDATA[<div>Trying out alien buildings for more variations.<br />
Went for dark alien scheme for darker scenes.<br />
 <br />
Please check out and rate the video link below.<br />
<br />
View in 360 degree: YouTube channel: Angryfly3D<br />
<br />
About me:<br />
3D Artist for game design and development.<br />
<br />
Appreciate for all the feedback.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=91">Gaming and Game Development</category>
			<dc:creator>Angryfly</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=279126</guid>
		</item>
	</channel>
</rss>
