Skip to main content
Participant
November 17, 2010
Answered

I need Sample Flash phone Source

  • November 17, 2010
  • 1 reply
  • 1624 views

Hi

I need Sample Flash phone souce code .

thanks

This topic has been closed for replies.
Correct answer

We already provide source code for sample flash phone location is $(FMG-Install-Folder}\FMSApplications\telephony\FlashPhone\source\FlashPhone folder.

1 reply

Correct answer
November 18, 2010

We already provide source code for sample flash phone location is $(FMG-Install-Folder}\FMSApplications\telephony\FlashPhone\source\FlashPhone folder.

bob_sindyAuthor
Participant
December 18, 2010

Thanks a lot

I am beginner in flex and I am using Flex builder 4 .when I open this sample in flex 4 , 3 error showed in problem tab .

In audioClient.as

·         1119: Access of possibly undefined property info through a reference with static type flash.net:NetStream.            audioClient.as /FlashPhone/src           line 261           Flex Problem

·         1119: Access of possibly undefined property info through a reference with static type flash.net:NetStream.            audioClient.as /FlashPhone/src           line 262           Flex Problem

·         1195: Attempted access of inaccessible method getStream through a reference with static type Streams.            audioClient.as /FlashPhone/src           line 89 Flex Problem

But when I change Flex Compiler SDK version to 4 and use Flex compatibility 3 mode , only I have error 1195 in line 89.

I have no problem to use sample in my test server, I can call via my sip account .I can’t solve this error.

Thanks again for your help

Regards

December 18, 2010

Hi Bob,

        There is a known compilation error with the sample flash phone source ; The next FMG update on Adobe Labs is likely to have it fixed.

For now, you might try recompilation after updating FlashPhone/src/Streams.as  using the following steps:

         1) Streams.as: Line #33 : Change method signature of   getStream to public from private i.e.

                     public function getStream (streamName:String):NetStream {

          2) Streams.as: Line #149: Inside method name subscribeStream, right after line #149, insert a new statement to attach Netstream to video display

                     var ns:NetStream = this.getStream(streamName); // Line #149
                     rootApp.videoObj.video.attachNetStream(ns);        // Line #150: New statement

I hope it helps,

-Pankaj