Flex :: Flash - NetStream With GroupSpecifier Not Sending Handler?

Nov 20, 2010

I have a simple video/chat application built in FLEX. I've created a groupSpecifier,netGroup and a NetStream for the different functionalities. NetGroup is mainly used for the messaging (Posting) and keeping track of the users who enter.NetStream is (or would be used) to control some functions like "start video, stop video" for everyone under the same group.The most important functions I will post on here. The first is setupGroup.

private function setupGroup():void{
var groupspec:GroupSpecifier = new GroupSpecifier("vid"+GROUP_ID+"_sid_"+SESSION_ID);
groupspec.serverChannelEnabled = true;

[code].....

View 1 Replies


Similar Posts:


Flex :: Adobe Status - GroupSpecifier And NetStream - Use The Group Feature?

Nov 8, 2010

I started using Adobe Stratus yesterday and made a simple chat application. Today, I was to learn how to use the group feature. But when I try to instantiate a GroupSpecifier variable, I get this error: 1046: Type was not found or was not a compile-time constant: GroupSpecifier. P2P.mxml Earlier I was getting a similar error with NetStream (in place of GroupSpecifier). I have Flex 4.1 and it's set to Flash Player 10.1.

View 2 Replies

Flash :: Add Such A Handler, The NetStream Client Doesn't Function As It Did Before?

Nov 2, 2010

I'm trying to add a custom callback handler to a NetStream client in a p2p application. The problem is, when I add such a handler, the NetStream Client doesn't function as it did before. It seems the NetStream.client object is changed. I know the default object is this. But changing the client to this doesn't solve the problem.The remoteControlStream, is the incoming stream. And the localControl stream is the stream being publishedThis is the localControlStream that's being send by the peer, and received as remoteControlStream:

private function initLocalControlStream():void{
localControlStream = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);
localControlStream.addEventListener(NetStatusEvent.NET_STATUS, localControlHandler);
localControlStream.publish(myPeerID+"control");[code]...

The onPeerConnect method of the localControlStream doesn't get called when I connect when the above handler is added. When I remove the that handler, the onPeerConnect method gets called.

View 1 Replies

ActionScript 3.0 :: OnFI Handler For NetStream Timecode

Aug 31, 2010

We are sending a multiple streams from FMLE to FMS, and then playing them with NetStream instances. We could have several streams playing on the same flash canvas. The idea is to use ActionScript to synchronize the playback of these streams using embedded system timecode from FMLE, so all the camera angles are playing at the same place in the stream. However if we use the onFI handler to receive timecode data we see one of the streams reporting valid timecode, and the other seems to get 'stale', reporting the same infoObj.st value for multiple onFI events.

Example: NS2 is great:
NS2 20:14:19.215
NS2 20:14:19.246
NS2 20:14:19.277
NS1 20:14:07.443
NS2 20:14:19.324
NS1 20:14:07.443
NS2 20:14:19.355 ... etc

However NS1 traces out like this with stale data:
NS1 20:14:07.990
NS1 20:14:07.990
NS1 20:14:08. 52
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.474
NS1 20:14:08.506
NS1 20:14:08.552
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943

All FMLE /FMS instances are configured identically - either stream will decode valid timecode it played on its own - just not while both are running in the same stage!

View 1 Replies

ActionScript 3.0 :: Main.swf Event Handler - Close NetStream In Impoted Swf

Nov 26, 2010

I import a external SWF into a UILoader, the SWF contains a netStream that I need to close from a Main.swf event handler, slideShow_btn. Basically from Main.swf when/if slideShow_btn event happens I need to check and close the nsStream in videoplayer.swf Here are my event handlers in Main.swf

[Code]...

View 3 Replies

Media Server :: Adding Custom Callback Handler To NetStream Client

Nov 2, 2010

I'm trying to add a custom callback handler to a NetStream client in a p2p application. The problem is, when I add such a handler, the NetStream Client doesn't function as it did before. It seems the NetStream.client object is changed. I know the default object is this. But changing the client to this doesn't solve the problem. The remoteControlStream, is the incoming stream. And the localControl stream is the stream being published. This is the localControlStream that's being send by the peer, and received as remoteControlStream:

private function initLocalControlStream():void{
localControlStream = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);
localControlStream.addEventListener(NetStatusEvent.NET_STATUS, localControlHandler);
localControlStream.publish(myPeerID+"control");
var localControlStreamClient:Object = new Object();
[Code] .....

The onPeerConnect method of the localControlStream doesn't get called when I connect when the above handler is added. When I remove the that handler, the onPeerConnect method gets called. Obviously the problem is the NetStream.client.

View 1 Replies

Media Server :: Sending MetaData With NetStream.send Is Not Working?

May 2, 2010

I'm trying to send metaData from client to FMS server when recording Webcam video and have implemented sending of metaData as stated on Adobe's help page at: http:[url]....

However when I play the recorded video from FMS, my custom metaData properties trace "undefined".I can trace default metaData properties such as duration or videocodecid successfully,but not my custom properties such customProp,width or height. Here is part of my code that is related to the issue: private function

ncNetStatus(event:NetStatusEvent):void  [code].....

View 21 Replies

Flash :: NetStream.Buffer.Full Not Fired After Call To NetStream.pause?

Jul 6, 2011

I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:

_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....

View 1 Replies

Flex :: Sending A Json Object Over Flash Builder 4 Webservices?

Aug 12, 2010

Can I use the webservice wizards in Flash Builder 4 to send a json encoded object...not as a string but as type application/json; charset=UTF-8

View 1 Replies

Flex :: Flash.media.Sound Not Sending HTTP Request Headers?

Feb 19, 2010

I am using Flex 3 (ActionScript 3.0). I use the HTTP progressive download to play sound files. I want to secure the sound files, by only serving them when the request comes from my flex app. I chose the simplest solution of adding a HTTP header to each request send from the app. But flash.media.Sound object ignores the headers set in flash.net.URLRequest. Here's an example,

URLRequest sndFile = new URLRequest("http://blah.com/media/load_sound.php");
sndFile.requestHeaders = new Array(new URLRequestHeader("req-orgin", "myflexapp"));
Sound snd = new Sound(sndFile);
snd.play();

The value of req-origin comes as null in load_sound.php. When i inspect the request using Firebug, the request headers to [URL] doesn't contain the header.

View 1 Replies

ActionScript 3.0 :: Error On BitMapData.draw() After NetStream.pause() Then NetStream.seek()

Feb 25, 2010

I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.

I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.

I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.

Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.

View 5 Replies

Flex :: Using E4x To Retrieve Xml From Flex Webservice Result Handler

Sep 2, 2009

I'm trying to use e4x to retrieve xml from the result event thrown when my Flex webservice is successful.

This is a snippet of the returned xml

<p430:getRoomsResponse xmlns:p430="http://impl.service.com">
<p430:getRoomReturn type="p888:Room" xmlns:p888="http://vo.room.com" xmlns="http://www.w3.org/2001/XMLSchema-instance"> <p888:roomName> ABC

[Code]....

The full xml contains approx 40 of these "ROOM" types containing roomname,size etc.

I want to create a collection containing a list of the 40 room objects based on the xml above.

How can I map the objects from my xml to an object using e4x?

The purpose is to display the objects in a datagrid

View 1 Replies

Flex :: Adobe Flash Builder DataGrid DataProvider CollectionEvent.COLLECTION_CHANGE Handler's Access To DataGrid??

Feb 14, 2010

I've added an eventListener to the COLLECTION_CHANGE event that is fired when the grid is finished resorting the items in its dataProvider, after the user clicks on a column header:MyType (myDataGrid.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE,onDataGridResort);

View 1 Replies

Flex :: Overloading Event Handler Possible?

Jan 20, 2010

I want to extend my function to a better design to where I can pass a canvas object into so I don't have to write N functions.. I'm not sure as how to do this properly I've come up with a naive design with a switch but even then if I add another canvas I still need to write new code for the new canvas.

function fadeCanvasOut(event:TimerEvent):void
{
canvas1.alpha -= 0.1;

[code].....

View 2 Replies

Flex :: Get A Click Handler On An Image?

Jan 29, 2010

I want to get this to work:

private function frigganWork(event:MouseEvent):void
{
trace("WTF?");
navigateToURL(new URLRequest("http://stackoverflow.com/questions/ask"), "_self");
}

but I get an error: "Call to possibly undefined method frigganWork."

View 2 Replies

Flex :: UIComponent Click Handler?

May 27, 2010

I'm trying to put a label and an image on a UIComponent, side-by-side. I want to use UIComponent for efficiency reasons, and the entire component is more complicated than just a button with an icon.

I'm trying to get a click handler on ther entire UIComponent so that when a click happens on either the label or the image, the same [click] event handler is called. If I add a click handler on the root component, it works, but when I introduce space between the label and the image, the space between them becomes un-clickable. I produce the space by using the move(x,y) method for the label and the image with a small gap between the x/y coordinates.

View 3 Replies

Flex :: HTTPService Timeout Handler?

May 15, 2011

my flex application sends a few concurent requests on startup. Sometimes it takes a lot of time to fetch them all so I've set them requestTimeout param to 5 secs. Additionally, I've defined a method that handles fault events. I'd like to resend a request when timeout occurs.It doesn't work though. Could you take a look at the code?

protected function fatalErrorOccuredInfo(event:FaultEvent):void
{
// get the operation

[code].....

View 2 Replies

Flex :: Event Handler Associated To DataGrid Row?

Jan 16, 2012

I'm loading some images from a database using a PHP script through CodeIgniter, but when I try to add an event handler to do some stuff with these images, Flex compiler is showing me an error:1180: Call to a possibly undefined method cloneCar.Why I can not add an event handler in this context?

<mx:Accordion>
<mx:Form id="menu5" label="Prueba" width="100%" height="100%" backgroundColor="#707070" icon="{roadIcon}">

[code].....

View 1 Replies

Flex :: Event Handler Execution Order?

Jun 23, 2009

I have been trying to understand the way ActionScript's events are implemented, but I'm stuck.I know that AS is single threaded, which means that only one event handler will be executing at a time, and also means that handlers will be executed in a deterministic order*.For example, consider the following code:

1: var x = {executed: false};
2: foo.addEventListener("execute", function(){ x.executed = true; });
3: foo.dispatchEvent(new Event("execute"));

[code].....

View 2 Replies

Actionscript 3 :: Multiline Text Handler In Flex?

Jul 10, 2010

i've been working on texthandler in flex.

the refernce site i m using is [URL]

does n e body have worked on multiline text handlers

View 1 Replies

Flex :: F5 Refresh Event Handler Does Not Work In IE8?

Aug 4, 2010

I have an issue in handling the F5(Refresh) option in IE8 using FLEX. As i got some code by surfing..which is as follows

public function handleKeyDown(event:KeyboardEvent) :void
{
display.text = "Key was pressed: " + event.keyCode;
}
]]>

The main intention of the code is to handle F5(refresh) event. It works fine in Mozilla, GoogleChrome but not in IE8. When i execute the code in IE8 before the event handle by the FLEX the browser is handling the event.

View 1 Replies

Flex :: Set The DG In Focus From Stage KeyDown Handler?

Feb 25, 2011

My app has a datagrid as well as many other UIComponents (buttons, menus, etc). I have a general stage KeyDown handler as well as a specific one for the datagrid. The behavior I'm trying to implement is turning out to be trickier than I thought: basically, when using the keyboard arrows I would like the datagrid to always hear about such commands, even if it's not in focus.

Possible approaches I thought of:have the DG be in focus at all times: seems stupid / tricky - basically would need to remember to give focus back to DG after any interaction with the rest of the UI, which obviously doesn't scale.try to set the DG in focus from stage KeyDown handler: seems like the timing doesn't work since the DG gets focus too late to "hear" the event.from the stage keydown handler, check if the DG is not in focus, and if so pass it the event. This seems to make sense in theory, but I'm not sure how to do this properly since my stage keyDown handler uses capture, and thus seems to catch the same event over and over.

View 1 Replies

Flex - Get The Name From A NetStream Object?

Dec 2, 2010

In a Flex NetStatusEvent of type NetGroup.MulticastStream.PublishNotify, you get the String name of the stream in e.info.name

The name is what the publisher specified in the .publish ("") method. But in a NetStatusEvent of type NetStream.Connect.Success, there is no such property. Instead, the whole NetStream object is available through e.info.stream

How the heck to you get something as basic as the name from the NetStream object? e.info.stream.name does not exist. I must be overlooking something very simple.

View 1 Replies

Flex :: Can't Mute A NetStream?

Apr 26, 2011

I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work. I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.I tried setting the mx VideoDisplay volume to 0 and that does not work.I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.

View 1 Replies

Flex :: Adding Click Handler On SkinnableDataContainer Items

May 21, 2010

I am new to Flex. What I am looking for here is adding a click handler on all the items created by a SkinnableDataContainer. I tried several things that didn't work, and I have no idea what is the right way to do it.

<s:SkinnableDataContainer id="teamList" itemRenderer="TeamSummaryRenderer">
<s:dataProvider><s:ArrayList>
<fx:Object teamName="A super team 1"/>
<fx:Object teamName="A super team 2"/>
<fx:Object teamName="A super team 3"/>
</s:ArrayList></s:dataProvider>
</s:SkinnableDataContainer>

Furthermore, I don't want to declare the handler in my custom TeamSummaryRenderer component. I would prefer that the handler code stays at application level.

View 3 Replies

Flex :: Focus Out Handler Runtime Error 1009 ?

Nov 8, 2010

I am getting these weird runtime errors. I am using Flex 3.5 SDK with flash player set to 10.0.00.

TypeError: Error #1009: Cannot access a property or method of a null object reference.


at mx.flash::UIMovieClip/removeFocusEventListeners()[E:devflexsdkframeworksprojectsflash-integrationsrcmxflashUIMovieClip.as:2368]
at mx.flash::UIMovieClip/focusOutHandler()[E:devflexsdkframeworksprojectsflash-integrationsrcmxflashUIMovieClip.as:2411]

I get this errors when I click on any other control in a popup. I am using buttons, textarea,textinput,and a list.

View 2 Replies

Flex :: Find Out In The Event Handler If The Timer Is Running?

May 20, 2011

How do I access timer.running from inside event handler?

View 1 Replies

Actionscript 3 :: Return Value From Service Result Handler In Flex?

Mar 16, 2012

I going to call only "clickfun()" method i need urlPath value after success service return value. but it throws stack overflow errors.

private function clickfun(eve:Event):String{
languagecode = "assets/myFont_en.swf";
Defaultlanguagecode = "assets/myFont_default.swf";

[Code].....

View 2 Replies

Flex :: Possible To Attach One NetStream To Several VideoDisplays?

Oct 13, 2011

I'm working on simple videochat app with Adobe FMS 4.5. Everything works fine except one thing: I have small videoDisplay for each connected client and one main display. So user can choose his main interlocutor. When i'm trying to attach netStream to main display from small one, streaming on small one stops.

View 1 Replies

Actionscript 3 :: Flex TileList Start Offset And Click Handler?

Oct 23, 2009

I have some images I would like to display in TileList in Flex. My TileList dimensions are 2 columns by n rows. What I want to do is to display the first item (row 1, column 1) empty and not clickable, and to start displaying my items from row 1, column 2.I also wonder when I create click event for the same TileList, is there a way get an index of clicked element?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved