ActionScript 2.0 :: Load A Jpg File That Is Outside Flash SWF File?
Mar 2, 2005I'm trying to load a jpg file that is outside my flash SWF file and I've tried this code:loadMovieNum("1.jpg", 1);
View 5 RepliesI'm trying to load a jpg file that is outside my flash SWF file and I've tried this code:loadMovieNum("1.jpg", 1);
View 5 RepliesI 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 RepliesAll 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?
View 3 RepliesI 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?
View 1 RepliesI'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?
View 1 RepliesI 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'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
View 4 RepliesHaving 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.
View 3 Repliesi 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 Repliesi 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..
[Code]...
So I have this code which loads an xml file
[Code].....
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 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 want to load one xml file to swf file that located in different servers...
like
[URL]
but i have only one xml file that update of those flashes..
how i can to do allowdomain to the xml file?
this is what i have and it's not work
Code:
System.security.allowDomain("www.studiomor.com");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://studiomor.com/upload/google_AD.xml");
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.
View 1 RepliesI 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..
View 1 Repliesit 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.
View 0 RepliesI 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.
loadVariables("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'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?
View 1 Repliesi'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)
View 1 RepliesI 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;
[code]....
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?
View 2 RepliesHow to load xml file into flash
Code:
<?xml version="1.0"?>
<root>
<0>
<data>
<0>
<id>100002678639121</id>
<name>Rob Puckett</name>
[Code]...
i have problem to load a xml file from flash.
see in below:
when i put this : xmlpath.load(_root.xmlFile==undefined?"datas.xml":_root.xmlFile); it works perfect in flash but not in the browser.
i have a flash movie which loads a static XML file, the script for this looks like [code]I want to be able to change this 'list' variable dynamically, perhaps using flashVars.
View 2 RepliesI have the listed code to load swf file to the stage using action script 3 and I want to modify it to place the swf in (X,Y) place.what I should add to the code to have the swf file placed in the specify position.
var swfLoader:Loader = new Loader();
stage.addChild(swfLoader);
ar gURL:URLRequest = new URLRequest("test.swf");
[code].....