FMS do not read main.asc. I'm going to crazy. Someone help me.

Hello. All.

I find enough. and I did my best for 3 days.

Unfortunately, I could not solve this problem.

If you help me, you can be my ray of sunshine.

I develop text Chat application using the Flex4.6 & 4.5 FMS.

I want to count the number of users online.   I found some information by Googling.

As a result of Google search, I figured out that I need SSAS (Server Side Action Script)

http://www.fmsguru.com/showtutorial.cfm?tutorialID=48

I followed what he did pecfectly. This source code is what I did.

UserCount.mxml

------------------------------------------------------------------------------------------ -------------------------------------

<? XML version = "1.0" encoding = "utf-8"? >

"" < s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009http://ns.adobe.com/http://ns.adobe.com/mxml/2009mxml/2009"

xmlns:s = "library://ns.adobe.com/flex/spark".

xmlns:MX = "library://ns.adobe.com/flex/mx".

minWidth = minHeight = "955" "600" currentState = "LogIn" >

< s: states >

< name s: State = "LogIn" / >

< name s: State = 'LoggedIn' / >

< / s: states >

< fx:Declarations >

<! - Place non-visual elements (e.g., services, items of value) here - >

< / fx:Declarations >

< fx:Script >

<! [CDATA]

private var nc:NetConnection;

protected function button1_clickHandler(event:MouseEvent):void {}

NC = new NetConnection();

nc.addEventListener (NetStatusEvent.NET_STATUS, onNetStatus);

NC.client = this;

NC. Connect ("rtmp://192.168.0.5:80 / livepkgr /");

}

public void setUserCount(userCount:Number):void {}

userCountText.text = userCount.toString ();

}

private void onNetStatus(e:NetStatusEvent):void {}

If (e.info.code.IndexOf ("Success")! = - 1) {}

currentState = 'LoggedIn ';

}

}

[]] >

< / fx:Script >

< s:Panel includeIn = "LogIn" x = "10" y = "10" width = "250" height = "200" title = "Login to my application" >

< s:Button = "89" x = "64" label = "Login Now!" click = "button1_clickHandler (event)" / >

< / s:Panel >

< s:Label = "LoggedIn" x = "150" includeIn = "136" color = "#0E55F6" fontSize = "20" text = "You are now logged!" / >

< s:Label = "LoggedIn" x = "151" includeIn = "94" width = "214" color = "# 8 2222" id = "userCountText" text = "" / >

< / s:Application >

hand. CSA

------------------------------------------------------------------------------------------ -------------------------------------

application.onConnect = function (client)

{

application.acceptConnection (client);

userCount = application.clients.length;

customer. Call ("setUserCount", null, userCount);

}

------------------------------------------------------------------------------------------ -------------------------------------

1. I have published this project.

1.jpg

2. I got the released files.

2.jpg

3. I copied these files to the webroot of the FMS and the file main.asc also.

3.jpg

4. I connected this remote PC server. I could connect. And I clicked on the button.

http://xxx.xxx.x.x:8134/UserCount/UserCount.html

4.jpg

NO REACTION

5. so, I checked setUserCount point of stop. This method is called by SSAS.  I want to know whether or not this method is called. But there is no break. This means main.asc does not work.

5.jpg

Pls know me what is my mistake.

Thanks in advance

Kevin.

.HTML is you client app. That you serve over http. FMS come into piture, when you your client to connect to http://///

But in your client application, you must connect to FMS via rtmp url (that I see in your msxml), as nc.connect ("rtmp://192.168.0.5:80 / livepkgr /" "");

Here the connection url must be of format rtmp://server-ip/

In my last reply, I meant fms-app-name. It is application fms server side (main.asc), which must be in the folder of the application of the WFD

Tags: Adobe Media Server

