# Getting code to commicate with other code really well help?

**URL:** <https://forum.kirupa.com/t/getting-code-to-commicate-with-other-code-really-well-help/305289>\
**Category:** Uncategorized\
**Created:** [February 22, 2010, 9:44pm UTC](https://forum.kirupa.com/t/getting-code-to-commicate-with-other-code-really-well-help/305289 "2010-02-22T21:44:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alecz127](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@alecz127](https://forum.kirupa.com/u/alecz127)\
**Post date:** [February 22, 2010, 9:44pm UTC](https://forum.kirupa.com/t/getting-code-to-commicate-with-other-code-really-well-help/305289/1 "2010-02-22T21:44:55Z")

</div>

alright, ive ran into this problem so many times now, because i dont really understand the overall communication with as3, and how to get code from one place to communicate with code in another place.  
for example.  
say i have code on 3 different keyframes, the first frame has code that assigns a variable  
var isShotgun:boolean = false;  
and i want code on frame 2 to pay attension to that snippit of code, and act accordingly to whether isShotgun is true or false.  
its hard to really find a good example. but basically im struggling right now to get further with my coding because something wont know what im talking about when i enter in certain code that would act according to another piece of code, or even just getting an .as file to work really well with other .as files.  
can anyone help?
