ActionScript 3.0 :: Flash Grinding To A Halt Because Is Not Unloading Media
Sep 8, 2009
I've a got a huge (relatively) problem ni that i've created a Flash app with a dynamic data structure which ends in 150 different nodes.each node (if visited) loads in between 5-10 images and a couple of movies.
The data for each node and its consequent external media are all displayed in the same visual class that is only instantiated once.The display object that contains the jpgs and movies is cleared of all child objects before the next node loaded.
Yet the size of the flash file (according to windows task manager) never shrinks and very soon reaches 1mb in size at which point it starts to chuc badly.[code]...
I am trying to do a flash zoom in/out of a "wall", so a frame is always centred.I'm using as2 and tween lite. I used tweener and thought changing to tween litefree up resources, but there has been little or no improvement.You can see the result here, the code responsible for animation is below.
Is there any way to halt execution in ActionScript, such as a sleep() method? I know that there is a setTimeout() method, but setTimeout() just sets up an event for deferred execution.
I am having an issue with a swf playing over another swf. The stop audio portion of my ActionScript is occurring onComplete rather then a halt script action. This was not a problen when I tested locally since the files would download in 1 or 2 seconds instead of 8 to 12 seconds. how to change the onComplete to a halt action? My script is below.
function startLoad(){ var mRequest:URLRequest = new URLRequest(correctURL.toString()); mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler); mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
I inherited ,from a previous employee, a flash file and there is a bug which consists of a swf movie not unloading. I have attached the link to the website below. To be specific, after the publications button swf is loaded into the main file, you can never get it to unload fully. If any other buttons are clicked and their swf files are loaded, the buttons for the publications remain in the file ( not visually but the hit area remains). I just need to know how to get them to fully unload.
I'm building a site that has 7 sections. 1 section is a Photo Gallery for which I'm loading an external SWF file that is controlled by an XML file. Im doing this for allowing content editing any time.All of the other content on the site is one-time, no backend required.
I've successfully loaded the external swf file into a loader in one of the frames. However, when I navigate away to the other 6 sections, I'm unable to unload the external SWF loader. How do I go about this?
Here's my code that loads the external SWF in one frame:
Code: import flash.events.MouseEvent; //This creates a new instance of the loader object. var my_Loader:Loader = new Loader();
I'm using the following script to play a FlashPaper movie clip:
// function: loadFlashPaper // ------------------------ // Parameters: // path_s: path of SWF to load
[Code]....
Everything works fine on all pages including the page with the FlashPaper movie. The problem is after I visit the page with the FlashPaper movie my file starts to play through all the pages and wont stop.
I loaded xml on a movieclip and i also have a button to go to another frame but the xml keeps loadding!! what can i do to remove the xml each time i click on that button?
so I have 3 swf's that im loading with buttons into the main swf. The thing is that these 3 external swf's have embeded flv's. when switching between the swf's with the buttons, im using vid1loader.unload();the only thing is that while the video switched to the other video like it should, the audio keeps running on any number of videos(swf's) that are loaded. My question is how do you stop the audio when using simple Loader and URLRequest to load the swf's?
I'm using Loader::load() successfully to load swfs into my main swf and then I add them as a child of a Sprite. When other events occur I want to remove the swfs as needed. I have looked at unload() and at removeChildAt() without success.
I only added the addChild() call to try to pin down the loaded instance so I could remove it. The loading works fine without the addChild();
I have also tried publishing to player v.10 and using myLoader.unloadAndStop(); but this has no effect either;
The following demo code shows my problem. I see one child added and one removed but intro.swf is still playing away.
I have tried many approaches to unloading my swf, but to no avail, the video sounds within my laoded swf keep playing even once the swf has been loaded.
I have created a universal loader as follows:
var loader:Loader = new Loader();
I then load various swf's into a movie clip named mov_contentLoader, for example the video swf is loaded as follows:
loader.load(new URLRequest("video.swf")); //assign SWF url to loader mov_contentLoader.addChild(loader); //add loaded content to movi clip
I then have a generic "exit" button, based on the state of the application, certain windows are closed, swf's are unloaded etc. For my video.swf file, when the exit button is clicked, I call the unloadAndStop(); method on the loader as follows:
loader.unloadAndStop(); //unload all content, do some garbage cleanup mov_contentLoader.removeChildAt(0); //just to be safe, a second layer of reassurance ??
The SWF is unloaded, but for the life of me I can NOT get the sounds to stop! I even resorted to adding stage listeners on the video.swf to listen for an exiting state, but that still did not stop video sounds.
If I load the video.swf in again and play a different video, the two soundtracks play ontop of each other.
I could contact about building a custom live Flash media encoder for our website. We have a database for authentication and a list of upcoming events with stream information (FMS URL and Stream Name) that we want to automate into an encoder. Currently we have our customers use Flash Media Live Encoder and copy/paste the values into the encoder, but would prefer a solution that is more tightly integrated with our site
I am developing application for recording the video in mp4 format with h.264 codec and I am able to record video in mp4 format with h.264 codec, but when I am compiling the Swf by "CTRL+Enter" at that time I am facing error "VerifyError: Error #1014: Class flash.media::H264VideoStreamSettings could not be found" and when I am publishing Swf by "ALT+Shift+F12" then I am not facing any error,what step I need to do for removing the error.
I have installed the Authentication Add-In on a FMS 3.5.5 Development version, running Windows 2008 Server.I can easily get to the users.exe command prompt and add users with no problem.BUT, when I open the Flash Media Live Encoder and go to enter a username/password when connecting to the server, I keep getting "User Not Found".I've went back several times using users.exe and tested for my user credentials and it always states that the user is there.
New to FMS, testing FMS Developers versions.Connect and Live stream works fine using FMLE.Problem is I'm not sure how to get logged into the Admin Console.I'm not sure about what the "Server Name" is or the "Server Address". Is that just the IP address or the IP plus something else? How can I tell?FMS install was done by tech at hosting company and he forwarded this info:[code]
What would be some top reasons an FLV will not stream with Flash Media Streaming Serve 3.5? I ran the FLVcheck.exe on the FLV and it passed; however, the FLV will not stream. If I could just get some good reasons that would cause an FLV from streaming I think that will give me a good starting point for troubleshooting.
i have got a video application using FLVPLAYBACK component. isLive=true, rtmp://application/live/demo Flash media live encoder 3 the instance is demo. Everything works fine.I need to know when Flash Media Live Encoder 3 is off-line. how i can do that FLVPLAYBACK detect this action and the client is disconnected. i try using buffering but i don't know, how take a time for it. for example is 5sec in buffering do another action or is there some function that detects when there is off-line?
Flash Live Media Encoder claims that it can encode video from a firewire connection.Does it also encode audio from the same firewire connection?I've been told that past versions encoded video only
This is sort of a follow up to my previous post, asking about streaming through FMS to Apple and Android.Android and Blackberry devices require that the audio component of video streams be encoded using AAC. Right now I'm telling my customers to buy the MainConcept AAC plugin, or to buy VidBlaster or Wirecast. Can anyone from Adobe comment on when Adobe might release a version of FMLE that includes AAC?
I'm trying to start this live broadcasting show throw the free application called "Adobe Flash Media Encoder 3.2", but to start this I would need a serve to start everything. So I decided to experiment with your wonderful "Flash Media Serve 4 :Dev version," before I buy the full version for massive scale of use( to stream live camera.) , but I ran into a problem when I'm in the log in screen console. I can asure you that I typed everything correct from the installation sequence and Im also fallowing this tutorial [URL] when I ran into the login screen this is what I find : an error message saying "Log in attempt has failed.
Please verify your log in information and try again." So that's what I technically do and I get the same message every single time I try. Since I know my password and my username really good , I know im not wrong. But my attempt with server address simes to be the problem. So you guy can know what I'm typing on that text box I type "localhost" without the "".
I am trying to create a flash player to stream an on online Internet radio station using FMS. I chose FMS after being told that I need RTMP server to extract the metadata. Our radio audio is being encoded using a DJ interface called SAM Broadcaster. But for some reason, it does not have an option to send over the stream directly to a Flash Media Server. Only options are either IceCAST or ShoutCAST. How should i setup the stream? Should it be Stream encoder>> IceCAST/SHOUTCast Server>>Flash Media Server>>Flash Player Client. Or should I setup Stream Encoder>>Flash Media Server>>Flash Player Client? Shouldn't Flash Media Server be an alternative to IceCast or Shoutcast? If that is the case, how do I send over the stream from SAM Broadcaster directly to Flash Media Server without restreaming through another streaming server?