# As and In (in actionscript 3.0)

**URL:** <https://forum.kirupa.com/t/as-and-in-in-actionscript-3-0/316692>\
**Category:** flash\
**Created:** [November 30, 2010, 3:35am UTC](https://forum.kirupa.com/t/as-and-in-in-actionscript-3-0/316692 "2010-11-30T03:35:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerdang](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zerdang](https://forum.kirupa.com/u/zerdang)\
**Post date:** [November 30, 2010, 3:35am UTC](https://forum.kirupa.com/t/as-and-in-in-actionscript-3-0/316692/1 "2010-11-30T03:35:12Z")

</div>

So i’ve always been a little confused as to what As and In do.  
:ne:

```auto

var displayValue:Object = d[n];
displayValue = FacebookDataUtils.stringToDate(displayValue as String); break;

```

would this make displayValue a string? Or would it do something entirely unrelated to that?

```auto

private var d:Array = new Array();

for (var n:String in d)

```

I think that this would check for the string “n” in the array d which you could follow with a function block.  
Thanks in advance…
