Actionscript 3 :: OnPeerConnect Method Using Adobe Cirrus Does Not Get Triggered?

Aug 18, 2011

I have a NetGroup established using Adobe Cirrus. All clients can connect fine and see each other, since I receive NetGroup.Neighbor. Connect and NetGroup.MulticastStream.PublishNotify events when a new stream is being published.However, if a user subscribes to a published stream, the publisher does not receive a notification (no NetStatusEvent and no callback to the onPeerConnect method). The subscriber receives the stream without problems, though.All other questions about the non working onPeerConnect method were related to NetStream.DIRECT_CONNECTIONS, but in my case, I am using a NetGroup.

What is wrong here? Only the relevant parts, a few things have been stripped (e.g. connect the netGroup only when the NetConnection has been established etc.)

var groupSpecifier:GroupSpecifier = new GroupSpecifier("group");
groupSpecifier.multicastEnabled = true;
groupSpecifier.postingEnabled = true;[code].....

View 1 Replies


Similar Posts:


Flex :: What Hinders NetStream.onPeerConnect From Being Triggered

Dec 2, 2010

I'm using Adobe Stratus (now renamed to Cirrus) to build a p2p application. Inside the application, I used NetStream.onPeerConnect callback function and expected it to be triggered every time when a peer is connected. However, it always failed with my friend A while strangely friend B managed to have the function called without any problem.

Here are how the code pieces look like.First of all, create a NetConnection.

netConnection = new NetConnection();
netConnection.addEventListener(NetStatusEvent.NET_STATUS, netConnectionHandler);
netConnection.connect(SERVER_ADDRESS+DEVELOPER_KEY);

Secondly, create NetStream upon NetConnection successfully connected.

