ActionScript 3.0 :: Movieclip Won't Unload?
Aug 20, 2010
I have a flash nav bar with sub nav. the film button(main nav bar) has 4 sub buttons: tv, commercials, film and imbd. When you click on the sub button commercials, it takes you to the main timeline where I have a loader (in a movie clip _1benz(that loads a benz.jpg in a loader called benzLdr. When you click a button on the sub nav in this group, to leave the frame, the loader unloads. But when you click on the main navigation to leave this frame(which is on the main timeline) the loader remains on the stage.what would be the correct actionscript to remove the loader from the main nav when it moves to other frames on the main timeline? I have tried....
_1benz.benzLdr.unload();
benzLdr.unload();
_1benz.unload();[code]..........
Do I need to put the loader on the first frame and then make it visible on the frame I want to show it? If I do that will it unload on all other frames?Nothing is working! What am i doing wrong?
View 3 Replies
Similar Posts:
Oct 6, 2009
I need to automatically unload a movieclip when the movie within the movieclip plays completely.
View 9 Replies
Feb 10, 2009
I am making a file that loads an swf on(release) of a movieclip. I can get it to load into frame 2 and have created a button to return to frame 1. But when you go back to frame 1 the swf is still there. How can I get it to unload when it goes back to frame 1?[code]
View 3 Replies
Jan 23, 2012
I made a movieclip that is supposed to unload when a character (called 'char' in the code) hit it. That works fine. But I also want to unload another movie at the same time. The other movieclip is called 'square' and is already on the stage. But that doesn't work.Do I have to put _mc behind the name, or something like that?
onClipEvent (enterFrame) {
if (_root.char.hitTest(this))
{
[code].....
View 4 Replies
Sep 11, 2005
how do i unload everything that i put into a movieclip?
[edit]_root.mvc.unloadMovieNum(1);[/edit] works good but only removes attached movieclips not .swf's that i loaded into it. eventhough i told the .swf's depth to be 1.
View 4 Replies
Jan 12, 2010
Work bought this menu and asked me to edit it even though i'm no AS2 expert just so basic knowledge, I've come pretty far so far but now i ran into a problem (probably the final one)...The menu uses XML to load in the menu, so all the options are dynamical.If you click a button it loads a menu into the stage, but if i click an other it overlapse the old one...i need to unload all the other movies on the stage, how do I do this? This is what I got for onRelease functions:
Code:
//Release function..
_parent.AccordionMenu["Menu"+a].onRelease = function() {[code]....
View 1 Replies
Jan 27, 2011
I want to know how to load and unload a movieclip.As for example i have a map of uk in my swf and when any body click on map(say london).the present map should fade away and new bigger map of the london should be loaded which is on another swf and must get first (orginal map) when he click back button.
View 1 Replies
Dec 4, 2010
When using this code everything works just fine -->
myMovieClip.imageHolder.attachMovie("slideShow", "slideShowb", 1);
var slideShowInterval = setInterval(nextSlide, 10000);
function nextSlide() {
[code].....
View 1 Replies
Dec 15, 2006
how to load/unload MC's on my MC container? I have a menu with a lot of buttons and each one loading on the stage (inside a MC container) a movieclip that it's on the library.
Plus 1: the old movieclip is totally replaced by the new movieclip.
Plus 2: I think that change the visibility not is a good option cuz the old movieclip can still playing, right?
I know that load and unload SWF's can be more simple (I already use this) but I just wanted to try something different (do not work with a lot of SFW's on my project)
View 12 Replies
Jul 19, 2007
Well, a "simple" question: how to load/unload MC's on my MC container? I have a menu with a lot of buttons and each one loading on the stage (inside a MC container) a movieclip that it's on the library.
Plus 1: the old movieclip is totally replaced by the new movieclip.
Plus 2: I think that change the visibility not is a good option cuz the old movieclip can still playing, right?
I know that load and unload SWF's can be more simple (I already use this) but I just wanted to try something different (do not work with a lot of SFW's on my project)
View 3 Replies
Dec 15, 2003
I need to unload my movie clip. Here is the AS I used:
annie.onPress = function() {
_root.createEmptyMovieClip("container", 1);
loadMovie("annie.swf", "container");
container._x = 380;
container._y = 190;
[Code] .....
Problem is I only want it to show in one scene and it is covering everything on the other scenes as well or "Pages".
View 5 Replies
Mar 19, 2010
I would like all the instances of my movieclip to unload once a variable has reached a certain number.
So that when the movie goes to the next frame, all the movieclips are unloaded.
View 2 Replies
May 13, 2003
I've tried to unload a movieclip from my flash MX File. I've tried on this way..that is unloadMovie[Num](level/"target") in this method I've given the target path of the movie clip. But when the browser page refreshing that again displays. How can we unload a movie that never comes even if browser refreshing the page.
View 1 Replies
Mar 21, 2007
(ps: everything happens on the maintimeline)when a user clicks the photobutton this code triggers:
Code:
this.createEmptyMovieClip("photo"+photoNum, getNextHighestDepth());
this["photo"+photoNum].attachMovie("photo", "photo", getNextHighestDepth());
now the movieclip "photo" consist on another movieclip that does the actual picture display/loading with some AS> photoHolder < loads the actual picture,so i thought ok,logically its
_root.photo.photoHolder.removeMovieClip();
maybe even _root["photo" + photoNum].photoHolder.removeMovieClip();
or _root.photo.removeMovieClip();
etc
i tried numerous other structures but i just can't get it to work, for some reasons i just can't unload the movieclip that shows the picture.
View 5 Replies
May 12, 2010
I don't know AS2 well, prefering 3.0, however the project should be in 2.0. So, I have 2 movieclips, one is parent, another - loaded through LoadMovie("name.swf", _root);I need to unload child after its played and stoped. How can I do it in most proper way?
View 1 Replies
Apr 28, 2009
How to unload a URLRequest(a new swf) done by a button which is inside a movieclip? tks a lot p.s - myloader.unload(); doesn't work
View 1 Replies
Jun 15, 2009
Here is the set-up.
I have a scene where there are 10 artist names. Each artist name is a button with a rollover image. The first artist name has an uploadMovie command in the timeline to show an image immediatly when the user opens the page.
_root.attachMovie("anne_01", "screen",1);_root.screen._x =417.9;_root.screen._y =135.7;
How do I unload that movieclip when the user scrolls over the nine remaining buttons? I know it is an unload command but I am not sure what the code should be or where I should put it. I have tried to put an unload command on the other buttons but I had no luck~
View 3 Replies
Aug 6, 2009
I have a multiple videoplayer running in a movieclip on the timeline of another movieclip.I need to unload or stop it from playing when the timeline moves on
View 3 Replies
Jan 19, 2008
I'm trying to unload a movieclip when it's pressed and load another one in its place. For some reason the loaded movieclip is always being loaded at row 7 column 10.
Code:
var columns:Number = 10;
var rows:Number = 7;
for (i=0; i<rows; i++) {
for (j=0; j<columns; j++) {
[code]....
View 1 Replies
Jun 5, 2010
Basic TweenLite question. How to unload an external movie clip from a loader with a tweenOut effect, with using only AS2, no timeline. here's my simplified scenario: I have 3 movieclips. "main_mc"; "blue_mc"; "green_mc".
[Code]....
View 4 Replies
Jun 16, 2003
I want the current swf to unload and the new one to load only after a transition occurs. Is there a more efficient way to do this than if. switch()?
View 2 Replies
Jan 7, 2011
I have an AS3 project (publishing to FP10) where I load a custom made window from the main movie. The custom made window is saved in the Library and has a close button (called exitinteraction_btn).
I manage to load the window from the main movie with the following:
var WinA = new windowa(); addChild(WinA); var myTween:Tween = new Tween(WinA, "x", Elastic.easeIn, 175, 175, 5, true); var myTween:Tween = new Tween(WinA, "y", Strong.easeIn, 175, 175, 5, true);
This is the code in my custom window (which I cannot manage to close and have it remove itself from the main movie when clicked):
exitinteraction_btn.addEventListener(MouseEvent.CLICK, closeI);
function closeI(e:Event):void{ this.unloadAndStop();
}
I get the following error:
TypeError: Error #1006: unloadAndStop is not a function. at windowa/heyb()
View 5 Replies
Aug 9, 2008
I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.
[Code]...
View 3 Replies
Jul 23, 2009
I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."
[Code]....
View 3 Replies
Mar 5, 2009
I have an swf, lets call it 1.swf, that has a button that calls another swf to level one. In that second swf, lets call it whatever.swf, on layer 1 it has an flv file of about 40 seconds. on layer two it has a button that has this action:
on (release) {
unloadMovie(1);
loadMovie("../swf/1.swf", 1);
}
So if that button is pushed, then it unloads whatever.swf as I need it to.
the problem is that if that button is not pressed, then when that 40 second flv finishes, it just sits there with a black stage and the button. What i need it to do is that when that 40 second flv is finished, it automatically unloads whatever.swf on level 1, again showing 1.swf on level 0.
Also, before anyone anwers, the way i did the flv is that in whatever.swf the flv was imported to the stage, i slected the "already deployed" put in the URL and then it created a flash video component which is on the stage.
View 3 Replies
Nov 16, 2009
how I can do to unload a swf before I load the next one?
var mLoader:Loader = new Loader();
function loadSWF(e:Event):void {
var imageId:Array = e.target.name.split("_");
var targetId:int = imageId[0];
[code]....
View 3 Replies
Jul 9, 2009
I am trying to add a external Swf files to my home page because my other pages are swf files. when i click other page it will call to my swf file. but my current home swf file running under my new page swf... so how can i unload my old swf.
View 2 Replies
Nov 16, 2009
I'm using AS3 to load one swf (a document viewer) into the main swf. the loaded swf takes up the entire stage, so I need the unload button to be in the loaded swf.
is there an AS3 equivalent to this.unload?
View 5 Replies
Jul 29, 2011
I have an AIR application which load/unload external AS2 SWF files. My problem is that when SWF is unloaded its Enterframe events keeps runing.
View 1 Replies
Dec 16, 2004
I have a random number of sprites that are created, each of them hurts the other when the collide, and when they die, I wanted the collisions to not do anything anymore.
I can fade the sprites out to make them invisible when their "health" reaches 0, but they are still there, and when they collide, they cause "ghost deaths" to other mcs. How can I get rid of a sprite from within itself? Or at least disable its onEnterFrame function?
View 1 Replies