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:
I'm building a website where all the menu items and content come from an xml file.
I managed to solve most of the problems except this: When I load a swf from the xml it appears on stage. But when I try to unload it (by pressing another menu item) it doesn't unload (and yes, I use the unload() comand...)
Here's the class source code:
ActionScript Code: package app.gui{ //esta classe importa a classe FadeRollOver para aplicar efeitos nos botoes //Esta classe reproduz o texto do XML na janela de output.
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... So i figured i need to unload all the other movies on the stage, how do I do this?
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]
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....
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?
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)) {
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.
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.
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)
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)
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.
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.
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?
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.
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~
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
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++) {
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".
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()
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.
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."
How do you make a movieclip move horizontally from the start of the stage to 3/4 of the stage. Stage size is 700 px by 600 px i want just one row in the middle of the stage. i want that movieclip to disappear right after it reach the end of the 3/4 mark.