private function netConnectionHandler(event:NetStatusEvent):void{

switch (event.info.code){
case "NetConnection.Connect.Success":
sendStream = new NetStream(netConnection, NetStream.DIRECT_CONNECTIONS);

[code]....

View 1 Replies

Flash :: OnPeerConnect Not Working Properly With Adobe ?

Mar 9, 2011

Anyone familiar with using Cirrus? [URL].. I'm having the hardest time getting the onPeerConnect object to work the way it should. I just need to be able to just take 1 sides nearID and give it to the other. and then when the near tries to connect to the far, the far should return true and allow connection, then at the same time grab the connecting farID on its own with farID = subscriber.farID; (which works, i confirmed it's getting the farID) but when i try this code it just see it getting spammed with....

TRUE
NetStream.Play.Start
NetStream.Play.Start
NetStream.Connect.Success
NetStream.Connect.Closed

[Code]...

View 1 Replies

Adobe Cirrus In Flash App Without Flex?

Apr 1, 2012

Now I am using Adobe Cirrus in my Flex app, but I think that Flex is too complicated for such simple application.

View 1 Replies

Actionscript 3 :: Using Only RTMFP For Random Matching (Adobe Cirrus)

Mar 8, 2012

I'm trying to come up with the best way to do some random match making in a simple game.While experimenting with netStreams using Adobe Cirrus, I can easily set up direct connections, send data, text, video, sound all using Cirrus which is great. I find it pretty easy to get a simple P2P connection going, and it works just like i need it to.But I really want to implement a random matchmaking feature using ONLY cirrus so everything is though p2p...How would I go about grabbing a random peer in the same group...that's not in a direct connection with someone else already?

-I was thinking maybe I could use object replication...and when someone connects to the GroupSpecifier, I could then push another object into this shared array that has the local peerID and their status. then i could just alter the array when theyre in a game. But then im worried there is no guarantee that their entry will get removed if the person just closes the web window.

-I also thought about just doing a "post" to the group containing the nearID, and other peers can get the post...and those that aren't in a game will try and direct connect back. Then that side will then connect to them. so then theyll both be in direct connections with each other. But then i feel like if potentially 100s of people that are "available"...get the post...then they all try and connect to one person, then it could cause problems.

-Also, I thought about just doing sendToNearest...but wouldnt that not be the best way to match people...because you can only have so many neighbors i think... if there were 1000 people in the group. youll only be able to connect to a few peers actually considered your neighbor right? Then basically you could end up just matching up with the same 5-10 people or however are technically considered a neighbor.

View 1 Replies

Flash - Adobe Cirrus: Deliver A Chunk Of Data To A Single Peer With Known Id?

Jun 17, 2011

Adobe Cirrus offers a number of options for transferring data from peer to peer: Directed Routing, Object Replication and Multicasting to name a few.I just want to send the data to one specific peer, its fine for other peers to 'see' it in transit.

My experiments with Directed Routing (the obvious answer) have not gone well. all the sendto... methods fail, while NetGroup.post works fine on the same netgroup. I am concerned about using direct connections because of reliability.

Has anyone successfully implemented a one to one messaging strategy (not one to many), which can still message between non-connected peers - (Directed Routing) or solved this problem successfully?

I am considering various workarounds, but I am quite perplexed that these NetGroup methods: sendToNearest, sendToNeighbour & sendToAllNeighbours just seem to fail, for no apparent reason.

View 2 Replies

Flash - Adobe Cirrus (Stratus) Doesn't Work If User Have Local Network

Aug 20, 2011

I am developing flash p2p chat. It works fine on my friends' computers (they can chat each other), but not on mine. The problem is that I have local network at home, and I think that Flash Player tries to make p2p requests to peers inside my local network.Can I check if user have local network in AS3 and up the level of network to the WWW?

View 1 Replies

Flash :: RTMFP Successful Connection Ratio Or Percentage, AKA Adobe Cirrus, Stratus, LCCS

Oct 29, 2010

I've heard a couple of people say only 50% succeed, but that sounds suspiciously low and the people saying that are probably all repeating the same rumor. My own very limited tests with various friends & colleagues work 100% of the time, as long as they have Flash Player 10, but that's obviously not right either.

Do you have some data from a largish test or deployment of home/corporate users?

View 4 Replies

Actionscript 3 :: Flash P2p Possible Without Cirrus / LCCS?

Nov 24, 2010

Is it true that Flash p2p cannot be done without Cirrus/LiveCycle Collaboration Service? I've seen a similar question on SO and it is claimed there that it cannot be done. So, why not? Also, I've seen comrade back2dos had some thoughts on the problem, but he was downvoted

View 4 Replies

Java :: Call Method Into An Adobe Flex Mobile Application

Nov 22, 2011

I would like to learn Adobe Flex mobile development.I have created a new project called SampleProject, then I got SampleProject.mxml in default package and SampleProjectHomeView.mxml.[code]How can I call the add and sub methods from the class above in SampleProjectHomeView.mxml?

View 1 Replies

Actionscript 3 :: Use The Method SetPixels(rectangle, ByteArray) Of BitmapData In Adobe Flex

Feb 3, 2011

Error #2030: End of file was encountered.

This method is not working

I am using it like this

var ba:ByteArray = new ByteArray();
ba = bmd.getPixels(bmd.rect);
bmd.setPixels(srcRect, ba);
bm.bitmapData = bmd;
img.source = bm;

View 1 Replies

Actionscript 3 :: Pass Contents In The Byte Array To The HTTP.Send Method In Adobe Air

Mar 5, 2012

I upload a file using adobe air HTTPService.Send method by passing byte array of file content read using FileReference. When I write the set of bytes from the server side (php) it writes the details of the byte array (buff) to the file instead of contents of the file like "endian=bigEndian&position=0&bytesAvailable=61127&length=61127&objectEncoding=3" . Below I have included the code that how I read the file and send it to server. Is there anyway that i can directly pass the data in the byte array to send method?

File Read

var buff:ByteArray = new ByteArray();
var localFilePath:String = "/Videos/sample.txt";
var uploadedFile:File = new File(localFilePath);

[Code]....

View 1 Replies

Flash - How To Implement Own Cirrus (previously Named Stratus) Server

Apr 17, 2011

I am interesting in creating a P2P application using Cirrus [URL]. The examples given create a connection with servers managed by Adobe. I'd like to do this on my Node.js server, how should I implement this? Or does Adobe force developers that use Cirrus to buy Flash Media Servers?

View 1 Replies

Flex :: AIR/Flash Player Connect To Another Machine Without Cirrus/stratus?

Sep 1, 2011

I dont want to connect to a server over socket. I would like to know if it is possible to connect from one AIR app on machine A to connect to another AIR app on machine B via sockets without cirrus. I'm not asking for someone else to do my work, I couldnt find any documentation or possibility of the above thing. My conclusion now is that it is not possible, but I would just like it to be verified by other people(experts).

View 2 Replies

Media Server :: Possible To Use Video Phone (Cirrus Sample Application) With FMS4?

Jun 24, 2011

is it possible to use Video Phone (Cirrus Sample Application) with FMS4?It seems to be possible because in Video Phone source can be found these text: rtmfp server address (Adobe Cirrus or FMS)[Bindable] private var connectUrl:String [code]

View 6 Replies

Flex :: Adobe Flex - Event MetaData Tag And Clone Method?

Jul 22, 2011

overriding clone() while creating custom events?I read in the Flex cookbook that we need just in case we want to redispatch this event. Does this exactly means that when we want event to be bubbled up the display hierarchy , at that time our custom cloned event should be dispatched and not the Event object.

second - whats the need of metadata tag -
[Event(name="modelEvent", type="com.abc.data.model.ModelEvent")]
public class LoginModel extends EventDispatcher
I understand we need to extend EventDispatcher in case we want to dispatch evnet from class.. but In what cases i would need to specify the MetaData TAg

Third is.. If i write -- "dynamic customEventClass extends Event".. Is there any use of Dynamic i can make?

View 3 Replies

ActionScript 3.0 :: KeyboardEvent Not Being Triggered?

Sep 26, 2010

I'm a Flash newbie and I'm trying to get some keyboard action going. I've followed some tutorials, but nothing seems to work. To test it I created a brand new fla file and added the following code in the first frame:

[Code]...

The first trace ("Add listener") shows up in the debug output, but no matter which keys I press I can't get the function to be called. Am I doing it wrong?

View 3 Replies

AS3 :: NetStatusEvent Events Not Triggered?

Aug 19, 2010

NetStatusEvent has only one type of event: NetStatusEvent.NET_STATUS; but it comes with many codes for various cases.

Here they are, listed.

However, a lot of them are not triggered for me. I know some are FMS specific but I'm talking about "NetStream.Play.Stop", "NetStream.Pause.Notify" or "NetStream.Unpause.Notify".

Is there a case when they shouldn't be triggered, even though I'm calling NetStream's control functions (which take effect), or a known issue around this matter?

View 1 Replies

ActionScript 2.0 :: Function Not Being Triggered?

Feb 17, 2010

I am making component with text field in it and I want to call some function on the onChanged event that trigger another function.

In case I define onChanged event on the following way everything is ok my_TextField.onChanged = function ()
{.....} but if I use listenerObject, function inside another function is not triggered.

[Code]...

View 4 Replies

IDE :: Event.Complete Not Triggered?

Nov 9, 2009

my completeHandlerI would like it to be triggered when the progress bar is complete.

// uploader script
var URLrequest:URLRequest = new URLRequest("http://mysite.php");
// image types

[code].....

View 1 Replies

ActionScript 2.0 :: Getting Name Of Event That Triggered The EventListener?

Jan 26, 2009

I am trying to extract the last part (after the last .) of what trace(evtObj.target) shows, but when i try to use the code bellow to do it i get some of the info i get for the traces EventOb=_level0.RightSide.instance435.Ath (or whatever it is that triggered the event) Legth=Undefined

i get Undefined for all the string commands i have tied

example for evtObj.target with
_level0.RightSide.instance435.Ath
i want to get just Ath

[Code]....

View 2 Replies

ActionScript 3.0 :: Make Mc Disappear When Next Mc Is Triggered

Oct 5, 2010

I have a project that has 6 movie clips across the stage that are triggered by mouse click. The trouble I'm having is getting them each to dissapear when the next movie clip is triggered. You can click out w/ an "x" box but I want them to dissapear when the next mc is triggered also.

Code:
var mc:handfade;
hand_mc.addEventListener(MouseEvent.CLICK, handPage);
function handPage(e:MouseEvent):void

[Code]....

View 21 Replies

ActionScript 2.0 :: Clear OnClipEvent Once Triggered?

Feb 20, 2012

I have a file where user chooses xy cordinates which display in text box.... which is workin, but I want to have it only appear inside a box area? ie choose once only inside box area - once outside i want the mouse to behave as normal (no new pointer no xy tracking) not sure what if statement would work ?

onClipEvent (mouseDown) {
duplicateMovieClip("../cue", "cue" add n, n);
setProperty("../cue" add n, _x, getProperty("_level0",_xmouse));

[Code]....

View 3 Replies

GetURL Is Triggered When Animation Loops

Jan 10, 2011

I created a simple animation that needs to have a button on one segment of the animation. I created a button with a action of getURL in AS3, the problem I am having is that every time the animation loops from the first frame it triggers the button and the new page I requested pops up.

View 6 Replies

ActionScript 3.0 :: Event.DEACTIVATE Not Triggered?

Jul 13, 2011

I'm looking for an event that tells me when the browser is refreshed, or better to say, when my flash app exits. So I tried
 
stage.addEventListener(Event.DEACTIVATE, onDeactivate);
 
but its only triggered when closing the debug window and not on refreshing or closing the browser.

View 1 Replies

Flex :: Event Is Not Being Triggered For Geolocation?

Mar 13, 2012

I created a button that looks up the coordinates of the device. There is no errors in the code but for some reason which is eluding me, the event is not being triggered.

Here is my code:

protected function lblCheckIn_clickHandler(event:MouseEvent):void
{
if (Geolocation.isSupported)

[Code]....

View 2 Replies

ActionScript 3.0 :: MouseOut Is Triggered When Doing MouseOver?

Jun 25, 2009

I made this simple movieclip with over and out states. However my function does not work. When moving over the movieclip the mouse out event is called immediately. I don't know why this is happening.

ActionScript Code:
home.buttonMode = true;
function onOver (e:MouseEvent):void {

[Code].....

View 9 Replies

ActionScript 2.0 :: Multiple Tweens Triggered By A MC?

Jun 4, 2006

What I am wanting to do is move multiple MCs when a MC (acting as a button) is released, the following is the code that i have tried but it doesn't want to work:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;[code]...........

View 2 Replies

ActionScript 2.0 :: Effect Triggered Whenever A Button Needs To Appear

Feb 11, 2007

I'm a beginner in AS and is trying to build my website entirely on AS2.0. Here's an effect ( I call it "appear effect" ) I wanna create with the tween class:

[Code]...

I would like to have this effect triggered whenever a button needs to appear. In total, I have about 10 btns. I believe I have to store it inside a function. Tat's all I know, can someone pls kindly guide me thru this?

View 3 Replies

ActionScript 2.0 :: Load External SWF When Even Is Triggered?

Mar 3, 2008

Im going to repost this question but simplify it, I read this post afterwards and it even confused me... have 3 movie clips that are being used like a button, they appear in the middle of the screen, when clicked on the 3 movies move to the left of the screen.the top movie clip is at x: 30 y: 180the middle movie clip is at x: 30 y:345the bottom clip is at x: 30 y: 510if you click on the middle clip, it moves to the postion of the top clip,the top click then movies to the bottom, and the bottom moves to the middleif you click on the bottom clip, it moves to the top, the middle clip moves to the bottom, and the top clip moves to the middle.basicly the 3 clips cycle positions, depending on what clip the user clicks on, the button that was clicked on moves to the top.THE PROBLEM....I want to load an external movie clip. I want the clip to load when the the movie clip that the user cliced on moves to the top postion x: 30 y: 180,

THE CODE.....
//************************************************** **********************
//************************************************** **********************

[code].....

View 1 Replies







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