# AMFPHP & pendingCall

**URL:** <https://forum.kirupa.com/t/amfphp-pendingcall/177128>\
**Category:** programming\
**Created:** [January 30, 2006, 2:10pm UTC](https://forum.kirupa.com/t/amfphp-pendingcall/177128 "2006-01-30T14:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nallode](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@nallode](https://forum.kirupa.com/u/nallode)\
**Post date:** [January 30, 2006, 2:10pm UTC](https://forum.kirupa.com/t/amfphp-pendingcall/177128/1 "2006-01-30T14:10:23Z")

</div>

Hi  
i have a problem in calling 2 service methods form 1 single swf file.I am using as2 to do so, the same file will work in case of as1.

I think there is a preoblem with pendingCall init.

the code works when i call just 1 method from the service but gives an error if i call another in the same file.

I tried to int the pendingCall in a different var called pc1 and pc2 but it still gives me an error.

Im i doing any mistake in pendingCall method.
