I'm making a webpage, and trying to have one main SWF, that then loads other SWFs (the various content pages) on the press of a button.It seems to be working, except that the loaded SWF displays crammed up in the upper left corner, instead of in the middle of the page where I have the loader MC. Infact, even if I delete the loader MC instance, the loaded SWF still displays the same. (Which tells me that I have a disconnect somewhere.)[code]swfLoader0 is the instance name of the loader MC, which is an empty movie clip. How can I control where the loaded SWF displays?
I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.
I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:
PW1.addEventListener( MouseEvent.CLICK,loader1 ); //==================== PS function ============================================= var ldr:Loader = new Loader();
I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.
(for this code, check the mcBandPreloader in de .fla file)
Code: var imageLoader:Loader; var RespJpeg:String = "images/arch1Proj.jpg" function loadImage(url:String):void {
[Code]....
Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?
I'm loading a external swf into a movie everything is fine with that. The only problem is that its loading only a part of it. Does anybody know why? Also, this swf is a mp3 player with streaming. The streaming part works but the playback doesn't.If i start only the mp3 player by itself it's working.here is the fla for the player
I'm trying to load a SWF movie into a target movieclip called blankmc. The SWF movie is loaded from an absolute URL (eg. [URL]/img/20042005113934movie3.swf ) My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG! Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
Specifically, I am building a flash page that loads external swf files and inside some of the external swf files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf
Lets say I have Main.swf and sub.swf, and I wanna load sub when I press a button from Main, but sub.swf has its own external class file attached, so here is the problem, when I load sub using loader class and I would get this message from the output panel:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at subScript()
seems loader class can not access sub.swf's external class when sub is being loaded.
Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?
I created a site using Kirupa's external .swf loading tutorial. Now in one of my externally loaded .swf's, I am loading another external .swf. I've gotten this to work fine, but the second external .swf (loaded into the first) contains buttons that will swap this second external .swf with another external .swf. I can't seem to get the AS references to the variables set up correctly in order to swap the swf's. The initial .swf loads fine, but the button control gets complicated inside it. It sounds rather confusing, so I've included a link to the .fla's and .swf's below.
[URL]
The file structure:
-band.swf load's profiles_main.swf
-The buttons in profiles_main.swf are trying to load chris.swf (swapping it entirely with profiles_main.swf)
I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any security limitation or setting preventing external swfs loading other content?
everything was going fine on a website project I've been working on, until yesterday. I'll try to explain the whole scenario first, and I'll put the code in here too so anyone can try to figure out what is wrong. Here's the breakdown of the site:
1) There is a MAIN SWF file that plays an intro and then stops on the last frame with the "Main" Navigation buttons.
2) Inside the Root folder where the MAIN SWF resides, there is another folder called "swfs" which contains six main external navigation pages, as well as another folder called "galleries" which contains additional external swf files for six gallery pages.
3) On one of the layers of the MAIN SWF, there is a movie clip called "mySWFLoadingClip" that the "Main" Navigation buttons load and unload the external swf pages onto. These all work perfectly. The problem start on the next step. This is the code I used for the navigation buttons on the MAIN SWF timeline:
[Code]...
If anyone can help me figure this out I would be really grateful. This is a very important project and the deadline is coming up very soon. Please help me figure out how to load an External SWF onto the main time line and then load an additional external swf from within the first external swf. I'm stumped.
Ok, everything was going fine on a website project I've been working on, until yesterday. I'll try to explain the whole scenario first, and I'll put the code in here too so anyone can try to figure out what is wrong. Here's the breakdown of the site:
1) There is a MAIN SWF file that plays an intro and then stops on the last frame with the "Main" Navigation buttons.
2) Inside the Root folder where the MAIN SWF resides, there is another folder called "swfs" which contains six main external navigation pages, as well as another folder called "galleries" which contains additional external swf files for six gallery pages.
3) On one of the layers of the MAIN SWF, there is a movie clip called "mySWFLoadingClip" that the "Main" Navigation buttons load and unload the main swf pages onto. These all work perfectly. The problem start on the next step. This is the code I used for the navigation buttons on the MAIN SWF timeline:
var Xpos:Number = 0.0; var Ypos:Number = 0.0; var swf:MovieClip; var loader:Loader = new Loader();
[Code]......
how to load an External SWF onto the main time line and then load an additional external swf from within the first external swf.
I am having a problem with loading external swf.Everything seems fine but when I preview it it only flashes the FLV symbol at me. I am working in AS 2.0.What does this mean and what do I do to fix it
I know how to load an external swf file with the following AS3
[Code]...
However, I want to load an external swf that is triggered by a mouse click. I have a button with an instance name if photogallery_btn and I want to apply AS3 to this so when this button is clicked, an external swf is loaded. Can some one please show me how to right this code?
Also, how do you unload a external swf? For example, say I get the code working for the photogallery_btn so when it's clicked, an external swf file is loaded. I would like to know how to unload another external swf file once the photogallery_btn is clicked.
In my fla, I have a timeline with some basic animation. On frames 250, 500 and 750......... I have 3 empty movieclips that loads 3 external swf's. Is there a way at the start of my timeline to preload the 3 external swf's so when the timeline gets to frames 250, 500 and 750.........they will play straight away?
I'm made a dropdown menu and i have resolved the navigation for the main buttons, but i have problems with the menu sub buttons , my question is: After the movie is loaded, how can i make the sub button go to specific frame.
I'm using Flash CS4 and AS2. I have an external swf that works fine, but when I try to load it into another swf part of it doesn't work. The swf that's loading it is in the exact same directory so it's not missing any files. It's a little hard to explain, and would probably be easier if you could see it, however, even zipped the file is rather larger at 23 mb, so I can't attach it.
have a bunch of videos I want to play in the corner of my main swf. I imported each video into it's own swf file to create a swf of each with a skin.then I used the script on (release)
{ loadMovie ("swf/mymovie.swf", "box" }
"box" being the movieclip that I want my swf to load into which works for other swf files, but not the movie ones I exported.
I'm trying to load external swf (with more than one frame and actionscript 3 on every frame - I used there "timeline" coding) from my main swf.code for loading external swf into main swf:
var loader01:Loader; function openGame1(evt:Event):void{ loader01 = new Loader(); var requestSWF01:URLRequest = new URLRequest("game01.swf");
I have always the argument with my colleagues which authoring strategy to use. I always attached to the idea of authoring several swf files, and have them all loaded to the main swf when needed. And than attach Preloader to each swf that I load.
Others think that it should be only one swf with one preloader. And have all the navigation to use scenes or goto actions.
So the advantage of using my strategy is that users will not wait too long for one movie when its being loaded. And its more convenient to work on several fla with each have its own layers, symbols, etc
I've been asked to take a video off a website (.swf file) and burn it onto a CD for internal office use. Unfortunately, the .swf file on the website is severely embedded, and I have tried every way possible to get this file off the site. I've tried saving the file to my computer and loading it with a Loader in Flash. The only thing that works is if I take the .swf's embed code and place it on a different website, which is not what I'm trying to accomplish. So, my question: is there a way to Load an external severely embedded .swf into a Flash movie? I understand how to Load a .swf that has not been severely embedded, but I'm stumped on this one. I understand that companies really embed their content so that people can't rip it off, that' a given.
show me a sample script of how to load several external png images in to a movieclip using a click action.E.g.IMAGE 1 should appear in present_mc when PARI_BTN is clickedIMAGE 2 should appear in present_mc when LOND_BTN is clicked.IMAGE 3 should appear in present_mc when newy_BTN is clicked.
I want to import an external swf file into my page, ive used the standard loadMovieNum as an action on the frame, however when I run the program i found that it interferes with the rest of the page, meaning it goes over the rest of the page. I have a drop down menu, and it means that the text loaded into the counter overlaps the drop down menu, is there any way of making it so that the movie being loaded into the counter does not overlap the rest of the page?