Return-Path: Received: from mail-gx0-f169.google.com ([209.85.161.169] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4657575 for AE-List@media-motion.tv; Fri, 16 Mar 2012 22:11:12 +0100 Received: by ggeq1 with SMTP id q1so4862922gge.28 for ; Fri, 16 Mar 2012 14:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=jxqyYq5xd16yKt9nUlIUpAgplr82bVzs184zfuoYoiI=; b=iXEt5/2BjW2KLg90u5vIsF7Whjh+i7KeUMevmp0BJNwrPqZRC0z6FsmPw6LkxzXDvk odUbrzNeJcj49U9cM1OOrgKQh3GPbkAXH/OdjUw+6kfF7yukBMNt+NeHToHzZwo6hNg4 seWzZP5jQPb6xw4L7cfMJB8YkCM3megqBlSL3JBJGF+ZsecG/ukTKFIP47lYE61FLlt2 BwtJ3ZHim2ML9/tPlZ+X2xjVrLU3tYIePLPufDxKTO2pr7pDd2w8ls1pLQ+StSc5t1iH Tl1JdhBBIR2I43oyvBhS5PlS8MMztU+H4K3RoKmG5lPXuyl3SG6R+0ZtGBOr/dE1H6Z4 OrBg== MIME-Version: 1.0 Received: by 10.236.133.194 with SMTP id q42mr4120947yhi.107.1331932704197; Fri, 16 Mar 2012 14:18:24 -0700 (PDT) Received: by 10.236.25.71 with HTTP; Fri, 16 Mar 2012 14:18:24 -0700 (PDT) Date: Fri, 16 Mar 2012 14:18:24 -0700 Message-ID: Subject: Use condensed arrays? From: Nick Guth To: After Effects Mail List Content-Type: multipart/alternative; boundary=20cf30363585b2cdb204bb62bf1c --20cf30363585b2cdb204bb62bf1c Content-Type: text/plain; charset=ISO-8859-1 I was trying to use a condensed array in AE (on a text layer's source text), but it kept throwing an error. Does anyone know why this was throwing an error? *var temp = new Array("test,"test2");* *outputString = temp[0]* *ERROR* or using a literal array *var temp = ["test","test2"]* *outputString=temp[0]* *ERROR* Instead I had to break it out into separate arguments like this. Why does it need that? *var temp = new Array()* *temp[0] = "test";* *temp[1] = "test2";* * * *outputString = test[0]* -- Nick Guth --20cf30363585b2cdb204bb62bf1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I was trying to use a condensed array in AE (on a text layer's source t= ext), but it kept throwing an error.=A0Does anyone know why this was throwi= ng an error?

var temp = =3D new Array("test,"test2");
outputStr= ing =3D temp[0]
<= b>ERROR

or using a literal array
var temp =3D ["= test","test2"]
outputString=3Dtemp[0]
<= /blockquote>
ERROR

Instead I had to break it out into separate argume= nts like this. Why does it need that?
<= b>var temp =3D new Array()
temp[0] =3D "test";
temp[= 1] =3D "test2";

<= b>outputString =3D test[0]


--
Nick Guth
--20cf30363585b2cdb204bb62bf1c--