ActionScript 2.0 :: Navigation Button To Unload Movies

Mar 15, 2006

On a particular frame I have the action
PHP Code:
loadMovie("swfs/home_text.swf", 1);
I want to add an action on a navigation button to unload that movie from main movie. I tried unloadMovie();, but no luck.

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Make Movies Unload Before Movie Corresponding To Button Clicked Loads Up / Doesn't Overlay?

Jun 16, 2003

URL...How and where and what do I add to make the movies unload before only the movie corresponding to the button clicked loads up and doesn't overlay?I'm having trouble with the level and all that URL...

View 4 Replies

Can't Unload Movies On Two Different Levels

Jun 1, 2009

I am having trouble with unload an loading movies. Basically I am loading a movie into a container, which works a charm:

[Code]....

I want to unload them both when a close button is pressed on the third loaded swf? Also, ideally I would like to add that second movie clip into a container, so I can position it correctly, but when I try copying the code I use on the first, it doesn't seem to work...is it to do with the "root" bit perhaps?

View 3 Replies

ActionScript 1/2 :: Unload All Movies?

Sep 28, 2009

i need when you click a button it unloads all movieclips on a stage

View 5 Replies

ActionScript 2.0 :: Unload All Movies When Going To New Frame?

Aug 31, 2010

I have a scene with buttons that call upon outside movies to be loaded. But when I click a button to go to a new frame, the outside movies on still being seen on top. Right now my button Action is:

on (release) {
gotoAndPlay(16);
}

What should it say to unload all movies then go the 16?

View 5 Replies

ActionScript 2.0 :: Load/Unload .swf Movies?

Jan 30, 2003

I have a scene with 9 buttons opening each a *.swf movie example: on Home I attach the action:

on (release) {
gotoAndStop (2);
}
// other buttons goto and stop frame 3,4,5,6...

on Frame 2 there is a blank keyframe with the action:

stop ();
loadMovieNum ("home.swf", 2);
unloadMovieNum (1);
unloadMovieNum (3);
unloadMovieNum (4);

[code]....

what about a *swf movie(1.3) loaded into a *swf movie(1.2) witch is loaded into a *swf movie(1.1)?can I unload movie 1.3 separately?

View 2 Replies

ActionScript 2.0 :: Unload Movies On LeaveFrame?

Apr 16, 2006

I'm building a site for my music and stupid as I am I tried to do so in flash.
well, most part works just fine

problem: i load an mp3 with

Code:
loadMovieNum("queen/player.swf", 2);

to use my homemade player-interface

what I need now is a way to unload these movies the moment someone leaves the frame. i tried to put an

Code:
unloadMovieNum("queen/player.swf");

