Actionscript 3 :: NetGroup.MulticastStream.UnpublishNotify Fires Just After NetGroup.MulticastStream?
Jun 28, 2011
I am working on Cirrus I want to make audio chat. I publish stream on one side but its NetGroup.MulticastStream.PublishNotify event doesn't fires at first time....When I publish it twice or thrice it fires. I play the stream on the other side using published stream name but just after play event firing NetGroup.MulticastStream.UnpublishNotify fires and I can't listen the voice.
View 1 Replies
Similar Posts:
Dec 1, 2011
I am developing a video system using the peer-assisted networking of FMS. but when I have published video successed, I can't receive the video at some endpoint.
[Code]....
View 2 Replies
Jun 22, 2011
I tried to use NetGroup, but it seems that the peers can't see each other when they connect to my FMS4. I can only get NetGroup.Connect.Success but no NetGroup.Neighbor.Connect. The same code can work fine if connecting to Cirrus, so maybe it's not about my firewall or NAT problems.
I made two pages for testing. Each of them launchs two instances with same group name.
[Code]...
View 7 Replies
Jun 5, 2011
I have Flex application - it connects to FMS and joins to NetGroup named "default".So I have for example 4 clients connected to the same server in the same group. And looks like not all clients are connected to each other! Client1 sees Client2's streams and messages but doesn't see others. Same for Client3 and 4. I know UDP must not be blocked in networks in order to P2P connections work, and this can be a reason why not all members of group see each other.My question is - if there any ways to make all clients see each other? For example - if no P2P connection can be established - connect client via Flash Media Server or some proxy?
View 1 Replies
Sep 5, 2011
I have a hidden DisplayObject (myObj.visible = false;). I've provided a listener: myObj. addEventListener(MouseEvent.CLICK, myHandler);By myHandler does never fires. It seems that MouseEvent.CLICK is not delivered for hidden objects...How can I listen to MouseEvent.CLICK for my hidden object?
View 1 Replies
Mar 23, 2010
ive got several movie clips as buttons in a parent movie clip that i hide/show. each button has its own instance name. even when the parent movie clip is invisible the button clips still get onmouseup events. when the parent is visable i dont even need to click on the movie clip to get the event to fire. even though i put the functions on diffrent clips they all fire, here are two of them:
Code:
_root.menuLevelUp.btnShipHealthUp.onMouseUp = function()
{
trace("healthUp");[code]....
whenever i click even when the parent clips is not visable i get
Code:
healthUp
speedUp
View 1 Replies
Sep 5, 2006
With the following code I get an output of:
true
true
It seems that the onLoad method fires twice ?? I know the .load method has to come after the .onLoad function for the function to work but that doesn�t seem to be the problem in this case.
[AS]xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = function(loaded) {
[Code]....
View 5 Replies
Dec 20, 2009
I am using the code below to load 3 images to use a cursors later in the code.
private function loadCursors():void
{
for(var i:Number = 0;i < csrPathArr.length; i++)
{
[Code]....
It doesn't work because "updateNumCsrLoaded" is firing 6 times (twice per image) instead of 3. I could just change the if statement to "if (numCsrLoaded == 6)" but this is not
View 5 Replies
Mar 19, 2010
I'm looking for a way to add an EventListener which will automatically removes itself after the first time it fires, but I can't figure a way of doing this the way I want to.[code]
View 2 Replies
Jun 5, 2011
I am having some trouble with MOUSE_WHEEL delta values. It seems like the event doesn't fire unless I REALLY spin the dammed wheel. Which makes sense because the only values I get range from 3-30. I was hoping to catch 1-3 as well because if I just spin a few notches, nothing triggers and the app feels sluggish.FYI every other program on my machine feels those 1-notch spins just fine so it's not the mouse.Will AS3 not fire if the delta is less than 3?Here is the code
private function handleMouseWheel(e:MouseEvent):void {
trace(e.delta);
// Output is always more/less than +/- 3 [code].....
View 1 Replies
Sep 27, 2009
I'm trying to create a Thumbnail class that extends MovieClip and have run into a "loop". When I hover a cursor over a Thumbnail instance it fires an over and an out event. That is, that happens if I add any kind of filter to the Thumbnail class in the over event, if I leave that out and trace the code it fires only the over event and waits till the cursor leaves the thumbnail. I have tried adding the GlowFilter and the ColorMatrixFilter with the same effect: premature ROLL_OUT.
View 8 Replies
Dec 29, 2010
Tracing the keyCode for the 'a' key (65) only works once for KEY_DOWN events and sometimes KEY_UP behaves in the same way, making development a pain when trying to do things quickly.
Clicking on the stage makes it start working, but why is it just the 'a' key that is affected?
This is on a new MBP running OSX 10.6.5, Flash version MAC 10,1,102,64
[URL]
The issue can be reproduced every time with this code:
ActionScript Code:
import flash.events.KeyboardEvent;
stage.addEventListener (KeyboardEvent.KEY_DOWN, keyDownHandler);
[Code]....
View 4 Replies
Oct 7, 2011
I can just create a new project, target Flash Player 10.2 and paste this into frame code:
[Code]...
The event never fires off. I look in the reference for StageVideo and I see it's available in Flash Player 10.2. What's up with this? edit: If I target AIR for iOS, this event does fire (I have AIR3.0 overlayed).
View 3 Replies
Jul 28, 2010
microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, gotMicData); the event gotMicData is never fired.. however i tried using dispatchEvent but that will return null byteArray.. However similar code works fine in Flashcs5...
import flash.events.SampleDataEvent;
import flash.media.Microphone;
import flash.media.Sound;
[Code]....
View 2 Replies
Aug 22, 2011
I have a block of code that I want to execute directly after a url is known to be valid. What I mean by 'valid' is that the program has checked to see if that filepath actually exists. This could be accomplished by a COMPLETE listener, because after all, a loader couldn't finish loading its content if the referenced file didn't exist, but I want it to happen before any of the bytes begin to get sucked in. I have also tried the HTTPS_STATUS event, with a conditional saying "if the status is this [some non-error status number], then run this block of code." This would have worked great, except that different environments produce different network codes, and some even can't distinguish between errors and non-errors, just returning 0's no matter what. Because of this, I can't write a conditional that works no matter what browser....
View 1 Replies
Nov 9, 2011
I have created a player that loads video FLV files and plays them in a sequence. On loading the videos I retrieve the total video time by stream.client.onMetaData = ns_onMetaData;" and in an EnterFrame event I check whether the video playtime is equal the totaltime. If the video playtime is equal to the totaltime then the player loads the next video. Sometime, even if the video ends, the playtime and total time doesn't match. So to fix the issue, I decided to put an event cue point (END) at end of each video FLV. So whenever the FLV fires the END event, the player removes the current video and loads the next one.
Suppose the video total time is 44:00. The cue point is also at 44:00 in the FLV. So whenever the player gets the END event from the FLV then it loads the next one. Now the issue is, if I pause the video at 42:00 and wait for 2 sec, the player gets the END cue point and jumps to the next video. When I paused the video the timer says "42:00 of 44:00". The timer doesn't increase, that means the video has actually paused. But I still don't understand that why I'm getting the END cue point where the video has not reached the time.
View 1 Replies
Nov 22, 2011
When executing dataprovider.refresh() for a chart component it redraws the chart. How do I determine when the chart is redrawn? I would like to take a png screen shot of the chart when it is fully drawn.
View 1 Replies
Jan 8, 2009
I have a movieclip and i put an onRollOver call on it. The problem is the onrollover fires only once when the ouse is on top of the movieclip. In flash, how can i do something equivalent to the onmousemove in javascript?
View 8 Replies
May 15, 2007
Generally, I like to use onLoadInit because it gives me accurate widths and heights. But when I have an external SWF file with a video embedded in it, I find that onLoadInit always fires a second or two after the video has started playing.
View 6 Replies
Jun 12, 2009
Variable called "switch" has a boolean value of "false".Event.ENTER_FRAME event listener method fires, and calls method "onEnter()".Within the "onEnter()" method, the "switch" variable is set to boolean "true".My question: What is the best way to make sure "switch" variable is called, and set, only once during the ENTER_FRAME event?
Is it as simple as checking if "switch" is false, and then setting it to true... Does it matter that I would be doing the if() for every frame of the Event.ENTER_FRAME?
View 2 Replies
Oct 30, 2009
I had a function that occured on mouseclick called go_out. I want this function to occur when the timer fires after 5 seconds. After the 5 secons I receive this error:
[Code].....
View 4 Replies
Sep 3, 2010
flash is not my area of expertise, but I've inherited a task that deals with AS2 Basically, I have a flash document (a loader?) with the following AS 2.0 code:
[Code]...
Basically, the idea is after the movie finishes playing, you should get redirected to a new page. The problem is that sometimes the page redirects immediately (before the movie is played). The movies are being served up from a media server and this seems to happen more consistently with newly uploaded movies. Sometimes it takes several attempts to actually play the movie all the way through, but over time, the movies generally start to play problem-free.
View 1 Replies
Mar 19, 2012
How can I access to an object who fires an eventListener event?
Let's say I have a mc:
var element = new MovieClip();
which has an eventlistener:
element.addEventListener(MouseEvent.CLICK, elementEventHandler);
[Code]....
So that is what I want to achieve... Recover the object who fired the event and then do crazy things with it (in this example, add another object in it).
pd: yes, I know I can directly use the var element in this snippet, but in the real code I'm generating the mcs in a loop, according to a xml file.
View 2 Replies
Sep 13, 2010
I have a Loader class which I'm using to load an image:
Code:
var request:URLRequest = new URLRequest('https://some website path to .png');
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, error);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
[Code].....
The code above works when I run it from FlashDevelop but fails when it runs from a website. The domain is protected by a crossdomain file which allows the website I'm calling it from. I've tried other https requests to the same domain using URLLoader and those work fine. This code never calls Event.COMPLETE or IO_ERROR and no alert error comes up.
View 4 Replies
Jun 11, 2005
I am trying to make a search interface that behaves much like searching in iTunes and Spotlight in that the list is updated instantly as the user types something in the search field. However, I would like the lines that result to be clickable and to fire actions inside flash (as opposed to launching an URL). Is this possible?I've gotten the basics down. Here's what it looks like and here's the source FLA file. The results are displayed as tabbed lines of text in a single text field. Is there any way to make these lines clickable without replacing this way of displaying the results with multiple, duplicated button/mc-intances?
View 6 Replies
Apr 20, 2009
With the KEY_DOWN event handler, if the user holds the key down it fires the event constantly. I want to create a KEY_DOWN event which only fires once on the initial key press, even if the user holds the key down.
View 2 Replies
Dec 17, 2009
what Have I done wrong! I want 'time' to return a number from the function it fires, So that it gets placed into the alphaTo Function ....> have a look
Code:
blocks = 6;
for(i=0;i<blocks;i++){
[code]....
So you see that I want to return a Number to 'time' ... How do I Return the Number?
View 3 Replies
Nov 23, 2010
I am using the VideoEvent.COMPLETE trigger to return my user to a selection screen once a video they have chosen to watch has finished... but for some reason the trigger fires 2 or so seconds into the video(45sec videos). The bug seems pretty inconsistent, sometimes it happens and sometimes not on all of my videos
View 1 Replies
Oct 17, 2010
I have buttons that have mouse_over, mouse_out and CLICK events. But when I click the button it takes me to another frame and the mouse_out event tried to fire.
act1_btn.addEventListener(MouseEvent.CLICK, act1Pressed);
act1_btn.addEventListener(MouseEvent.MOUSE_OVER, act1Over);
act1_btn.addEventListener(MouseEvent.MOUSE_OUT, act1Out);
act1_btn.addEventListener(Event.ENTER_FRAME, act1EnterFrame);
[code].....
View 3 Replies
Jul 28, 2009
I'm working on a project using a MVC design pattern where flvs are played form a xml playlist. I noticed something strange in the Output window. For the first flv the NetStatusEvent NetStream.Play.Start fires once, the second one fires twice, the third one three times....
Here is the part of the code where I load the video :
Code: Select allpublic function loadVideo(url:String):void
{
_nextBtn.mouseEnabled = true;
_playHead.x = 0;
[Code].....
View 1 Replies