ActionScript 2.0 :: Load A .swf File Without Naming The File?
Jan 15, 2007
I'm trying to load a .swf file without naming the file. Put more clearly, can I tell Flash to just load a random file that has the .swf extension without naming the .swf file?
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?
I'm trying to load a swf file within another swf file and then load different swf files from buttons.This is the code I'm using, but I can't get any of the swf files to load.
var Xpos:Number = 0; var Ypos:Number = 0; var swf:MovieClip;[code]...........
i have banner with 5 images fad in fade out effecti need to load images & test from external file " text file or xml file " with keeping fade effects on imagesall ways i know can't keep fading effect on images so
Having got into flash about a year ago, I have a fairly good understanding of as3, but I have never had any reason to learn as2. For an upcoming project, we were looking to use Scaleform GFx, with the UDK. (Unreal Development Kit) Trouble is, Scaleform only supports as2. From what I've been told, as3 is supposed to be better in just about every way, so I really don't want to learn a language that?s most likely on the way out, if I have any other options.
Is there any converters out there, that can convert script from as3 to as2? Or another workaround possibility, since flash communicates with the UDK by means of just calling a function, could I create an as2 file that could dynamically load an as3 file?
i want to load variable from text file to my main movie (swf file).what should i put in the second parameter of the function loadVariables ("target" parameter) - should i insert _this? _parent? _global? (nothing works.
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
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.
I would like to run a .swf file into an existing flash file, but the dimension size of the .swf file is too big. I am a beginner to flash and not sure of the steps to execute this. Would anyone be willing to walk me through the steps to import the code?
i have a button that when it is pressed plays and loads an external flv file. this part works fine but directly after the flv video is finnished i want to load in an swf file. does some one have an idea how to do this? first show flv and then load swf? this is the code as it looks now..
I want to have several buttons however load a different xml file, not just use one file. Would this mean I would have to recreate the above code for every button, or is there anyway I could reuse it?
i'm building a website using flash. i have a external swf file that i want to import into my website. i thought this would be an easy task but for some reason when i load the movie, it flickers. my website (parent swf) was build using 1.0. The external form swf was build using 3.0. My approach:
1.create an empty movie clip called mcForm
2.go to the mc clip page i want to pull the external movie into
3. within my actions layer, I call the following function loadMovie("main.swf", mcForm);
If i write:
LoadMovieNum("main.swf",0);
then the my main.swf opens correctly but closes the parent swf file. I wan the main.swf file to be embeded within the parent file.
I'm trying to load an xml file from via http into my flash 8 file. Locally it works fine but when on the server it fails. I assume this has to do the flash security sandbox. How do I get around this. I own the servers so is there some sort of fix that I upload to allow the swf to receive the data?
I am using preloader from the main swf file to load other swf file, if i use a preloader inside my other swf file then it wont show so sorting that problem I am referencing this nice material on preloaders [] I have sorted the preloader problem by calling the preloader from the main swf file and hiding the other swf file till its fully downloaded. but now the problem is I have got no functionality from that swf file, i mean i have got that mouse effect in the other swf file that where ever you move the mouse in the screen the showreel adjusts itself but its static now.
I have got this container mc in my main swf file, and i am using the other swf file by clicking the button, the swf file loads in the container mc after showing the preloader but its kind a static.
I am trying to load a txt file into flash by putting the url in an xml file. The XML file is structured like this:
HTML Code: <pic> <image>pictures/AW0001.jpg</image> <description>text/AW0001.txt</description> </pic>
Now I load it into arrays in flash: image[0] and description[0]. The images is displayed the way I want to, the thing is I want to pass on the url that is in description[0] to a loadMovie or something like that. If i say desc_txt.text = description[0]; it will just show AW0001.txt in flash. I've also tried this with load and loadVars but I can't figure it out.
I have a movie from this directory "childmovies/quicklinks_menu.swf" which is loaded using loadMovieNum into level 3, in the root file. I am then trying to load another file in the quicklinks file to a level. This is called contact_us.swf. Im just getting confused as to how to load this contact_us.swf movie. with all these levels involved.
I wanna know if it is possible to load an SWF file, from a main swf file, but OUTSIDE of it. What I mean to say is, to open it as it was a completely different thing.. like, for example, when you click a link of a video on a website and it automatically brings up your windows media player.. i dont wanna load the swf inside the main swf, I want another flash player to pop-up and play it separately..
it seems AS2/Flash 7 can't read BMP files. so I figure I'll write my own code to display a BMP file, like was doen here: (though it's AS3) [URL] just fine and dandy. but now I have to be able to load a BMP into memory first. AS3 can do this via FileStream or URLLoader, but what about AS2? * LoadVars attempts to parse the data it reads (ARGH!) so that's no good. * GetUrl could work if it could throw the data into a variable instead of a browser window, but that doesn't seem possible either.
i'm working on a project, where i purchased a news scroller...and now i'm trying to load it into my original project with this code
Code: var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop); l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);[code].......
i have tried other different codes and it just won't load the file, i've tried to load in other files and it works without any glitch at all..so i'm wondering if there is any other way to load the .swf file into my index.swf file...
I just want to load a .swf file withing my current .swf file as per the value the external text file.I have done few experiments too.
1) I have writter below code on the first frame of my movie. here "myMC" is my target movie clip inside which i want to load another swf file. load Variables("myData.txt", "_root.myMC");
2) the code of my external text file is as below sm=one.swf;Now my doubt is where and how i should write the loadmovie command to load my swf file.
I have a main swf file (main_mc) when this swf gets to frame 30 it stops and loads an external swf (test_mc) into a blank movieclip called loader_mc.test_mc is loaded to the left of the screen with buttons inside.when you click one of the buttons i want it to load another external swf into a different blank movieclip called loader2_mc this is the AS on the button that is externally loaded to load other external swf:[code]What happends is it loads the swf into the current blank movieclip (loader1_mc)
I have a menu that is xml based. If a button on that menu is clicked I would like it to read another xml file and then populate the page with the images that was read from the second XML file. I am getting an from the second. The error I am getting is text=Error #2124: Loaded file is an unknown type. Is this because I cannot use an XML file to read another XML file, or is it because my paths are messed up? I checked my paths several times but maybe I am missing something. My script is below.
var xml:XML var menuXmlLoader:URLLoader = new URLLoader(); var menuXmlList:XMLList;
i have made a flash animation which is perfect, but i have my flash website and i want my animation incorperated into it. Is there a way i can load an swf file into a certain area of my swf for my website?
This is a project I'm working on for a simple demo tutorial application in Flex. I am using mxml pages. You can see to the left that I will have my main application and then other mxml files (In the Examples Package) as the examples that will be loaded into the main application mxml. How can I dynamically pull the value from the object in the list to load the child mxml file into the container that I have further down in the application?
I am trying to write a class file using a .as file instead of writing code into the script tab of a .fla file.When I write stage.addChild(img); I get an error that stage is null. When I take out stage, and just write addChild(img); the code runs fine, but nothing appears on stage. Do I need to do something to set a stage active?
Is this because I don't have a Main class? My class is named after the file and I don't have a file named Main.Here is the code. As it is, it runs and I get the two trace outputs, but no graphic on my screen.
package { import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Loader; import flash.events.*; import flash.net.*; public class HelloWorldImage extends Sprite { private var background:DisplayObject, foreground:DisplayObject; private var url:String = "hw_jpg.jpg"; private var loader:Loader = new Loader( ); public function
I have a rotaing menu that loads in images from an xml file, I would also like it to load in text info from the same xml file to the left side of the images that load in. In my main .fla have created a movieclip and called it 'textInfo' and inside that I have two dynamic text fields called 'headerText' and 'bodyText' where I want to load the text in. this is what I am using to loading in the text in my actionscript, is this correct?
I'm currently working on a project that contains a lot of data, about 14.000 records. This means an xml file of about 3mb. Now my question is: Should I use the xml file to load all the data at once, or should I use a webservice, that provides the data when I need it? Keep in mind that I'm new to webservices. And if I'm going to use a webservice: How do I store the data, in a mySQL database?How fast is a webservice?