ActionScript 2.0 :: Completely Unload External .swf That Loads An Xml File?
Feb 6, 2010
I have three AS2 swf files main.swf - very simple swf file with three buttons (home,btn1, btn2)
1.swf - an swf file that is launched by the pressing of btn1
2.swf - an swf file that is launched by the pressing of btn2
Home button simply removes the loaded swf and shows btn1 and btn2.
If I launch main.swf and click btn1, then 1.swf loads fine. I click home and click btn2.. 1.swf still loads! When I close main.swf and reopen, click btn2, then 2.swf loads fine. I click home and click btn1.. 2.swf still loads! WTSDLFKJ@##@$
This is why I ask how to completely unload the swfs? I've tried every different way to unload Google could show me.. unload, unloadandstop, etc. I've tried loading 1/2.swf as a movieclip and URLRequest. I've tried using two separate containers and loaders. Still the same thing.. the first opened swf is the only one that will open unless I close main.swf, reopen and then click the OTHER button.
I should note that 1/2.swf are flip book style applications that load external .xml data.
View 8 Replies
Similar Posts:
Aug 14, 2009
I have have applied the progress bar from the componets panel in Flash CS3 using AS2 and I have been able to make it function: however, I have not been successful in getting the progress bar to unload once my file loads. I have tried a couple of things like using an if statement and the unLoadMovieClip but I seem to be wording the code wrong because neither have worked at all, they even have cancelled out all the other code. Here is my code:[code].......................
View 3 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Dec 1, 2009
I have developed a small website in flash 8 ...
- The website has content (text) which is loaded externally
- The images are also called externally with 'loader' component
- I have added a preloader at the beginning of my file
But still when I loaded it on the server....the images and the content is coming slowly. Some way to load the whole file completely at the time of loading (including the external content)?
View 4 Replies
Mar 18, 2010
Is there any way to embed Flash completely in HTML, without reference to an external SWF file? I ask because I would like to send an HTML file as an email attachment that the recipient will open in a browser and fill out as a form. The last step is that they will copy the result to their clipboard, paste it into a new message, and email it back. I cannot reliably copy to the clipboard with JavaScript because of the security issues, but there are simple Flash apps to add that capability.
I know I could just display the response text (which will be Base64 encoded) to the recipient and have them copy/paste, but it would be nice to provide this small convenience to them. Also, so you are aware, the text is often too large to include in an email using mailto. Yes. This needs to be done via email. The users have slow, occasional satellite email access and no other data connection to the interwebs. To make things worse, I cannot make them install anything. It is a difficult situation.
View 4 Replies
Sep 29, 2010
So, I have web page that uses javascript to let a user select different audio files to listen to (using this player[url]... which works great in every browser except for any version of IE. After the audio starts playing I can't figure out a programmatic way to make the audio stop playing after the user clicks on another item to listen to. I don't have access to the source of the swf so I'm trying to use javascript to do this. I went so far as to replace the entire body of the page - $("body").html("blank") - but it still played the audio loaded into the swf in it's entirety.
Is there any way I can completely remove a swf from a page (sound and all) just using javascript?
View 4 Replies
Jul 5, 2009
I am designing a website for my brother [URL]and have place a movie he created on the first page of the site. It is a Flash movie, and I do not have the original document. I would like to set it up so it loads completely, then starts playing on it's own once it has completely loaded. (Right now it loads a bit, then plays, then loads a bit more, then plays a bit more, etc).
View 1 Replies
Mar 30, 2009
I am designing a website for my brother (URL...), and have place a movie he created on the first page of the site. It is a Flash movie, and I do not have the original document. I would like to set it up so it loads completely, then starts playing on it's own once it has completely loaded. (Right now it loads a bit, then plays, then loads a bit more, then plays a bit more, etc).Does anyone know how I can do this? (or what i need to tell my brother to do to the original) so that the whole thing will load, then start playing automatically?
View 4 Replies
Aug 17, 2011
i have a question. let say i have file1.swf , file2.swf, and file3.swf, how can i link this 3 files together,let say suppose file1.swf is the main content file, but as i load file2.swf, i want the file1.swf get replaced by file2.swf. How could i unload file1.swf at that time, so that my file2.swf will become the main content file?and again, when my current position at file2.swf, and i want it get replaced by file3.swf by clink on a button. so that the i can unload the file2.swf and let the file3.swf become the main content file.
View 13 Replies
Apr 17, 2010
I loaded an external SWF file, now I need to understand how to unload the external SWF file. Is it possible to add the code to the last frame of the external SWFs internal timeline, so when it exits the last frame, it unloads itself.The script to load the SWF is below. Can I add the unload code to the last frame of timeline of the SWF?[code]
View 3 Replies
Jun 8, 2011
So I wanted to give a demo of my project to someone, but I encounter a problem, Im loading an external swf file, and even if I give him both files, it doesn't work.Share swf file that loads another external file?
View 1 Replies
Sep 3, 2010
I have a preloader that loads an external .swf file. Preloader works fine, technically the external .swf loads fine, but the external .swf is scaled up so you can only see about 2/3 of the screen. I made the stage for the preloader the same size as the stage for the external swf. I used the HTML for the swf that gets loaded, and just changed the file name to that of my loader.
View 4 Replies
Sep 21, 2009
I have the movie loader working, but the movies the do not show the correct proportions. The individual swfs are the correct size but the movie loader in the main index displays them scrunched in vertically. I'm told you have to tell the movie to the correct proportions after it is loaded.If you look at the attached photos, you will see that the info displayed will not span across th entire vertical space How do I fix this/code it correctly?
Here is my code thus far:
var Xpos:Number = 0;
var Ypos:Number =1050;
var swf:MovieClip;
var loader:Loader = new Loader();
[code]....
View 1 Replies
Mar 1, 2009
I have a simple swf file which loads data from an external XML file.At present, the user types the filename of the XML file they wish to load.Is it possible for Flash to 'read' the filenames of all of the available XML files in the folder and then present these filenames in a drop down list for example? Then, instead of typing filenames, the user would just click on the XML file they wanted to load.
View 4 Replies
Jul 14, 2009
I am building a peloader which loads an external file. Simulate donwload has never really worked for me, it just flashes and shows my loader at 100%. Does anyone have any tips to actually get this working?I have flash cs3, publishing to FP9 and using a simple LOAD_COMPLETE, onProgress function.
View 6 Replies
Nov 21, 2011
The following code provided by Mr. kglad works great in loading an external .swf file onto stage. Now, when I click on Contact (Button), the external .swf file to be removedcompletely. How to code on contact (Button) to work it out.
Gallery.addEventListener(MouseEvent.CLICK, GalleryClick);
function GalleryClick(e:Event):void{
if(currentClip != Gallery_mc){
[code].....
View 3 Replies
Apr 16, 2009
I've made a a music player in as3 that loads an external file:
var music:Sound = new Sound(new URLRequest("walk.mp3"));
var sc:SoundChannel;
var isPlaying:Boolean = false;[code]............
But i wanted the music to start as soon as you open the movie... how do i do it?
View 1 Replies
Jan 31, 2012
My SWF loads external images from an XML file. The problem is the layout shakes up and down as each image is being loaded into the grid because the images are bigger in size than the thumbnail "holder" they are being placed in. They are bigger so when you click on a thumb and the layout zooms in, the images won't be pixelated.I added all the images to the library of the fla file and exported in frame 1 but it didn't solve the shaking. Preloader worked, but images were still loaded in and then shrunk down to size.
View 5 Replies
Nov 3, 2009
I'm working with a flash template that loads external images and text using an xml file. Everything works well the only problem is I've promised a client that as well as a "title" and "description" I will also include a clickable URL link. I can edit the flash to a certain extent but I am having a nightmare of a time including a clickable url. Is there anyone out there who can help? "photo_description", "photo_title" and "photo_url" are the names of the dynamic text fields.
XML snippet looks a little like this...
<title>Title</title>
<description>Description</description>[code].....
View 3 Replies
Jan 3, 2007
I have added this code to a button in my flash file. When the viewer presses the button a external .swf file will load. The problem is how do I specify where it loads. For example, when the viewer hits the button the external swf file default loads at 0,0. If I want it to load somewhere else on the page is there a way to make it load at a certain specified location? Here is the code I am using on the button.
Code:
on (release) {
loadMovieNum("test.swf", 1);
}
Now this works fine and the swf file is loaded correctly but it is always at the top left corner. How can I go about loading it in a specific place on the flash file? Is there a way to create a holder that would make it load in that certain area?
View 1 Replies
Apr 20, 2011
i have created a plain text files loads from an external file. I am facing one problem which is the text does not load unless someone select the button. I will like the text to show as soon as someone enters the page
//Plain text files loads from an external file
var textLoader:URLLoader;function loadStory(evt:MouseEvent):void{
textLoader = new URLLoader();
[code]....
View 7 Replies
Mar 28, 2005
Im trying to make a class that loads in some external data, and then creates some arrays in the class, which names and content are based on the data that are loaded. What i have now, is something like like this:
[Code]...
View 4 Replies
Mar 8, 2012
I'm actually creating a pretty simple banner that needs to stay under 40k size. I'm trying to load and unload an external .swf to my main swf file. So far, I only managed to load my external .swf, without finding a way to make it appear and disappear at specific frames (the external .swf shows up directly at frame 1, then when the animation loops over, it stacks over and over).
I read some things about onEnterFrame and counters but still wasn't able to solve my issue.
Here's my actual code. It makes the "horse.swf" file (located in the same folder as my main swf) fades in into my main swf after it has been loaded.
By the way, I used The LoaderMax system from greensock. because it seemed lighter and easier to manage than the native Adobe Loader one.
Code:
import com.greensock.*;
import com.greensock.loading.*;
import com.greensock.events.LoaderEvent;
[Code].....
View 6 Replies
Sep 28, 2011
I have a main.swf file. In first frame i load a background slideshow with this code:
[Code]...
My problem is that when the site loads the 1st time and click from the menu to go to the 2nd frame (1st content page) then i have to wait at about 3-4 seconds to load my html content. The same for the 3rd frame. If these two content pages load for the 1st time, then the pages open immediately. What can i do for this? Is there a way to open this content pages more quickly, or place a loader, and with what code?
View 3 Replies
Oct 31, 2011
I wanna create some sort of actionscripted typewriter which loads its content from an external file, but i can't seem to get the code to work properly!
This is what i got till now:
2 layers:
- one with a textfield called 'textbox'
- one with the actions
A textfile which contains: waarde=Wannaloadtextfromanexternaltextfile!
4 frames, in the first frame i load the textfile this way:
[AS]q = 1;
loadText = new loadVars();
loadText.load("data.txt",this);
loadText.onLoad = function(success) {
[code]...
The problem is that when i assign the value of "text" in the first frame this way : <-- text = "Wannaloadtextfromanexternaltextfile!"; --> (witout the comment tags ofcourse) the typewriter works fine but when i load the var from the textfile nothing happens, the trace works fine and displays the contents of the var but the typewriter displays nothing.
the weird this is that when i add this after all the code in frame 1 it works fine: text = "azerty";
But when i add this it doesn't: text = "a";
So when i overwrite the var with the azerty value suddenly it contains the correct value in the next frame, when i assign only one character to it the script doesn't work anymore.
View 3 Replies
Sep 15, 2009
I know this goes against the logic of most menus. I am building a menu. I have very nice mc called "menu_list" and loading into the movie loads a easily editable external XML file with all my over categorys and sub menus
it looks like this...client.niallohara.net/xml_menu.html
[Code]...
View 0 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
Nov 21, 2005
the best way to do it but i have a preloader the loads an external swf that loads 2 external swf files. one on layer o and the other 1.it seems to load the swf on layer 1 twice.url...if i run the swf that loads the 2 external swf files by it's self and the same problem happens.mouse over the navagation button and then mouse over the close button and follow the animation down to were it turns back into the navagation button. sometimes the close stays up.if i run the swf file that just contains the navagation it dosen't happen.
View 2 Replies
Jul 11, 2005
I have an HTML page with buttons. Each button needs to have a getURL to open the Flash site, but then somehow, needs to also load the appropriate swf into that Flash site... My reasoning is because I have some scripts under my site that need to be in HTML (or PHP) for search engines, that way I don't have to do the whole site in HTML.. I hate having a HTML index page, but it's the only solution I could come up with. So, when a visitor selects any of the navigation buttons, I don't want them to have to select that button again, when the Flash site loads. how to do this for Flash 7 / AS 2.0? Or if there are any posts here about it?
View 2 Replies
Oct 6, 2009
I need to automatically unload a movieclip when the movie within the movieclip plays completely.
View 9 Replies