ActionScript 3.0 :: Stop URLRequest Stream?
Feb 12, 2009
In the following code, I call a separate swf file that uses xml to load in a series of images and automatically rotates them.If, in the Main movie, it goes to a new scene that doesn't hold this swf but before all the images are loaded, it continues to load all of them in the background.So, I tried to get it to close the loader when it goes to the new scene.But it isn't working. It's still streaming and loading the images in the background.
ActionScript Code:
var imageRequest:URLRequest = new URLRequest("imageRotator_01.swf");
var imageLoader:Loader = new Loader();
[code].....
View 0 Replies
Similar Posts:
May 24, 2010
I have recently installed FMIS 3.5.3. In checking the access logs I find data in both logs that display the same stream stop and stream play time .I'm not sure why the time is the same (00:19:27 example below). Videos play fine when testing from work (T3 connection). However, occasionally a very slight hesitation when playing video from home (I have cable connection). [code]...
View 4 Replies
Mar 8, 2011
I am very new to action script. I want to stop the stream from publishing then later on i want to publish the same stream again. My problem is that I have 3 levels of stream processing (Ingress-Rename ProxyLimelight-AuthProxy-Live) before it goes live. User wants to stop stream from publishing and then publish the same stream when he wants in each level. User does not want to start the stream from the begining, he wants to restart the stream on the same where he stopped.
View 0 Replies
Jan 25, 2011
I have an AS3 swf which users can upload jpg images to my EC2 instances which sit behind and Elastic Load Balancer. The jpg images are converted into bytearray data and sent using URLLoader.load(URLRequest)I make 2 calls when uploading, one to upload a large version, then another to upload a thumbnail version. A PHP script to which the bytearray data is uploaded converts this to a file using file_put_contents($destination,$GLOBALS["HTTP_RAW_POST_DATA"])Is it possible to combine these two requests into a single request which contains both the bytearray data for the large and thumbnail images and 'split' the HTTP_RAW_POST_DATA to create 2 files at the server. This would be better than uploading the bytearray for the large version then using something like ImageMagick to resize the resulting image into a thumbnail which I realise is another option.
View 1 Replies
May 17, 2011
When I place one link in AS3 with a stop everything works great!
stop(); import flash.events.MouseEvent;
//---link1 var getLink1:URLRequest = new URLRequest("http://www.google.com");
[Code]....
View 3 Replies
Aug 12, 2009
In my movie i have a link button with following, simple, function creating a link:
[Code]...
lately i've associated a class file (.as) to my movie and immediately after, when publishing the movie i got the following error message: 1046: Type was not found or was not a compile-time constant: URLRequest. as well as a couple of other related error messages: 1180: Call to a possibly undefined method URLRequest. 1180: Call to a possibly undefined method navigateToURL. when i remove the link to the class file, the problem goes away. also, i have checked the class file for mentioning of "URLRequest" and nothing is there.
View 9 Replies
Jul 23, 2009
How do I stop an rtmp stream? I tried this code but I get the following error.[code]...
View 1 Replies
Feb 28, 2011
My fmis server is 3.5.4 and I use flvPlayback to play the fms live stream.
I want to let the live stream stopping status after be load completed.but after I set the autoPlay=false, the fms live stream is not stopping status after be load completed.
However I try the fms vod stream as the autoPlay=false ,is can stop .
what's different the live stream and vod stream. why the vod stream can stop but live stram can't stop?
View 3 Replies
Apr 11, 2009
I need to know how to start and stop my flvplayer and my live stream.
I think this is kind of what I need but I've tried bits and pieces of it inside of functions triggered after a certain time and its not working.[code]...
View 5 Replies
Mar 8, 2011
Can anybody tell me how to stop and restart the incoming stream thru server action script?
View 0 Replies
Jan 22, 2004
I created this very simple MP3-player. Which works good for most part I think, but there's one problem. If I click on the play-button and skip quickly through to the next track, while the first track wasn't even playing yet, I get to hear both songs mixed through eachother when they both finished loading. Apparently the first track was still loading. So I'm kinda wondering if there's a way to stop the load of the first MP3 stream when I skip to the next one?Here's the link to my MP3-player with 5 one minute clips of songs: http:[url].....
View 11 Replies
Mar 9, 2011
How do you tell flash to stop Looping a stream sound that is imported from the library via Linkage method into AS3? I understand the idea of soundChannel that control the sound.
PHP Code:
block_mc.addEventListener(Event.ENTER_FRAME, enterframe);
function enterframe(event:Event):void{
if(block_mc.hitTestObject(circle_mc)){
myChannel= mySound.play();
}else{
myChannel.stop();
The above is a drag and drop situation, so when the block_mc is no longer hitting the circle_mc, the sound echoes or loops multiple times before coming to a stop. Any clue how to rectify this. How do you use onSoundComplete in AS3.
View 4 Replies
Apr 6, 2009
HI installed flash media server 3.0.4 on a Windows 2003 server.I am using the default LIVE application and broadcasting to it using FME version 3.0 Inside FME I choose MP3 as the audio codec, stereo and 128kbps When I watch the stream everything works fine but after a minute (sometimes 2 minutes) the sound disappears and I can only see the video run.If I refresh the page that contains the SWF that plays the stream then the sound works again but then again after a minute the sound stops and only the video continues to play. It is important to say that this only happens when I play a live stream from a server that is located outside of my local LAN. If I play a stream from my development FMS server in my local LAN this problem doesn't happen using the same SWF and same settings in FME.Moreover, if I use the nellymoser audio codec then everything works fine and this problem doesn't happen also. The thing is that I want to broadcast a live event and it is very important that the audio sounds good (stereo and 192kbps) and if I use the nellymoser codec the results aren't that good.
View 5 Replies
Mar 10, 2012
Is it possible to stop a (live) Stream from playing for a user, but keep his NetConnection open for eg chat functionality?I only see a setBandwidthLimit to accomplish something similar to this, but then, if BW is set to 0, chat won't work.Why isn't there a built in feature to do something of seemingly common necessity like Client.stream.stop/change function to stop or change what video playback the client sees?
View 2 Replies
Aug 28, 2010
close another live stream B if opening when stream A is closed? Does FMS support this kind of logic?
View 8 Replies
Oct 8, 2010
Only just getting started on this whole domain of learning, so go easy!If I set up a P2P video/audio chat (similar to the sample VideoPhone thing on the Cirrus site), can I get the stream from both parties to send to a server at the same time so that I can record it? If so, would I have to use a FMS to stream it to and perform the recording (and if so which version could I get away with)? Are there any (preferably free, or just tutorialised) solutions for the recording side of things?
Currently it seems like the only option for doing the P2P thing is to use Stratus/Cirrus unless I use FMS4 Enterprise.
how effective this kind of situation can be, in terms of quality of the stream and recording? Does any of this make sense?
View 1 Replies
Jul 26, 2010
I've had FMS running on my local machine for a while and have had a little experience writing FMS apps, but I've just tried recording audio for the first time using the standard vod application and I keep getting a "Write access denied for stream" error. My AS3 code is copied and pasted for various examples and am confident that it works.
I'm running Windows XP service pack 3 & FMIS 3.5.
I've had a look at the vod/media directory and under windows->properties the read-only attribute is ticked. Every time I un-tick this it reverts back to being ticked. I've googled this and MS say that most programs ignore the read-only attribute and that it only really applied to files. I've also tried the MS fix for setting the read-only attribute via cmd and still no joy (doesn't fix read-only attribute or FMS recording the audio after setting via cmd).
I've also tried our dev server install of FMS (running under linux) and am getting the same results.
Here's my AS3 code...
private function initApp(event:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE,initApp);
[Code].....
View 1 Replies
May 9, 2011
i test the fms 4 update 1 rtmfp streams multicast after 10 minutes i get this message RTMFP Multicast stream has exceeded max duration allowed; closing stream. but i do not use IP multicast
[Code]...
View 3 Replies
Mar 9, 2010
I build a client side application where is only a FLVPlayback2.5 component and a short AS3 script.
[Code]....
My Encoder is setup with three streams: Vid: 500 kbps - Audio: 48 kbpsVid: 800 kbps - Audio: 48 kbpsVid: 1500 kbps - Audio: 48 kbps I start the encoder and everything looks fine in the log. In my browser (Safari or Firefox) I go to my html site and the stream starts after 6-8 sec. But anytime with the lowest bitrate 548 kbps and nothing look like the stream is switching to another bitrate. I tried it with the smil playlist and the result is the same. Only the lowest bitrate is plublished.
[Code]....
View 3 Replies
Aug 27, 2010
I'm having a problem with recording a live webcam stream. The last few seconds of the stream is getting cut off.
The recording is stopped with the following piece of code:
vid.attachCamera(null);
vid.clear();
ns.attachCamera(null);
ns.attachAudio(null);
ns.pause();
What could be causing this? Is the stream cut off too soon? Is the client unable to send buffered data to the server?
View 2 Replies
Jul 21, 2009
I am having trouble getting audio stream meta data from an Akamai FMS stream. Everything is undefined and I'm not sure why. I am hoping maybe someone will notice something that I am overlooking. The stream is connecting and playing without a problem I just can't seem to figure out why all the meta data is undefined.
[Code]...
View 6 Replies
Jan 23, 2011
I have a layout with narration and a nav bar. When I click a nav button for section 2, the audio from section 1 (set to stream) continues to play over the audio for section 2. This cumulates so if I click buttons for sections 3, 4 and 5, I get five audio files playing on top of each other. Sections are individual movie clips with embedded audio streaming on a Sounds layer in each movie clip.
View 3 Replies
Dec 12, 2011
I'm trying to stream a HDS live multi-bit stream, it seems to push to the FMS but my player doesn't display the stream.Are these settings and files correct? The documenation is confusing on what and which files need to be edited and/or created.
Encoder settings:
Bit Rate: 150,500,700
FMS URL: rtmp://myserver/livepkgr
Stream: liveevent%i?adbe-live-event?liveevent
FMS 4.5
I see the following directories being created when I start encoding and each directory has a single file with a .stream extension in them. Are these correct? fC:FMS-HOMEapplicationslivepkgrevents\_definst_liveevent1[code].....
View 2 Replies
Dec 11, 2011
Can I re-stream a stream from wowza to fms 4.5?I have a wowza stream with the url similiar to URL... Is it possible to restream this to fms 4.5?
View 3 Replies
Jan 24, 2011
I have a narration and a nav bar. When I click the button for Section 2, the audio for Section 1 continues to play on top of the audio for Section 2.
View 1 Replies
Jun 12, 2009
I thought I had a handle on the timer class (even just a beginners understanding), but I'm having trouble with it.I have an event listener for the timer and it starts fine i get a delay, then a tween,but when I place a myTimer.stop();in the fuction the listener called (to stop it) it dosent stop.it will repeat placing the first image, and then call the first function again
......Wait its placing the first image in (a couple of lines before the start), so Its restarting the whole movie, not just the function?
myTimer.addEventListener(TimerEvent.TIMER, tweenone)
myTimer.start();
function tweenone (event:Event):void[code]...........
View 6 Replies
Aug 26, 2009
I have a contact form for which I have a tween. That contact form consists of two keyframes, first the form, I tried putting the code stop(); in the first keyframe but it didn't stop. I then changed stop(); to _root.stop();, which didn't work either. I have to stop it because otherwise users would see a thank you note before they even enter their details. What can I do? Converting to movieclip didn't work either, besides it puts a funny character when I press AltGr
View 2 Replies
Apr 28, 2010
I have the following actions in my file :
var xmlLoaderA:URLLoader = new URLLoader();
xmlLoaderA.addEventListener(Event.COMPLETE, LoadSomething);
xmlLoaderA.load(new URLRequest("my url"));[code]....
now imagine that the loading of the file is completed and we are in the "LoadSomething" function. How can we trace "my url" in this function? In another word I want to wite this action:
trace(Command);
and I want "my url" string in output.But I dont know what is the Command.
View 1 Replies
Dec 27, 2011
During development I have to test using several different hosts. It is a pain to have to change the IP address everywhere I use navigateToURL or in an mx:HTTPService. I would like to set a var with the IP... public var hostIP:String = "192.168.1.100"; Then later I instead of doing...
[Code]....
View 2 Replies
Sep 26, 2009
working my way through some tuts, and have set up WAMP. Trying to send some vars from AS3 to PHP to update a mtySQL table.My issue is that the php file does not seem to be receiving the variable info from flash, why not?
Here is the AS code
Code:
submit_btn.addEventListener(MouseEvent.CLICK,onClickSubmit)
function onClickSubmit(event:MouseEvent):void
{
var loader : URLLoader = new URLLoader();
[code]....
The PHP works cos when I run it from a browser $sd3 updates the database field to 78.This the output of the 'trace' statements
clicked
sd1=77&sd2=88&nickname=test1
The reason is probably simple but I can't see it.
View 1 Replies