Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Actionscript Fundamentals.

Name: Anonymous 2007-08-17 15:11 ID:oUtMZ81F

I dont know what the fuck is going on with me today:

scene contains: mc "00" containing dynamic tex "tex"
AS reads:

t= (_root.00.tex.text);
t = "1";

Error reads:

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: ')' expected
     t= (_root.00.tex.text);

Correct me if im wrong but there is clearly a coupled () in there.

also, if i put simply
     _root.00.tex.text = "1";

i get

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: ';' expected
     _root.00.tex.text = "1";

again, there is CLEARLY a ; on that

Name: Anonymous 2007-08-17 15:20 ID:eScw8tQF

The errors means that it expects the characters somewhere before where you put them. Too bad that it doesn't indicate at which column. Maybe identifiers can't start with a number?

Name: Anonymous 2007-08-17 15:23 ID:oUtMZ81F

christ im a noob. i just arrived at the same conclusion. works fine with a letter eg, i00, io1, io2 etc.

thx anyway anon =)

Name: Anonymous 2007-08-17 22:14 ID:QANQDeM6

Hint:

a.b is syntactic sugar for a['b']

You cannot do a.0, but you can do a['0'] or a[0]

Name: Anonymous 2010-11-27 5:00

<

Name: Anonymous 2011-03-31 12:11

I am the phantom autist

Don't change these.
Name: Email:
Entire Thread Thread List