Flex :: Chatroom - Showing Who Is Online And What Happen If The User Close The Web Browser Without Disconnect
Apr 14, 2010
I have developed a simple chat room but how do I go about showing who is online and what happen if the user close the web browser without disconnect, will the user name in the online list be remove immediately? I use mx.messaging.channels.StreamingAMFChannel and set <subscription-timeout-minutes>3</subscription-timeout-minutes>
Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]
I have a problem where I'm streaming a video via RMTP from akamai for a video serving site and an issue has come up during QA where a user starts a video stream and then disconnects their internet connection, which causes the video player to go into the buffer state. The problem occurs when they reconnect their internet connection and we'd like to pick up the stream again.
when I'm streaming in live :a. FMLE is disconnect for couple seconds (10 -30), stop encoding and then renew the connection and the encodingb. In the same time, I can see users (streams) are disconnecting/ disappear from the console.As said it can happen once in a session, but this disconnect most of the users and they have to refresh their browserto get the live session again.Currently I'm using FMSS 3.5.4 r210, Linux redhat 5.2,6 Intel(R) Xeon(R) CPU 16GB.I found a post named "FMS disconnect from FME" (Jun 7, 2010 3:36 PM by BJWP Ltd)
I am aware of the new FlashBuilder 4.5 mobile application settings. I am aware that it uses an enhanced version of AIR to make apps that work well on mobile devices, which would normally mean that I can't have it run in the browser. I'm also aware that I should be able to get the enhanced performance if I create a swf with the correct compiler settings, and use the correct base components for my application. What are the correct base components? Spark or MX or something else? What are the correct compiler settings? I need the application to work for both desktop users, and mobile users who visit the website through their flash enabled browser.
There are three important features. Being able to load a file from the mobile device/computer. Being able to have the softkeyboard activated when needed. Good mobile performance
I have a flex application that uses BrowserManager for Deep Linking.
But whenever the # changes the new hash fragment gets appending to the bottom of the page. In IE it is inside a frame that says "Hidden frame for Browser History support." I didn't even know it worked that way. But anyways it is not supposed to be showing up visibly on the page but it is..
I want to download files from the server side to client side without prompting a window to the user to download when any updates happen at server side.Right now I am using urlstream class but first file is downloading completely rest of the files contents downloading partially.
editCode sample taken from other post. Warning: it's a huuuge chunk o'code.
Flash CS4 Pro I created a Flash video, which when previewing locally works fine, but then I upload the files to the webserver, then nothing is displayed, I only see a white area where the Flash video should have been (no broken image icon, see the attached jpg file, it shown an white area where the video is suppose to appear).
I'm creating a website for somebody, and it works perfect offline, i have two empty movie clips on the main site. And one loads an external video player(swf), and the other loads the external accordion menu (swf) of the site. I test it offline and it works perfect. But when i test it online (hosted) its not loading the accordian menu.
I am using Papervision2 great white. I am also using imported 3D objects from maya exported as collada files. Now working in flash everything shows up fine and dandy, no problems. However when I upload it (every file actually, I never move anything just in case) the avatar im using, a van, doesnt show up at all. The other DAE files do because they arent using any textures. The van has a UV texture applied to it, so I'm assuming that's what screwing it up. I am working inside flash. I'm not using any external AS files.
var daeFile: DAE; daeFile=new DAE; daeFile.load("van2.dae"); var universe: DisplayObject3D;
I am going mental with this one. I have a dynamic text field on one layer, and action layer on top of that. Render text as html on, and needed characters embedded.
Code: System.useCodepage = true; var format = new TextField.StyleSheet();
I'm running into a very strange issue when testing an application I'm building online: loaded images aren't showing.When testing locally everything works fine.I'm retrieving the images from an Adobe Scene7 server, and there's a crossdomain.xml in place there with the correct entries. I'm getting the right bytesLoaded and bytesTotal. I'm not getting an IOError Event.What could be wrong?
Here's a piece of the offending code: (I replaced Event.COMPLETE with Event.INIT, hoping it might make a difference, but it doesn't) [AS]loader.contentLoaderInfo.addEventListener(Event.IN IT, onImageComplete);
I need to do some updates to components after a user has resized the browser window. Is there a good solution to determine when a user has completed resizing? I wasn't able to find any flex events that would cover this case.
I've finally finished my flash xml gallery, and have tested it to my complete satisfaction using dreamweaver. When I do a preview from dreamweaver, or just open up the gallery html file from explorer the swf loads the xml file and all the images flawlessly, everything works. However when I move the site for testing on my mac laptop it loads the xml file but not the images. When I upload it to my test website it doesn't even load the xml file. I just copied the root folder over in all cases I dont understand why it wont work. You can see it here: [URL]
Could this be some export setting I am using incorrectly? Why would it work locally on a windows machine, and not locally on a mac or online on either. I tried re exporting the swf after saving it as CS3 from CS4 and changing the local playback security to only allow network. So now it loads the xml data online but not locally. Thumbnails still aren't showing up online though.
My Flash file works fine on local file, but when loaded to hosting site, nothing shows. Zilch. Not had this problem before, but I've not tried with this hosting service before, which is GoDaddy. Could that be the problem? Or is there something wrong with my coding? Here's the URL: [URL] The Flash is 1020 px wide, 350 px high, and its supposed to be right under the spry menu (which isn't working either for some reason! No drop and wrong color for rollover!).
I have a Flex client application. I need a clean up function to run in Flex when the user closes the browser. I found the following solution on the net, but it only works half-way for me. How could I fix it?CustomEvent triggered, but not executed. >> EventHandler for CustomEvent.SEND_EVENTS is defined by a Mate EventMap. All the handler does is to call an HTTPServiceInvoker. In debug console, I'm able to see the handler and HTTPServiceInvoker being triggered, but neither the resultHandlers nor the faultHandlers were called. I know this event handler has no problem because when I dispatch the same CustomEvent.SEND_EVENTS in a button click handler, it behaves exactly as I expected)Browser seems to wait for cleanUp function to complete before it closes. (all traces were printed before browser closes down)
Code I added the following into the index.template.html window.onbeforeunload = clean_up;
We are going to develop a simple chatroom in flex using Red5.Should we store UserList in a Remote Shared Object or Server Side List?Are there any example exit on Red5 or FMS , which uses Server Side programming and Remote Shared Objects? Red5 examples are not documented at all.
I have a publisher who publishes a netstream using stratus p2p. This is then connected to by player who subscribes to the netstream.
I believe one can reject the subscriber when the stream tries to connect by using the onPeerConnect method of the netstream's client. However, I would like to boot the subscriber after they have been connected.
There are potentially other subscribers to that netstream so I cannot just close it. How would I boot a particular subscriber without closing the published netstream?
I'm developing a chat system and i need to detect the FlexClient disconnect in Java, using the longpolling channel. I can't use the Streaming channel, because of some bugs that this kind of channel still has. Do you have any suggestion on how could i accomplish this? I'm using BlazeDS.
In a game, how would I go about keeping records if a user is online or offline? I know when they logged in it could set something in the database that would indicate that they are online, however how would I know when they logout in any other method than pressing the "logout" button? Say if they just closed their browser..
tell if a user is online, once they log in I set something in the database that say's they're online, when they log out change that. And set something up so they will d/c after 5-10 minutes of inactivity in case they log off any other way besides hitting "log out" However, I'm not exactly sure how I would do this, because the only way that I can think of wouldn't work, because say if they just closed their browser, then it would stop running my application, and thus stop running my check to check for inactivity..
how I can make sure if a user is already logged in accurately?
this is probably a really simple code, (it might be javascript i dunno)... but i want a simple 'X' button that will close my window when the user clicks it.---------------------------------------------------
I'm working on an online editing website. how to receive the image after the user edit it (change colours, add text) in to my email (as a PDF, JPEG, PNG,...??)?
I got a mxml file that launch a script on my http server through a HTTPService.send() call. Since the script on the server side takes a LOOOONG time (it could take even more than a hour) i would like to drop the connection between my air application and server when a button is clicked. Don't know why but calling HTTPService.disconnect() is totally useless... No tcp connection drops and script keeps on running on server side. No HTTPService.cancel() nor set HTTPService var to null worked.