on every menue item but that does not seem to work (by now you probably realised I'm no flash-guru)

View 5 Replies

ActionScript 2.0 :: Unload All The Other Movies On The Stage

Jan 14, 2010

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?

[Code]...

View 1 Replies

Automatically Unload Movies When A New Movie Is Loaded?

Apr 30, 2009

Is there a way to automatically unload movies when a new movie is loaded? eg: 5 buttons, 5 bit of art. At the moment they overlap instead of unloading before the new one loads.

View 4 Replies

ActionScript 3.0 :: Unload FLV Movies When Clicking Home?

Sep 29, 2008

Is there a way to set up an unload FLV actionscript (AS3) on the click of a home button? So, when defining the functions of the home_btn, have it unload FLV (sound and video).

Or would it be better to put into the actionscript frame? So, when the home_btn brings the timeline to "home", the actions on that keyframe have an unload FLV.

View 3 Replies

ActionScript 2.0 :: Creating Function To Unload Series Of Movies

Nov 16, 2006

I've had to create the following code to get a series if loading movies to work properly. Each loaded movie is basically a series of automatically looping images controlled by external xml. I found that without adding the unload movie on each button action the first movie loaded kept playing over any subsequent movies loaded. However its rather long winded and if the amount of movies increase it really is going to be very large. How to create an efficient funtion that does the job in a more effective way:

intro_mc.onRelease = function() {
unloadMovie ("_root.container02");
unloadMovie ("_root.container03");
unloadMovie ("_root.container04");
createEmptyMovieClip("container01", 2);
loadMovie("deaf_intro.swf", "container01");
[Code] .....

View 2 Replies

ActionScript 3.0 :: Unload The Previous Loaded .swf And Load The New .swf Without Having A Separate Button To Unload

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

ActionScript 3.0 :: Can't Unload FLV Called To Timeline Loop Using Navigation

Jun 6, 2010

I'm working on a flash music site [URL] and am trying  to integrate a 480x320 .flv into a frame loop in the "game" section of the main movie.
 
I first tried loading a .swf version of the same file but I couldn't get it to unload (video and audio) and it really slowed down the performance of the main movie.
 
That was Thursday.
 
So I tried to use quicktime but flash CS4 no longer accepts it. 
 
All day yesterday I've been working with a .flv version (which doesn't look nearly as good) and tried to directly import it but got an error ("no such file exists") even when it's right next to the other files.
 
With the Wizard I tried both picking the local file and assigning the URL of the file previously uploaded to my site.
 
So i then tried to use actionscript to load it into the actions layer on the frame at the beginning of the "game" scene which after hours of fiddling finally worked.
 
Here's the current problem:

I just want it to loop until someone clicks to go to another section but now what happens is the video and sound from the .flv keep playing even after you click on another button to navigate away from this scene.
 
I tried online to find a way to unload the .flv but none of them worked - went thru pages of google searches but the suggested coding did not prevent the .flv from unloading.
 
here's my code which is in the actions layer at the beginning of the  "game" scene:
 
var vid:Video = new Video(480, 320);
vid.x=231;
vid.y=457;
addChild(vid);

[Code].....
 
It is very frustrating that Adobe makes it incredibly difficult for an intermediate user to do such a basic thing - load a swf or flv into an fla and have it play, then stop playing when someone navigates away.

View 4 Replies

IDE :: SwapDepths And GotoAndPlay - Play With A Navigation Swapping The Movies To The Front As Clicked

Oct 15, 2009

I am trying to get a FLA to work correctly. I have 4 movies that I want to play with a navigation swapping the movies to the front as clicked. When I use the navigation, the first few movies work great, but as I click through they start to get a little jumbled, and it breaks. I am using this script for the buttons to call on the movies:

[Code]....

View 1 Replies

ActionScript 2.0 :: When Click A Button It Plays The Movies Assigned To The Variables Gallery & Button To The Frames Mentioned

May 2, 2006

[Code].....

Ok- so the idea is that when you click a button it plays the movies assigned to the variables gallery & button to the frames mentioned. Then the variables are changed and then when another buttons is clicked it does the same - 'except it doesn't - it does it once then sits there I have to use variables because there's a lot more buttons..but i don't understand why it doesn't work - it seems such a simple and obvious thing to try and do - why is it so HARD???

View 14 Replies

Flash :: CS4 Button Navigation - Direct The Button To Different Frames?

Nov 4, 2010

I'm using flash for the first time to create my graphic design portfolio and I'm having trouble keeping the file size small, and can reduce it by (hopefully) doing the following:

My resume has a lot of classic tweens with alpha channels (to create fadein/fadeout effects) and as of right now, I need to create a separate layer of fadein, fadeout for each transition. IE: My resume to portfolio page needs one 20-frame transition, my portfolio page to resume needs a 20-frame transition, my 2nd page of my portfolio page to my biography needs a 20-frame transition, etc. It's getting out of hand.

I could easily remedy this by using a lot of separate fadeins fadeouts and then coding buttons to navigate from, say, frames 120-130 (resume fadeout) then go to frame 160-170 (biography fadein), then navigate to a static page. I'm not sure if this is possible, as my buttons would have to change functions each frame.

Another possible way is that currently for each button I have different layers in order to direct the button to different frames, and have placing hem in the same spot. I'm wondering if there's any way to have buttons go to separate frames on different frames, if you get what I mean (on frame 120 it'll go to 130, on frame 150 it'll go to 160 but still be the same button". Right now each button is coded with on release gotoandplay <frame>.

View 1 Replies

ActionScript 2.0 :: Unload The Button.swf?

Apr 24, 2003

how to unload a mc with this

on (release) {
loadMovie ("button.swf",_root.dropzone);
{

how to unload the button.swf

View 3 Replies

ActionScript 3.0 :: Unload Swf When Another Button Is Pressed?

Jan 16, 2010

i have a menu, that works with a xml file.the xml has the specific code that triggers the .as file:

HTML Code:
<buttons>
<button name="HOME" linkType="custom" link="home.swf" />

[code].....

View 5 Replies

Unload Gallery SWF By Clicking Button

Jan 21, 2010

I created a flash site and on the gallery page I load a gallery .swf and I want to be able to click on the "about" and "contact" buttons and have it go to there page and unload the gallery swf. This is the code I have on the gallery frame

import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
function startLoad(){
var mLoader:Loader = new Loader();
[Code] .....

View 1 Replies

ActionScript 3.0 :: Unload Loaded Swf Through Button

May 23, 2010

I use the following code to load a swf on top of main. Is there a way to have a button in the loaded swf then close the loaded swf?

[Code]...

View 5 Replies

ActionScript 2.0 :: Trying To Unload External Swf With Button

Nov 30, 2010

im using the [code]function to load files into my fla .im trying to put a button in each of the loaded swf files that will tell the main fla to unload the swf and gotoAndStop(1)i have 3 buttons on the first frame of main fla. the first button has [code] different game.so i need a button to unload the game and gotoAndPlay(1) i know how to do this in as3 but im not to familiar with as2.

View 1 Replies

ActionScript 3.0 :: External SWF Unload Itself Using Button From Within?

Mar 15, 2011

Everything works perfect except for one problem I just can't figure out. On the homepage, called "home_page_swf", I have three buttons at the end of three paragraphs that say "Learn More" and need them to trigger the "home_page_swf" to unload itself and replace it with one of the other external swf pages. I basically want the three buttons within the "home_page_swf" to perform the same function as the "Services", "Portfolio", and "Team" buttons that are located in main swf. I've been trying to read up on it and I keep finding something about "Dispatch Even" but can't figure out how to apply it to the code I am using for the website I'm working on. I'll post the code below for the main navigation swf and what the labels are for the buttons that are inside the external swf called "home_page_swf".

Main SWF with main navigation buttons:
var Xpos:Number = 0.0;
var Ypos:Number = 0.0;

[code]....

View 1 Replies

ActionScript 3.0 :: Button To Navigate And Unload Swf?

Apr 28, 2011

I have the following code to load an external swf by clicking a button. It works fine.
 
btn_01_01.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
{
var url:String = event.currentTarget.name+".swf";

[Code].....

But the loaded swf is still visible.
 
I would like that button to also unload the loaded swf.

View 12 Replies

Actionscript 3 :: Remove / Unload A Button In It?

Mar 31, 2011

I have a button and i am trying to unload it but i dont know how.

I add the child as follows : addChild(buttons);

I try to remove it by : removeChild(buttons);

but this does not work, nothing happens.

View 2 Replies

ActionScript 3.0 :: Unload SWF Then Load SWF With 1 Button?

Feb 8, 2011

I trying to unload swf then load swf with 1 button it does not work, how i make it work i need it to reload each time i click button.

[Code].....

View 3 Replies

ActionScript 3.0 :: Unload SWF On Button Click

May 31, 2011

For a project, I have a main page that for each button loads a swf page, that contains a photo gallery, now, for each of these pages, I want a main button, that can return the user to the main page to select another gallery, I have gotten it to work, but it doesn't really stop the gallery, and judging by my memory usage, it seems that it is still running in the background. For the main page's buttons, [code]...

View 3 Replies

Actionscript 3.0 :: Unload External Swf From Nav Button?

Jun 22, 2009

I have 3 nav btn and each btn load an external swf successfully. My problems is it doesn't unload. I have tried adding pageLoader.unload(page) and mcContainer.removeChild(pageLoader) but it doesn't work. The code below contains load external swf only.What is the best way of unload a swf using as3?

var mcContainer:MovieClip;
var pageLoader:Loader = new Loader();
galleryBtn.addEventListener(MouseEvent.CLICK, galleryPage);

[code]....

View 2 Replies

ActionScript 2.0 :: Way To Unload Pictures With Another Button

Oct 12, 2006

I've got a Loader that imports picture files from the .fla's directory...buttons open the pictures up.I need to know a quick and easy way to unload the pictures with another button...the only requirement is that the 'close' button cannot be visable when no pictures are being shown.url...

View 1 Replies

ActionScript 3.0 :: UNLOAD Swf File From Nav Button?

May 29, 2009

I can load swf file from nav buttons. Gallery page is my default page. When I click about button I want gallery.swf to unload and about page to show up.Currently, gallery page is still in the background when I click about page.Gallery page is removed if I click about page again. How do I fix this?

var pageLoader:Loader = new Loader();
galleryBtn.addEventListener(MouseEvent.CLICK, galleryPage);
function galleryPage(e:MouseEvent):void {

[code].....

View 6 Replies

ActionScript 3.0 :: Navigation From A Button?

Aug 13, 2011

this is the scenario...

main timeline---> two movieclips

in one of the movieclips (which is navBar_mc) i have my buttons in a drop down menu. so it is one level deep i am guessing.in the other movieclip (content_mc) i have the content that is to be manipulated by pressing the buttons.what would the code look like to target the content? i know i have to go up a level and then address the sibling mc, but when my code looks like this....

-----same---up-----over------------down-------------target
-------|-------|-------|-----------------|-------------------|
------this.parent.content_mc.nestedcontent.nestedcontent

it finds the main timeline ok, but when i address the sibling mc on the same level, it gets lost.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved