Total Stream Data Exchanged In App Instance
Hey guys,
I have got a little chat app that allows people to send and receive audio and video between two people. When the chat session has finished, i would like to be able to capture the total bandwidth exchanged by the app during the whole session. So the total sent and received by both parties in the app.
How would i go about doing that?
Thanks so much! I am truly flummoxed.
Alex
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 03-07-2008, 06:21 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
NetStream Total Length Of Stream In Seconds
NetStream.bytesTotal retrieves the length of the stream in bytes.
Is there a way to get the total length of the stream in time? Or is there a way to convert the bytesTotal attribute to time?
Thanks!
dustoff.
Data Stream?
Lots of questions today...
How can I read a data stream of XML??
I'm trying to write a "Now Playing" application for one of our radio stations, so they can put it on the website and have it show the song that is currently on the air.
However, our automation system only sends the Now Playing data as an XML stream...so there really isn't a file anywhere I can access.
I can send or receive the data to any IP on any port I want.
How can I get Flash to read that stream and parse it as XML??
Encrypted Data Stream ?
We have a bunch of data we want to send to a flash app on Pocket PC, Windows, or Mac OS X over an encrypted channel. It's binary data and we need to keep it secure.
Is the flash media server good for this ?
How do we get the data into the flash media server? Can it connect to a socket?
Can a standalone player still access the media server using an encrypted (SSL) channel?
Recorded Data-only Stream And Buffer Time
I ran into an interesting problem. My application records a data-only stream (via FMS 2.0) which contains various events that occur during a session. During playback, if I don't set a buffer on the Netstream object on the client, for the most part, the events get triggered at proper times. However, if I do set a buffer (and I tried values from 5 to 100 seconds) a certain number of events just don't get triggered from the data stream. The greater the buffer, the more events are skipped. I would ideally like to have a buffer.
Is this a bug, or is this one of those aggravating and perplexing 'features' of flash's stream implementation?
How To Stream Video Data To FMS From An Embedded Device?
We have numerous video servers(embedded device) around the world, the main task of such device is to capture and compress live video, and then send video to the remote via network. Now we are going to stream such video data directly to FMS which will broadcast video to audience. But donot know how to stream data to FMS. Our device is designed on DSP chip and can only support c language.
Can we only develop a plugin on FMS side to create connection with our device and receive data from it? If so, what is the critiria for such plugin and how to deploy it? Where can we find samples?
If there is no such plugin, how do we send data to FMS, use RTMP? Is there any implementation of RTMP in c/c++?
Thanks for your help
Listen To XML Server Side Data Stream
I need ...
a server side Java class that listens to XML data stream from a client based Flash MX Plugin and sends it out to a custom java based program.
The XML data stream will then be altered and sent to another Java Class.
I am a newbie as far as flash MX is concerned so please be gentle...
Any sugestions are apprecitated.
Total Visits/total Sound Plays
How can I get a "total visits"type function but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible
Total Visits/total Sound Plays
How can I get a "total visits"type function but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible
Total Visits/ Total Sounds Played
How can I get a "total visits" type function that makes the number of times a page has been visited visible, but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible. (Not pages but externally loaded and streamed sound.)
tks
ken
[F8] Calling A Movieclip Instance From Xml Data
don't ask why i would want to do this, but if i were passing an instance name of a movie clip via xml, how do i call that in my flash script? For example, below, after my xml is loaded, i see the correct instance name, but my syntax in calling it is a bit off ( i am get a bit disoriented trying to learn as3 now! ha):
Code:
//AS2 script:
var bt=buttons[i].attributes.instance
trace(bt) //gives string name- which is very long _level0.CONTAINER_E.pages.p3.page.pf.sph.ph.pic.pic.container.instance14.btn_1
var bt_url=buttons[i].attributes.url
if(bt)
{
bt.onRollOver=function()
{
trace("hey man, you are on a button!!")
removeZoomAtributes(false)
}
bt.onRollOut=function()
{
ZoomReady()
//ob.onMouseDown=zoomOut;
}
bt.onRelease=function()
{
getURL(bt_url,"_blank");
}
}
Php Data Is Not Loaded At Random Instance.
Hi,
im new to the posts. any help would be appriciated.
im trying to build an application where it load data dynamically from MySQL.
the application work perfectly on Flash 8/cs3 but sometime it doesnt load the data.
this is the page:
http://ipchouston.com/ipc/
application is called Take a Poll;
it works on some, and doesnt on others- But
this might help:
If i delete the browser history then it loads fine.(not files, just history)
Im sure someone might have come accross this one.
Any AS Experts????
Total Visits/total Plays
How can I get a "total visits"type function but instead of recording the number of visits, it records the number of sounds streamed from that flash movie and makes it visible
Total, Total Newbie Question
Um, i cant quite get my character, call him bob, to fall and walk, jump and turn around on a platfrom. this is the basis for all my games!
Player Stopps While Playing Big "data Only" Stream
I developped 2 applications. The first one creates a "data only" (NS.send()) stream. The second one, running on a different machine plays it back. While recording the stream and playing it back live, everything worked fine. In order to replay the stream at a later time i chose the "record" option. In my Media Server Application Folder several up to 4 GB (8 hours) files were created. When I try to replay the recorded streams with my second application, the player halts after several seconds. I have to mention that the stream is not constantly filled with data, there may be gaps of several seconds maybe even minutes.
I get the following NS status notifications:
Netstream.play.reset
Netstream.play.start
(NS.myfunction invoked a few times)
Netstream.Buffer.full
(NS.myfunction invoked several times)
Netstream.Play.Stop (no reason)
(NS.myfunction invoked several times)
Netstream.Buffer.flush
(NS.myfunction invoked several times)
Netstream.Buffer.empty
Instance Names...changing...or Addressing Txt Field Instance Based On Instance Of Mc
i'm creating a mail form, that has a text effect which displays the type of info to be entered in each input box. To create this effect, i had to assign the variable name txt to the input boxes as well as the instance name txtBox. each of these text fields is contained within a movieclip, each with a unique instance name. what i need to do, is somehow assign a value/variable to each text field to pass to PHP to generate an email. I have always used components for contact forms so i'm not sure how to make the switch, AND.. the script i use for my contact form is an EXTERNAL AS file. (i use a customized version of a contact form from www.actionscript-toolbox.com [which apparently is no longer Flash related site])
ok.. this is hard to explain..... so bear with me....
If my original mail form component instance names were: tiName, tiEmail, tiSubject and taMsg (ti for textInput and ta for textArea)
and my current instance names for the mc's which CONTAIN the input boxes (with txtBox textfield instance inside them) are: name_txt, email_txt, subject_txt & comments_txt...
how would i pass/convert the users input text in each movieclip's txtBox, into the original instance name for my mail form so i can continue to use the form/PHP i have been using??
OR....
how do i take the values input by the user in each txtBox (i.e name_txt.txtBox.insertedTextFromUser or name_txt.txt, email_txt.txtBox.insertedTextFromUser or email_txt.txt) and send them to a new PHP script to send mail??
please keep in mind i am PHP retarded... hence why i re-use the same form over and over..
thanks in advance for any help. it's greatly appreciated...
if you're confused about my problem, please let me know... i'm having a difficult time explaining....
Embed Live Cue Data In Live Stream?
I am currently using the new FME to encode live to a FMS. Both applicatioins are running on the same machine. Is there a way to embed live cue and metadata into the live stream? Once embedded we want to record the stream AND send it on to viewers. Is there a way to process this on the server. The live cue and metadata is coming in the serial port.
Sound - Event Vs. Stream (stream Quality Problem)
Hey Guys,
I've got a flash piece with various MP3's that I have playing throughout. When I set it to stream within Flash, it sounds great. However when I publish the SWF and play it solely in the Flash viewer, the audio is significantly worse. If I go back into Flash and set the audio type to "event", it sounds great again. The problem is I need to keep the audio streaming.
Any suggestions on how to do this?
Thanks Much.
FMS 3 - Stream.play() For Recorded Stream Returns False
I have a custom app and when trying to playback a recorded stream using the Stream.play(streamName, startOffset, -1), the result returned is always false, below is some sample codes:
flvPlay = Stream.get("myFLVSession");
flvPlay.onStatus = function(info){
trace("> Status code: " + info.code + " Level: " + info.level + " Stream: " +info.details);
};
stat = flvPlay.play("myFLV", startOffset, -1);
When I prints out stat, it returns false, and the status callback will print:
> Status code: NetStream.Play.Failed Level: error Stream: undefined
Even if I try flvPlay.play("myFLV");, the return status is still false. However, the video will be able to continue playing, anyone face similar problem before?
The same application runs in FMS 2 with return status=true, but not in FMS 3, though the playback still can proceed, but it won't start at the offset I specified, and since the return status is false, why can the playback still proceed?
Thanks in advance for any pointer on this.
Can I Insert An Extra Audio Stream Into The Live Stream?
I have a project where I need to set up a broadcast (from pre-recorded files) so people can 'tune in' at a certain time to watch a show. Some of these shows should have a soundtrack, can I use SSAS to overlay an extra audio stream? So I would send one video and two audio streams out to the client as one stream.
Alternatively, can I use SSAS to replace the audio, so effectively demux the original audio off and send out a different audio stream in its place.
Thank you in advance for any advice.
Character Mouth Synching--stream Or Not To Stream?
Hi-
I was curious to see if streaming is preferred when synching mouths to voiceovers in an animation. I always chose "Event" by default, but find that it doesn't play well, particulalrly when the server is active.
I saw on Macromedia's site that to "stream or not to stream" depends on several factors and that it is a matter of trial and error.
Any advice?
Thanks!!
-Rob
STREAM From File, NO STREAM From Server Why?
I have a Flash Communication Server set up by (mt) for my site.
After using the fantastically-simple dinamically played .flv file, with progressive download, I wanted to try the real rtmp streaming.
I set everything as it has to be (in the client, there is no server code), and things appear to work: the NetConnection and NetStream objects give all the good status info.
BUT
No darn sound or image are output by the flash movie! If I try *echoing* all the NetStream properties it looks like it's completely dead (just as before using the .play() code).
what da hell!
by the way, I can see from my lan switch that the stream take place, because there is data passing through to my computer from the server.
Does anybody know why?
I tried all of these:
.play("mp3:mySong"); <-- returns an error;
.play("mySong.mp3"); <-- starts playing;
.play("mySong"); <-- starts playing;
.play("myVideo"); <-- starts playing;
.play("myVideo.flv"); <-- starts playing;
Can Stream LIVE, But Can't Stream FLV -=
Hi there. Pulling out my hair...and i'm bald enough already!
I built a FLA that streams live from the FME - works great.
Cannot for the life of me figure out how to use the FLVPlayback (or anything for that matter) to stream a regular FLV.
Any help would be SO helpful!!
My fms and flv set up - ... applications/playapp/play.flv (also put in streams folder and _definst_ folder with play.flv in there just in case)
in the source, I have tried all variations - but is currently: rtmp://edge2.xxx.net/playapp/instance1
It demands an instance name, even though I don't know how that works (i know i put the source in FME with that, but this is an already made FLV).
Sincere thanks -
adam
Access Property/function Of Instance From Inside Another Instance
Might be something really obvious, but I'm still trying to get my head round as3...
I need to call up a property and function of another instance of the same class, similar as in as2 (called from within "_root.instance_mc1"):
ActionScript Code:
_root.instance_mc2.someNumber = 0;
_root.instance_mc2.someFunction();
Now in AS3 I can access the object (extending sprite) itself (and inherited properties like x) by using:
ActionScript Code:
this.parent.getChildByName("row2").x
but if i try to access public variables/functions from that object (this.parent.getChildByName("row2").someNumber) I get Error 1119: Access of possibly undefined property someNumber through a reference with static type flash.displayisplayObject.
Anyone know how I can get this to work?
Code In One Instance Is Referencing The Previous Instance
I have the following code in a button symbol:
on (release) {
gotoAndStop (2);
_root["answer" + this._name.substr(1)] = "true";
}
I also have an instance of the button in 2 consecutive keyframes. The first instance is named "Q5" and the second instance is "Q6".
I expected the code: this._name.substr(1)]
to reference "5" and "6" from the instance names (Q5 and Q6), but instead instance "Q6" is referencing "Q5"!
The *really* strange thing, is that when I insert a blank keyframe between the two original keyframes, the code works perfectly!
Does anyone know what's happening?
[MX04] Get Instance Name Of Rolled Over Array Instance
Hi
I am willing to do a rollover image gallery which enlarges image on rollover event and shifts the neighbouring ones aside..
Here is the code so far
Code:
_root.bttn.onRelease = function() {
createGallery();
};
function createGallery() {
var row11:Array = new Array("DSCF5659", "DSCF5807q", "DSCF5773q");
for (i in row11) {
_root.createEmptyMovieClip(row11[i], _root.getNextHighestDepth());
_root[row11[i]].loadMovie("segi/"+row11[i]+"small.jpg", [row11[i]]);
_root[row11[i]]._x = i*150;
}
}
_root.onEnterFrame = function() {
function roll() {
var row11:Array = new Array("DSCF5659", "DSCF5807q", "DSCF5773q");
for (i;i<row11.length;i++) {
_root[row11[i]].onRollOver = function() {
this._xscale += 10;
};
}
}
roll();
};
What I would like to do is to:
ask flash which particular movieclip was rolled over , what is its instance name and than perform string operation to get a number (order) of that clip (I am naming all dynamically with image name + number in order)
Can anyone help me please ???
Thanx in advance
How Do I Copy A Sprite Instance Into A BitmapData Instance?
I apologize if this is covered elsewhere: I just don't even know what terms to search on to find what I'm looking for...
I have a sprite that receives various user-drawn lines on it during runtime. I would like to be able to copy this Sprite into a BitmapData instance, then send the pixels from the BitmapData instance to a PHP script. I think I'll be all right with the PHP end of things, but I just don't know how to copy my Sprite into a BitmapData.
(If there were a way to just use BitmapData and use the moveTo, lineTo, mouseX, mouseY, etc, methods, then I'd do that, but I don't even know if that's possible...Obviously, I'm not as well-versed in AS3 as I'd like to be.)
Thanks in advance for any help!
Instance On Top / Movie Instance Depth
Hi everyone,
I would like to know how, if possible, i can get the depth of a movie instance. Basically I just want to make the movie instance clicked on on top of all the others. I was going to try to do this using the swapdepths action but if anyone knows of a better way please tell me!
thanks a lot
jordan woolley
Returning The Instance Name Of A Class From Within The Instance
Hi,
I'm trying to do some error reporting in my actionscript.
I have a class MyData which can be instantiated several times over in each project e.g.
var myData1:MyData = new MyData();
var myData2:MyData = new MyData();
In the error reporting I have put statements like
trace("MyData.loadData reports error.... message...");
However, I'd really like it to return the instantiated name, not the generic class name so that I can trace errors to the particular instance that is failing. Does anyone know how to do this? I've tried
trace(this.toString() + " reports error.... message...");
but I just get a name of [object object] which isn't that helpful!
Many thanks!
Removing Instance X Inside Instance X
In Flash CS3 in library I have a MovieClip symbol Help (exported for AS).
The function below opens an instance of the symbol when the button is clicked.
ActionScript Code:
function showHelp(e:MouseEvent):void {
var helpwindow:Help = new Help();
helpwindow.x = 50;
helpwindow.y = 50;
addChild(helpwindow);
}
This works and instance "helpwindow" shows on the screen.
Now inside the symbol Help i have another button which will run a function that would close that instance. How do I get rid of that instance? I was trying with removeChild but errors occurr.
ActionScript Code:
function removeHelp(e:MouseEvent):void {
removeChild(MovieClip(parent).helpwindow);
}
Quote:
TypeError: Error #2007: Parameter child must be non-null.
How To Call The Instance Name Inside That Instance?
Ok this is what I want...
I am inside an instance of a movie clip. And I want to access the properties of this movie clip. Now the problem is (if) I don't know the name of the instance of the movie clip (suppose I create the instance of the movie clip on the fly!!!), how do i refer to the name of the instance.
Is there something called this. in actionscript?
Any help would be appriciated!!!
Sushubh
Dynamic Instance Name Vs Manual Instance Name?
Hello,
I would like to access this object (taken from Debug > List Objects of in flash player)
ActionScript Code:
Target="_level0.promotion0.loader_mc.instance87.promo TXT"
This is what I am trying to access it with:
ActionScript Code:
trace( this.getChildByName("promotion0").loader_mc.getChildByName("instance87").promoTXT.text );
Error:
ActionScript Code:
1119: Access of possibly undefined property loader_mc through a reference with static type flash.displayisplayObject.
what is the correct way to do this?
Total Nob
what does this mean:
stop();
???? any helop plerease
Getting NaN In Total
Can someone help. I have a quiz and have the vars listed as number, but if all anwers are incorrect it show NaN instead of 0.
Also, would this work better as array and how would code go?
thks
Attach Code
// add your textbox instance name
var totalUserScore:Number = Math.round((Number(chap1Correct)+ Number(chap2Correct)+ Number(chap3Correct)+ Number(chap4Correct)+ Number(chap5Correct)+ Number(chap6Correct)+ Number(chap7Correct)+ Number(chap8Correct)+ Number(chap9Correct)+ Number(chap10Correct)+ Number(chap11Correct)+ Number(chap12Correct)+ Number(chap13Correct)+ Number(chap14Correct)+ Number(chap15Correct)+ Number(chap16Correct)+ Number(chap17Correct)+ Number(chap18Correct)+ Number(chap19Correct)+ Number(chap20Correct)+ Number(chap21Correct)+ Number(chap22Correct)+ Number(chap23Correct)) / (Number(chap1Correct)+ Number(chap2Correct)+ Number(chap3Correct)+ Number(chap4Correct)+ Number(chap5Correct)+ Number(chap6Correct)+ Number(chap7Correct)+ Number(chap8Correct)+ Number(chap9Correct)+ Number(chap10Correct)+ Number(chap11Correct)+ Number(chap12Correct)+ Number(chap13Correct)+ Number(chap14Correct)+ Number(chap15Correct)+ Number(chap16Correct)+ Number(chap17Correct)+ Number(chap18Correct)+ Number(chap19Correct)+ Number(chap20Correct)+ Number(chap21Correct)+ Number(chap22Correct)+ Number(chap23Correct)+ Number(chap1Incorrect)+ Number(chap2Incorrect)+ Number(chap3Incorrect)+ Number(chap4Incorrect)+ Number(chap5Incorrect)+ Number(chap6Incorrect)+ Number(chap7Incorrect)+ Number(chap8Incorrect)+ Number(chap9Incorrect)+ Number(chap10Incorrect)+ Number(chap11Incorrect)+ Number(chap12Incorrect)+ Number(chap13Incorrect)+ Number(chap14Incorrect)+ Number(chap15Incorrect)+ Number(chap16Incorrect)+ Number(chap17Incorrect)+ Number(chap18Incorrect)+ Number(chap19Incorrect)+ Number(chap20Incorrect)+ Number(chap21Incorrect)+ Number(chap22Incorrect)+ Number(chap23Incorrect*1)) * 100);
trace (totalUserScore)+"%";
var totalUserScore = totalUserScore + "%";
Total Blank
Hey I have a total blank:
evaluating the parent movie clips name to use for a button.
eg. button resides in a movie with instance name "1"
how do I access that property? eval("_parent.?ARRGG");
I can't believe I can't remember
Total Noobie Q (maybe Not)
hehe cow. anyways. this is my question-->
i am creating a website and i'm making an intro no probs with that. but i want it to be slightly interactive. For example, user can chose background colour of HTML page etc, menus that link to other places. and one feature that really has me ticked off trying to do is when a user selects an option from a drop down menu and from the side a box slides in with information, basically i need an actionscript lesson!!!. i find the ones here to be too specific they don't deal with how to make an object react to mouse movement and other stuff like that.
TOTAL BEGINNER HERE
I have just finished HTML and I have no Idea about how Flash works. I would like it very much if someone could help me by explaing a little about Flash. Like I said before, Total beginner, so talk as you would to a nine year old.
Total Newbie, Needs Help
I have never created any flash in my life !
I was planning on making a game, and i was wondering what programs i would need and any tutorials that would help?
if making games is too difficult for someone with no experience at all, please tell me an alternative
thanking you in advance, st4lefish
Total On Page?
hello,
I want to know how to tell how many people are on
the page at that time. So how many people are viewing
the page at once.
Thanks, William
Total Novice
Can anyone direct me to a BASIC BEGINNER'S TUTORIAL to Flash MX? I am aware of the huge amount of tutorials available on the web, but they seem to assume that one knows the basics. (Which I do not!) I'd be very grateful for any help!!!
How Can I Find A Total
What do I use to find the top MC of a series of dynamically generated clips (ex: myClip[i][j]) ?
What I'm trying to do is make another clip always appears on top of the final "myClip[i][j]".
Total Newbie Here
I just got Flash MX and sorta know how to do some basics. But don't know how to make Flash movies. The lessons that come with Flash look like BLAH BLAH BLAH to me. Anyone here that can help me or guide me to making a Flash movie?
If Total Frames......
I have a preloader that loops 2 frames until content is loaded. Once loaded, it plays frame 3. Within fame 3 I have a MC that is made up of say...20 frames. Once that has played, I want to play/stop frame 4.
I need to use like...if total frames >= gotoandplay...frame4 or something right??? how does this work?
Thank your for your time.
Total Newbie
Hi all,
I'd like to be able to create Flash games but I am a raw amateur. I don't even know where to start. Any suggestions are most welcome.
Total Movie
I'm looking through all kinds of tutorials and stuff, but don't seem to find a tutorial where they
1. load different SWFs in an empty MC
2. where each menu button is connected with such a SWF
3. that, whenever e.g. menu item 2 is selected, menu item 1 e.g. fades out, or moves away or anything,(or vice versa of course) and then menu item 2 appears.
Does anybody know how to do this, or has anybody a fla that shows me how ? Especially cause I of course don't know which menu-item the user is viewing.
Total Newbie Here
I don't get how actionscript works, i put a code in there, and then what do i do? How do i make the code work? I mean, how do i make the code do what it's supposed to do? I'm sorry. I know this is dumb.
I'm using flash MX btw
Total Newbie
I am a total FLASH newbie and would like a good tutorial on line for me to start off with. I never used or even looked at the program before. I want at least a zero base level to which I can start building my knowledge of FLASH on. Thanks
Ok, Im A Total Newbie, And I Need Some Help...
ok, im pretty good in photoshop, but im sick of making websites in just photoshop and notepad, so i got Flash MX 6. i have an idea of a layout i want for my site, but i have NO idea how to do it in flash, i have it in photoshop.. heres what i want..
the pic attached, i want it to start out with just those 5 stars in the middle where they are without the box, and when u click the middle red one, the box like someone makes its self or something, and then the other 4 black stars are links that go into that little box, and then the scrollbar to the side...
if u can help me post or please IM me at joyntkid on AIM or e-mail me at elitefishes@yahoo.com..
thx alot.
|