Variables...(i dunno what to name this thread)

ok…well if you know PHP…then you know that you can create a string variable…and then use the value of that variable to declare another variable. like this:

<?php
$foo = "haha";
$i{$foo} = "success";
print $i{haha};
?>

and it would display “success”…

or like this:

<?php
$foo = "haha";
$$foo = "success";
print $haha;
?>

and it would also display “success”.

do you know of any way that i can do this in actionscript?