Similar Questions

  • Hi, my dvd player does not show on my computer and Device Manager. can someone help me?

    Hi, my dvd player does not show on my computer and Device Manager. can someone help me? HP dv6700z laptop.

    # It is now showing there either. Thank you.

  • I have a mac and I need to remove it, but it will not erase because it will go in the trash, someone help me?

    I downloaded firefox to see if he could load a website, I tried to go, but he did not, now I want to delete it on my macbook, I tried to drag the applications and drag it to the trash, but I wouldn't. I'm desperate can someone help me please?

    See:

  • laptop 430 g1: do not read the DVD and displays only the files PLEASE help!

    Hey! I have a big problem.
    I bought a DVD player that should work for watching movies
    plug in properly and it should work without installation.

    When I put the DVD disc shows the only bunch of displayed files. I can't open these files, or watch them.

    I have three different programs should work to play the movie: KMPlayer, iTunes and Windows Media Player. Nothing works! Please, please, I need help!

    I had to fix it with this, I couldn't call HP support, they sent me back and forth... so I solved it myself!

    http://filehippo.com/download_klite_codec_pack/

  • Whenever I am watching a video in HD, the browser starts hanging all the time. This is not the case in any other browser. Can someone help me?

    Watching videos on YouTube is one of the things I do mainly on the internet. My GPU is able to handle HD videos. That's why I allow it. Although Firefox seems not to like it. He begins hanging is 4 to 6 seconds apart. And the most interesting part is that the other browsers (IE, Chrome and Opera) do not do this. I have tried everything that said aid resources, but nothing changed. Please help me!

    Have you tried to disable the safe_mode in the Flash plugin?

  • Im having trouble replying to ads from craigslist. My computer says it does not recognize yahoo as my server... can someone help please?

    Somehow it is said than his back sending emails because it does not recognize the server, I use Verizon wireless as an internet connection and Im not sure how change this and its driving me Ben Ali...! Help, please...

    You need a default mail client to meet with Craigslist. Yahoo's Webmail, but there is a solution to make it by default.

    How can I make Yahoo! Mail my default email application?
    http://help.Yahoo.com/l/us/Yahoo/mail/YAHOOMAIL/settings/settings-10.html

  • Portege R100: integrated SD card reader does not read a 2 GB SD card

    Hello world!

    Need help please, I have a problem:

    -the Freecom carbs built-in player does not read a 2 GB SD card!

    Please help, what is the solution?
    An update of the driver? Where can I find this update?

    TKS in advance

    Please check this answer:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=15247

    It s not the same unit, but the same question. Not all sizes of SD cards are supported.

  • Cardbus M30X ENE - not read SD card problems

    Hello world!

    Need help please, I have a problem:

    -the built-in carbs ENE 714 player does not read a 2 GB SD card?

    Please help, what is the solution?
    An update of the driver? Where can I find this update?

    TKS in advance!

    Hello

    Unfortunately, the SD card reader uses the common Microsoft Windows drivers and you won't find it on the Toshiba site. I read some reviews on the integrated SD card reader and it seems that the notebooks are not able to manage a larger SD cards.

    In such cases, I really recommend to buy a USB card reader extended simple. These devices are not expensive and I m sure that this device must be compatible with 2 GB SD cards.

  • Airport Extreme will not read Time Capsule trying to create network roaming

    I have read all the forums on that alone and became frustrated. I am creating a roaming network for a time at an airport extreme capsule. I followed the directions of countless times without success. Time Capsule is set to DHCP and Nat, while the extreme is in Bridge Mode and has the exact same name and password network settings. Now, I have to say that the ethernet cable connecting is extremely long (well over 100 meters) and I know that the connection will degrade, some, but my lap top is able to capture the signal when I connect it directly to the cable coming from the time Capsule, so I know that the cable works. In fact, this is how I am writing this post right now! My problem is that the Airport extreme will not even read the time capsule at all. Can someone help me please? A friend told me that I might have to configure the router second to accept the connection at a slower pace? I don't know what that means. Sorry to be a pain.

    has the exact same name and password network settings.

    Just to double check that you mean the password and the name of wireless... not the base station name and password the names of base station must be different.

    Now, I have to say that the ethernet cable connecting is extremely long (well over 100 meters) and I know that the connection will degrade, some, but my lap top is able to capture the signal when I connect it directly to the cable coming from the time Capsule, so I know that the cable works.

    To the limit sometimes the gradient exceeds just slower... it does not connect.

    If you check the laptop goes to the Advanced preferences network ethernet to the last tab has the speed dropped to 10Mbit? The extreme is not able to go as low automatically... and unfortunately there is no controls for the later models.

    What model is your extreme?

    If it's a Gen5 or an earlier version... you can use older airport utility to set the speed of the wan port. This feature is removed from models later, of course... and the AU later so does she. If you can go try it using full duplex 10mbit. If that works try 100mbit full duplex, but you might find it's too fast.

    A friend told me that I might have to configure the router second to accept the connection at a slower pace?

    Your friend has a good idea.

    I would have cut the cable in the middle... and put an end to both ends. Then place a switch on the line (not a router). A switch is a bit like an amplifier. It is to retransmit the signal so it can go another 100M...

    The other issue is on pairs... If you have installed this cable yourself and terminated yourself you were affecting the pairs?

    Ethernet is delicate to the wire because of its origins as the wiring phone... where the Center pair is for the phone.

    MacBook won't connect to the Internet via long cable?

    Here is a very similar problem to yours... was bad ethernet endpoints. Break the pairs at your own risk.

  • URGENT DSC: I can write to the shared variable but can NOT read?

    Hi all

    I use DSC to communicate with an automaton of DVP28SV DELTA. I managed to write to a coil to turn on a fan, and I have also written in a register.

    However, when I tried to read the spool (spool the same I just turned on) or when I tried to read a record that I'm very sure that has values registry where I configure the parameters of modbus, it would return to ZERO, even when I tried to read the registry I just write in the answer was zero (I do not know the entry in the registry was successful because I did the specific value that) I wrote to the registry a condition to turn on a light).

    So, anyone know why this might be happening? the registers are read/write. I thought it might be time to scanning in the controller is too short, so I added delays, but everything I read always gives zero return. ideas? can someone help me with this?

    Here's the manual for registration of corporations, in the case where it is important: http://www.delta.com.tw/product/em/control/plc/download/manual/DVP-PLC-Program_O_EN_20120416.pdf

    In fact I solved this in time ^^ in the case where someone faced the same question and get zeros in the response, which has worked for me exchange of programming (by clicking with the right button on the shared in my VI variable).  Why it works? no idea. but variables starting to give me the correct values.

  • E reader is not read disc on my ENVY TouchSmart PC

    I have problems with my DVD/CD is not being played on the e: drive...   It worked yesterday, but last night when I put a DVD in it was not read the DVD... Any suggestions will help.

    Thank you

    Sherry

    Hello

    See if the following makes a difference.

    Open windows control panel, open Device Manager, expand CD-ROM/DVD-ROM drives, right-click the drive and select uninstall.

    Once it finished, open the Device Manager window.

    Click on the Menu start, open the all programs, open accessories, right-click on command prompt and select "run as Administrator".  In at the prompt, type the following command and press ENTER.

    sfc/scannow                (Note that there is a space between sfc and /)

    Let the entire process, then the output type and press ENTER.

    Return to the Device Manager window and click the "Search for hardware changes" (usually just below help in the toolbar).  Let windows reinstall the disc and see if it works now.

    Kind regards

    DP - K

  • I am trying to download zipped files that were sent to me. They download, but when I try to access it, I get a box that says "application not found". Can someone help me?

    I received files in zip format that I downloaded.  However, when I click on the file to open it, I get a box that says "application not found" and I am not able to access the files.

    Can someone help me understand what is happening and why I can't download files more

    Hi Barbara,

    1. is the specific issue confined to zip files?

    2 have you made changes on the computer before this problem?

    3. is there any software zip file that is installed on your computer?

    First of all, I suggest you try to access a different zip file and check if you are able to open. This will help us know if the problem is with the zip file special or the application.

    I suggest you do a right click on the particular file and select extract and check if you are able to access the particular file.

    See the following for more information Microsoft article.

    Compress and uncompress files (zip files)

    Hope that the information provided is useful.

  • Can not make a call to main.asc

    Well, I have something simple past, but I can't. I'm trying to add a function of heartbeat to main.asc so that my client applications can often detect a connection. But I can't call to work.

    Here's the code for the main.asc:

    Client.prototype.Heartbeat = function()
    {
    trace ("typed Heartbeat");
    return "Hello!";
    }

    This is the call for the customer:

    private void ConnectionTest)
    {
    var rtn;
    RTN = m_connection.call ("heartbeat");
    If (rtn! = 'Hi!') {
    Alert.Show ("heartbeat lost");
    }
    }

    I'm following other examples in the code that work. I get no response from the main and the function trace to hand does not print in the server admin page, where I expect to see. You can see what the problem is?

    You set the NetConnection instance variable in a function? If so, it could be an issue of concern. For example:

    function doConnect() {}
    var nc = new NetConnection()
    NC. Connect (blah, blah)
    }

    If you do it this way, the scope of the var is the function, so you get vacuuming when the function is done running.

  • Where should I place main.asc?

    Hi ~ all.

    I placed the main.asc in /FMS/webroot/main.asc

    It does not work.

    so I put here.

    / FMS/Webroot/MyApplication/hand. CSA

    This also does not work.

    The path is correct?

    How FMS can recognize main.asc file?

    Thanks in advance.

    To connect to an application, the server must know that there is a demand. This process is called registration request to the server. To register an application with the server, create a folder of application in the applications folder. For example, create the following folder to save an application called "MyApplication":

    RootInstall/applications/myApplication

  • SD-2212 drive does not read some DVD - Satellite 1410

    Hello every1,
    I have the Satellite 1410 604 for more than 2 years, with player combo mentioned above...
    It serves me right, except that it does not read certain types of dvd media, and I use only high quality DVD Verbatim...
    It happens that in the last months. It is not my main computer but it's to use in my house, and it really bothers me when my sister or father takes the new A60 Pro satellite on the road (its battery is better), I can't use last discs on it. So if there is a cause of upgrade, firmware I can't find on this site...

    Thanks in advance...

    Hello

    I don t think that the firmware update will solve this problem because this pilot acknowledged this DVD some time ago.
    In addition, I put t found any firmware of this drive on the Toshiba site.

    But check if the disk by removing the procedure will solve this problem. So why go to Device Manager and remove the disc. After again starting the operating system should recognize the drive again

    Good bye

Maybe you are looking for