Flash [] Question
Flash [] Question
- Started
- Last post
- 6 Responses
- Stylus
Am I on crack ?
If I write
foo["bar"]="hello"
trace (foobar)
the output should be hello and not undefined, I'm using MX Pro 2004 for the first time and I swear this use to work on previous versions. Any help anyone ?
- stewart0
output is undefined in MX too.
- nospacebar0
foo.bar
- Stylus0
i am on crack
this[foo+"bar"]="hello"
- stewart0
hel[foo+"this"]="lo bar"
- 8urt0
hows about trying
foo = new Array;
foo["bar"] = "hello";
trace(foo.bar);works in Flash 5 so will work in MX too
- shant0
don't need the new Array deal. It's the . he was missing in foo.bar