ActionScript 1/2 :: Way Of Ending/unloading A Loaded Movie?
Aug 20, 2010
I'm about getting crazy over the inconsistency of loading and unloading movies processes.First one or two movies, ok. But after that, I always has my fingers crossed.It's a mixture or simple game and quiz movies. So I have this Main movie as the controller that control about 3 game movies and 16 quiz movies. So, I have these piece of codes in my Main movie timeline:
onEnterFrame = function () {
if (NextMovieOK) {
switch (movieQNum) {
[code]....
View 3 Replies
Similar Posts:
Oct 27, 2010
I have a movie clip (a) with a button that will load movie clip (b) when clicked. It loads (b) on top of (a) which is exactly what i want.
Now the problem. I have a button in (b) that I want to use to close (or unload) (b).
This is the code in (a) that loads (b):
Code:
spinner_mc.production.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler2);
function doubleClickHandler2(event:MouseEvent):void {
[Code]....
View 3 Replies
Aug 26, 2010
I've compiled an MTS video into MP4 format using FFMPEG. The video is 2 minutes long.
I want to be able to play the video back but start at 0:15 seconds and end at 0:45 seconds. Effectively I want the playback software to only show 30 seconds of playback available. The software must be a Flash-based application for integration into HTML.
View 2 Replies
Mar 31, 2009
I have a main movie menu which has sub movies loaded into levels 1 then section 2 into level 2. I have the subs loading on button but i cant get the subs to unload levels 1 and 2 once they have played.
View 7 Replies
Jun 14, 2010
I am using the following code to load a SWF file into a Flash animation. The SWF file is nothing more than a short flv video (10 seconds). Users have the option of clicking a "HOME" mc if they want to return to the main menu before the flv video is completely finished playing.
[Code]....
When I click the HOME mc the lipStop.swf disappears as I intend and the animation returns to frame 1, but somehow I can still hear the SWF file playing in the background. I tried the samething using a FLV playback component and the same thing happens: timeline returns to frame 1, the image diappears, but I can still hear the audio track in the background.
View 1 Replies
Jun 6, 2011
The first part is that I am downloading a SWF from a server that has a bunch of exported images in it. I am doing a lookup of the class names for these images then using that to load the data into the application. Later on down the line it is possible to download a separate SWF that has images in the same format with overlapping names.The issue here is that when loading the second SWF with duplicate names it doesn't overwrite the data as one might expect, it uses whatever was loaded first. So I need to know if it's possible to either make it overwrite the classes with the new data or throw them away before loading the new SWF so the old ones don't get in the way. Is this possible at all
View 4 Replies
Sep 29, 2008
how to unload the swfs in as3 once you click a button to load a new one.
My file works great, with the exception of the videos playing over each other. slight bummer.
I have five buttons that each pull an external swf that is controlled by an xml file. If there were not sound it would not be an issue, but the sound overlaps if you click to the next link before the first video finishes playing.
I uploaded all the files here, including two test flv files. the files were too big to upload to the kirupa forum.
[URL]
View 3 Replies
Mar 2, 2009
i am currently workin on a flash website...
the following works perfectly fine
Code:
import flash.events.*;
import flash.display.Loader;
import flash.net.URLRequest;
[Code]....
how can i unload the current loaded swf when moving on to another frame?
View 3 Replies
Jun 16, 2010
I have a master swf that uses Loader to load in an external swf. I need to load a back button on top of that stack as a separate Child - and I have code in that loaded Child that needs to Unload the Loader-Loaded swf, unload the Buttons, and move the main timeline to another frame.
View 2 Replies
Jan 23, 2010
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.
import flash.display.Loader;
import flash.display.Sprite;
import flash.display.LoaderInfo;
[Code].....
View 1 Replies
Mar 19, 2011
I'am developing a Custom Player for SWF's,...the SWF's are loaded externally.I've added functionality so as to load next SWf if next_btn is clicked and previous sef if prev_btn is clicked.Now, whats happening is that, the sound of the loaded swf is still playing in the background if another swf is loaded along with the loaded swf's sound.I'am thinking that if I'am able to remove the loaded swf and then load the next swf, then this problem will be solved,...I just don't know how to unload it.My code so far is...
var Xpos:Number = 0.0;
var Ypos:Number = 0.0;
var swf:MovieClip;
[code]....
View 3 Replies
Apr 3, 2009
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.
View 1 Replies
Jan 12, 2011
I can load and unload a movie via the "loadClip" and "unloadClip" methods. So far, so good. However, I notice that the movie is not altogether "unloaded".Some of it continues to run even though the visible movie is gone. I know this because there is an "interval" timer started within the movie and I am seeing the effects of that "thread" (ok, maybe its not a thread but thats what it seems like to me. Process, maybe?). Anyway, even though I have used the unloadClip method to unload the clip, I have a feeling that there is a lot more I should be doing to clean up the mess I have left behind. Seeing the effects of the still-running interval timer, I now have visions of memory leaks not far behind.
View 3 Replies
Oct 25, 2003
i have a little problem (not so little for me) with laoding movies:on the main movie, i have a button which loads a movie withthe following script:
horta.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("03_horta.swf", "container");
[code]....
View 13 Replies
Nov 25, 2005
I read a tutorial about complex buttons with prevFrame function on this site. I was wondering how I could use this function to unload my movie. I have a movie (swf) that loads itself into another movie. Now what I would like form this movie to do is to kindly unload itself the way it loaded in. This should happen once a button on the main (root) timeline would be pressed. I already have all the buttons set up, but I have no idea how to write a code that would send my movie backwards. I is simply put a this.onEnterFrame = prevFrame; on the last frame, but now there is a problem. I have to somehow stop this movie until a button is pressed. And only when a button is pressed it should execute prevFrame.
View 1 Replies
Oct 25, 2003
i have a little problem (not so little for me) with laoding movies:on the main movie, i have a button which loads a movie withthe following script:
horta.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("03_horta.swf", "container");
[code].....
View 13 Replies
Oct 5, 2009
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.
files available here for example of my problem:
[URL]
View 1 Replies
Mar 12, 2010
SO what I have here is a simple menu with 5 buttons. I have event listeners attatched to each button that loads an external swf each time each button is clicked. Im trying to wrap my head around a solution to unloading the movie clips. as it is each swf is just getting loaded on top of the other one when the button is clicked.
a sample of a button code is:
var hList = hardwareDisplay;hardware_mc.addEventListener(MouseEvent.CLICK, hListDisplay);function hListDisplay(event:MouseEvent):void{ hList = new
[code]....
View 5 Replies
Jul 20, 2009
how can I unload a movie clip which is added dynamically?can we create multiple instances of the movie clip?I am adding the movieclip dynamically as below where tLevel
//global variable
var tLevel:MovieClip = this;
var myMovieClip:MovieClip = tLevel.attachMovie("MyMovieClip","myMovieClip",tLe
[code].......
View 1 Replies
Oct 19, 2004
I have this fully integrated site where the menu(which loads from different swf) loads external swf into a container. Whenever a new bottom i selected i want the swf in the container to fade out. Can i add a script to my present code that fades the container "contact" out.
[Code]...
View 5 Replies
Dec 12, 2006
I'm loading jpg's externally into a dynamically created movie clip that then get clicked on to show a larger image. I'd like to be able to click on that MC/larger image to close it once it's loaded. Here's the code I'm using to create the MC and for the life of me can't figure out how to do it after extensive searching on the subject. Basically I'm wanting to go back to the "pre-click" state of the movie when it first loads before any clicking happens.
Code:
_root.createEmptyMovieClip("large_mc", 1);
with (_root.large_mc){
_x=225;
_y=92;
[code]....
but it doesn't work...
View 10 Replies
Apr 23, 2008
I have a custom swf player, in which content is preloaded. Some of the third-party Flash content (from Captivate) I load in the player needs to be unloaded and loaded again in order to completely reset its content (rewinding, going to frame 0, does not work). Does anyone have an example of a good way to do this, as I am rather new to Flash?
View 3 Replies
Dec 16, 2009
I'm using Flex to load external swfs, and casting them as movie clips so I can communicate with them. However, I'm having difficulty unloading the movieclip. I've tried setting loaded_MC = null, but it still continues to run in the background.
public var loaded_MC:MovieClip;
private function init():void
{
loaded_MC = MovieClip(swfLoad.content);
[Code].....
View 2 Replies
Jan 20, 2004
I have a movie that initally onloads onto the stage at target MC. I then want this movie to unload when the following button is moused over or clicked for the same MC target.
Button1.onRelease = function() {
loadMovie("home.swf", "target");
};
What would the syntax look like if the inital movie came into a different target MC named "target 2"?
View 7 Replies
Oct 19, 2004
I have this fully integrated site where the menu(which loads from different swf) loads external swf into a container. Whenever a new bottom i selected i want the swf in the container to fade out. Can i add a script to my present code that fades the container "contact" out.
on (release) {
unloadMovie (_root.bg);
unloadMovie (_root.contact);
[code]....
View 5 Replies
Mar 30, 2009
There are hundreds of threads on the web about unloading movie but none of them work. For example, the code below gives this error: TypeError: Error #2007:
Code:
var alert:Boolean=true;
if (loaderInfo.url!="someurl") {
removeSwf();
[code]...
View 4 Replies
Aug 5, 2008
I've created a main page with my main links on top, and a container as my body.I load my pages with this action to the container.
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "production";
container.loadMovie("production.swf");
[code]....
Inside the production.swf files I've created a gallery with a MovieClip that loads from my library to a container1 inside the production.swf. In the galleryMC(from library), Ive created a close button to unload it from the container1. It works fine from my production.swf file, but when it loads to the main page it doesn't unload. This is the ActionScript that I have to unload the Movie Clip.
on (release) {
this._root.container1.unloadMovie();
}
View 2 Replies
Feb 26, 2009
I can't seem to unload a movie, I've tried every possible actionscript code and still it won't go away. My objective is to run in the main stage a sub menu and for that I've done sub pages each one with a previous and next button (inside the movie that will be loaded), and that's the catch. I can't put the loadMovieNum in 0 level because it would replace the main stage. So I'm trying to do on the button:
on (release) {
unloadMovieNum(1); // it was loaded into level 1
loadMovieNum("new_item.swf",1); // he overlays both movies with transparency
}
Is there anyway to remove the actual movie and replace it with the new one?
View 3 Replies
Nov 5, 2004
I have a movie that's 500x400 px in level 0 and has lots of thumbnails with pictures that I want to open. the thumbnails open a 500x400 px movie above the other but on level 1. the problem is that when the new movie loads on level 1, the thumbnails on level 0 (that are now hidden by the new movie) are still active, and if i click anywere in the movie on level 1, it trigger an action from level 0. Is it possible to load a movie to level 1 that deactivates the movie in level 0 without unloading it?
View 1 Replies
Aug 15, 2011
[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
Main FLA:
function removeF() {
removeChild(bigboreLoader);
}
[code]....
View 10 Replies