ActionScript 2.0 :: Unloading The Dynamic Movies?
Aug 15, 2010
i've placed this on my timeline and it work well but i can seem to unload the movie when i go back a frame. How do i unload the movie?
[i]// Imports
import mx.transitions.Tween;
import mx.transitions.easing.Strong;
import flash.filters.DropShadowFilter;
[code]....
View 3 Replies
Similar Posts:
Oct 3, 2005
when u go to the index page or index.swf i guess, after hitting the enter button id like it to go to the homepage.swf but the problems im running into are
1.the new homepage.swf will load over the index.swf after pressing enter button on index.swf which is set up through the .fla
2. movie wont load
am i not setting the target properly or? no target? or am i not using the loadMovie("example.swf"); action script properly
in short im just trying to get it to work like an html page, click one link, takes you to that page, click another link, and it takes you to a different part of the page.
View 1 Replies
Jun 29, 2009
wherever I look for scripts is either AS 1.0 or 3.0... I used to work as a cartoon animator (didn't need AS at all) now I'm trying to build up my own site to show my portfolio. I'm having difficulties loading and unloading external swf files. Basically I'm a total newbie, I managed to figure out that you need an empty movie clip where it will be played, and the buttons themselves...
View 8 Replies
Jul 17, 2010
I'm trying to input a dynamic text field into many dynamic movies. I use a for loop to successfully create 18 movies. I can't seem to get the text to be input dynamically however. The dynamic text field in the dynamic movies is named eventText. This code in the for loop successfully creates 18 movies:
[Code]....
View 1 Replies
Mar 9, 2010
ive created a few dynamic text boxes in a MovieClip they move and get Blured via Motion Tween (New Motion Tween). load the text fields from an xml file..
[Code]...
View 1 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
Sep 25, 2003
how to create a preloader when im about to load a dymamic jpg or a movie.
View 1 Replies
May 12, 2005
how to load dynamic content (movies, text, or whatever...) in flash that automatically changes daily, depending on the day of week (mon.-sun.)?
View 2 Replies
Jan 16, 2007
I have an intro.swf file that is basically a movie with sound that is exported for actionscript but not exported in the first frame. I just stuck it in a movie on my timeline and it works great and the preloader works because it doesn't load the sound before the preloader. I use :
musicSound = new Sound();
musicSound.attachSound("music");
musicSound.start();
to play the sound in intro.swf.
However, now this intro.swf gets loaded into an index.swf and everything works fine and the sound plays as long as I have the sound included in BOTH the intro.swf and the index.swf and the sound is exported on the first frame in the index.swf. I was hoping I could remove the sound entirely from my index.swf since it already loads into the intro but so far
View 9 Replies
Oct 25, 2005
I have been having trouble creating a movie clip with a reverse rollover effect within a movie which has a reverse rollover effect. that sounds confusing
In essence I wish to create a panel that rolls out on rollover and rolls back in reverse when the you rollout. I have done this using this script
[Code]...
However I wish to make movies within this movie that have the same effect on them. But when I create another movie or button within this movie it is not registering on rollover. I guess because the script on the main movie overrides it?
View 2 Replies
May 24, 2003
I am creating a calendar and only one part isnt work. That part is the movie (mc_nav). I have the mc_nav movie on each month's stage. The buttons are named correctly since I used normal modes reference thingy to double check the references. I am trying to have it move to the next frame in the movie, or back, or to the 3rd frame etc. The first section (NAVIGATION BUTTON LINKS) works fine. It is just when I try to navigate on the Scene 1 stage, from a movie within a movie, that the trouble arises. Each of the month movies (mc_sep, mc_oct, etc) have mc_nav placed on them. Then the month movies are placed in Scene 1 on each of their respective frames (mc_sep = 4, mc_oct = 5, etc). When testing the movie and I am sent to any month page, the navigation (mc_nav) wont work. The syntax according to the flash debugger is correct. The action script goes all the way through to the last frame (13) and the stop(); command is set to stop the movie at frame 3 (the splash page).
[Code]...
View 2 Replies
Apr 9, 2011
I have a small FLA file i created myself. its just a simple mp3 player, pause and stop and a volume slider, thats it.I want to import three instances of this into a bigger movie and have them all available to run at the same time.I need them to be all on the screen at one time (same frames) and I need them each to be able to play a different mp3 The user will not be able to decide which mp3, this is all 'hard coded' into the fla file.So how can I do this and get access to each individual movie's controls?
For example when I use the slider on the first player, I only want the volume to change on the first mp3.Would I even have to worry about this in the big file that has all three movies in it?I mean could I just code the volume slider to work right in the mp3 player file and then the bigger movie file will automatically know that when the volume slider is moved, only to affect the voume of the first mp3?if i do it that way, would I have to save out 3 different versions of the mp3 player file. one with '1.mp3', say, hard coded into it, another with '2.mp3' hard coded into it, etc?
View 7 Replies
Jul 31, 2009
I have been creating a gallery for a client that changes preview images in response to thumbnail images being clicked, I have the basics working but now my client wants further interaction in some of the previews that include using buttons on the preview images that either open a web page in a new window or switch between more preview images. The problem is the new buttons that appear are embedded on the initial preview images (which are set as movies), and for some reason the interaction that has been added to these movies is stopped when run in another movie. Sorry if that sounds complicated!
[Code]....
View 3 Replies
May 2, 2011
I load my external image into emptymc which is inside mc_container:loadMovie("myimage.jpg", mc_container.emptymc); //placed on main timeline.This works fine. However when I go to a different frame within mc_container(specifically a frame without an instance of "emptymc") emptymc gets unloaded. As soon as I go back to a frame containing "emptymc" it no longer has the jpg.Is there a way I can keep the jpg loaded in emptymc without having to load it again?
View 2 Replies
Mar 12, 2009
I've loaded an SWF file into an AS3 project, thing is, I can't unload it. Everytime I use loader.unload, The Flash IDE crashes! I've tried to google the problem, but it seems no one seems to have an answer for it.
View 1 Replies
Mar 12, 2009
I'm having a problem unloading an external SWF from my container clip. I've searched all morning for a fix to this problem, with no clear resolution. I thought this was originally a xml update issue, but it's not. A lot of talk about removing child nodes, but I'm not sure what do do there.Here's my code:
PHP Code:
function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; swiff = []; total = xmlNode.childNodes.length; for (i=0;
[code].....
View 1 Replies
Jun 2, 2009
unloading a SWF from a movie clip. This code is inside a movie clip acting as a button that loads the SWF into another movie clip in the main timeline called "rootbox_mc". Basically when i spam the button, it keeps loading the external SWF over and over the one already loaded, i want it to remove the one already loaded before loading another in its place.
More specifically, i wanted to ask why my if statements were not working, and how do you actually unload a loaded external SWF. I read that you just delete the child, and that's what i tried to do here.
Code:
this.addEventListener(MouseEvent.CLICK, load1Release);
function load1Release(evt:MouseEvent):void {
var checker:Number=0;
[Code]....
ps; This code is someone else's code that i found on the internet. I tried to modify it to fit what i'm trying to do, but it is currently not working.
View 9 Replies
Nov 5, 2009
I am having some problem removing a null object and I realise that I have not been unloading my swf's properly. Could someone take a look at what I have been doing and tell me what I can do to make it better. I am putting my website in an exhibiton of my design work and if it lagged up due to all the clicking it would suck!
Code:
aboutBtn.addEventListener(MouseEvent.CLICK, aboutLoad);
function aboutLoad(e:MouseEvent):void {
ldr.unload();
[Code].....
View 19 Replies
Mar 31, 2010
have this main swf that calls 2 swf. then the 1st swf that he calls was consists of xml images and button.now my problem is upon loading 1st swf then i clicked the button and loads another swf file it should unload the 1st swf file, in my 1st swf i have this switch case ode for button, i put the unload code inside it but it does'nt work.
View 1 Replies
Dec 3, 2008
I have a UI that loads swf in the content area when several buttons are clicked (these buttons are menu1, menu2 et.c) the code is as follows and it is working fine...
import fl.controls.Button;
import flash.display.Loader;
import flash.net.URLRequest;[code].....
So clicking the first button brings up a main menu in the main content area...with four menu options (buttons labelled mainMenu1, mainMenu2 etc.) When you click one of these main menu options, the corresponding swf should be loaded in place of the main menu (in the main contant area).
However this is not happening and the main menu is staying around and not being unloaded. Is this because the main menu swf is in a loader created in the parent swf, but the main menu loader is in the main menu swf. So I think in effect i have two loaders appearing at the same time.
import fl.controls.Button;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.MouseEvent;[code]......
View 2 Replies
Oct 22, 2009
I have a movie that serves as a greeting card - it plays an animation which (at the end of the timeline) plays a looping music track, and activates a "random" script to generate a "snowing" effect.At the end of the movie I've faded in a button that allows the viewer to "replay" the movie - which works okay... except it's still snowing when it starts (should begin without that effect)... Is there a way to unload that script? I found a way to unload the sound easy enough - but I can't seem to figure this one out.
for (k=0; k<150; k++) { duplicateMovieClip(_root.snow, "snow"+k, k);}
There is another script within the movieclip itself, but I don't think you'll need that. To preview the movie click below (sorry, the "replay" button is all the way at the end - you'll need to watch the whole movie) http:[url].....It probably begs for an explaination - if you're wondering, it's for a religious-based college (Fransiscan) - their mascot is a Saint Bernard..
View 1 Replies
Mar 8, 2010
I have a really simple problem regarding the unloading of swf's. I've searched for solutions but somehow I am having some difficulties understanding all the parent-child associations.So, I have main swf that has four buttons, each loading an external swf. The buttons are on the main timeline. The swf's that are loaded have a return button on their main timelines that would need to unload the current swf and thus return to my main swf.
View 1 Replies
Sep 23, 2010
So I loaded a swf into another swf like so
correctURL being my external swf variable
function startLoad(){
var mRequest:URLRequest = new URLRequest(correctURL.toString());
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
[Code]....
mLoader.contentLoaderInfo.addEventListener(Event.UNLOAD, closeAllStreams);
I'm just not having any luck as I can still hear the old sound over the top.
I don't want to access the loaded swf's variables either or i'd just cheat haha.
View 2 Replies
Jul 20, 2009
I have a simple file with 2 buttons (load + unload).By pressing the load button, an external movie_player SWF loads (this SWF loads a FLV video into it).The problem is that when I press unload, the movie_player dissapears from the main SWF, but I still can hear it. How can this problem be fixed?
ActionScript Code:
var urlRequest01:URLRequest = new URLRequest("movie_player.swf");
var external_swf01:Loader = new Loader();
[code]....
View 9 Replies
Nov 6, 2009
I am having some problem removing a null object and I realise that I have not been unloading my swf's properly. Could someone take a look at what I have been doing and tell me what I can do to make it better. I am putting my website in an exhibiton of my design work and if it lagged up due to all the clicking it would suck! so its important I get this right I just need a little help if someone wouldn't mind.[code]
View 2 Replies
Jan 28, 2010
I have a SWF that is being loaded into another SWF. I have a close button inside of the loaded SWF that unloads the SWF using this function:
function clickedButton(evt:MouseEvent):void{
MoveClip(this.parent.parent).myLoader.unloadAndSto p();
}
Works great ... as long as I know the name of the Loader (in this case myLoader). How do accomplish the same thing without knowing the name of the Loader that's loading the new SWF? How do I make it more generic so that whatever Loader calls in the SWF I can unload the content (from inside of the loaded SWF)?
View 1 Replies
Apr 28, 2010
The problem is when you click the green box, it loads the "book" fine, when you click the "x" button it doesn't unload i am unsure how to fix this.[URL]
View 1 Replies
Feb 5, 2011
I was wondering if someone could take a look at my files and tell me what I'm doing wrong. I'm trying to rebuild an ad in AS3 from AS2 and I'm running into some issues. This is the problem: When a page loads there is a 728x360 container that loads a 728x90 ad. What I need to happen is I need to communicate to the container that when the 728x90 expand button is clicked it needs to unload or stay on the screen while a 728x360 expanded state is loaded in.
I have these files 90% figured out. My problem is I cant get the collapsed state that is loaded into the container to load the new state. I've included my files and they re really simple to follow.
View 0 Replies
Apr 6, 2011
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:
ActionScript Code:
import flash.events.MouseEvent;
//This creates a new instance of the loader object.
var my_Loader:Loader = new Loader();
[Code]....
View 3 Replies
May 12, 2011
new to action-script 3. I have created a flash site with 5 buttons (home,tvcs,film,contact and about). All buttons navigate to labels on the timeline. The tvcs and film buttons load external swfs which show flv videos. They both load up fine but unloading them seems to be my problem. They still remain onstage and play on while navigating through other pages. I've tried a few scripting ways to unload but to no avail. I'm wondering how and where to add the unloadAndStop()method into my current script in order for it to work properly.
as below:
stop();
import flash.events.MouseEvent;
home_btn.addEventListener(MouseEvent.CLICK,hClick) ;
function hClick(event:MouseEvent):void{
[code]....
View 3 Replies