ActionScript 2.0 :: Opening External Swfs Into Main Movie?
Nov 6, 2003
Anyway, I have a main.swf with a menu that is its own mc. (It needs to pop up when the menu button is clicked), from this menu I need external swfs to open inside my main.swf. I also want my external swfs to play in order. like mod_1.swf plays and then opens mod_2.swf ect.
(the menu is just for the user to jump around)
So I have started with this code... on the main timeline(Scene) I have a target code
_root.createEmptyMovieClip("container",1);
container._x = 0
container._y = 0
[Code]....
View 3 Replies
Similar Posts:
Oct 14, 2003
im using a load targetscript to load external swfs into the main timeline of my movie, however im keeping much of the other layers/mc's loaded, and the external swf is loading over them, the level the blank movie clip is created in doesnt seem to be working propperlly?? whats going wrong?
bandb.onPress = function() {
_root.createEmptyMovieClip("empty2", 4);
loadMovie("flash/band.swf", "_root.empty2");
container._x = 0;
[Code]...
View 4 Replies
Oct 14, 2003
im using a load targetscript to load external swfs into the main timeline of my movie, however im keeping much of the other layers/mc's loaded, and the external swf is loading over them, the level the blank movie clip is created in doesnt seem to be working propperlly?? whats going wrong?
[Code]...
View 4 Replies
Sep 11, 2009
I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf
View 3 Replies
May 4, 2011
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.
View 2 Replies
Sep 2, 2009
I made several applications in Flash and I would like to present them from one main application. In basic terms, I want a window with buttons linking to each project. Click on Button A for example, which opens Project A in a separate window. All of my projects are Mac or PC projectors.
View 0 Replies
Jan 11, 2010
I have a project where I am externally loading .swfs into my main scene. However at the end of my external .swfs I want it to go back to the first frame of my main .swf. I have used this code MovieClip(root).gotoAndPlay("start"); but I get this error
ArgumentError: Error #2109: Frame label start not found in scene Scene 1.
and I understand why I get the error because the frame label start isn't in that external flash file it is in the main one. However, I just don't know the correct AS3 to get this to work properly.
View 6 Replies
Dec 23, 2004
I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.
View 2 Replies
Sep 3, 2009
My external swfs are taking 8-10 secs gap in loading inside main swf, that's why i want to load my external swfs with dynamic content at the same time when my main swf loads.
Code of preloader
Code on 1st frame:
onClipEvent (load) {
total = _root.getBytesTotal();
}
[Code].....
View 3 Replies
Jul 24, 2009
I have made a presentation in flash AS2. I have a main.swf and 14external .swf files and each has its own preloader.
I want that when main.swf plays, the external swf should starts preloading sequentially so that the presentation will run smoothly.
View 3 Replies
Aug 31, 2009
I'm building a website that loads multiple swfs within one main swf. I would also like some swfs to unload when i click on the button situated on it. Currently I'm only able to load one swf with this code, can I somehow load more that just one swf by default? you can see the code below:
[Code]...
View 3 Replies
Feb 4, 2010
I have bought a gallery template that allows me to place content within external SWFs.I have a series of buttons within the SWF templates. The problem is that the buttons are interefering with the main timeline when hit. How would I fix this.
Currently they read:
on (release) {
_root.gotoAndStop(1);
[code]......
View 2 Replies
Jan 3, 2011
figure this out I am using this code inside my nav movieclip to load external movie clips on the main stage
Code:
var Xpos:Number = 110;
var Ypos:Number = 180;
[code].......
View 3 Replies
Jul 8, 2010
Is it possible to control a movie clip in an externally loaded swf from a button in your main swf? I have 4 buttons in my main swf. In the externally loaded swf there are 4 movie clips all with their alha set to 0. What i'm trying to do is when the user clicks button 1, movie clip 1 one the external swf changes its alpha to 1. Then if you press button 2, movie clip 1's alpha returns to 0 and movie clip to 2's alpha changes to 1.
The, buttons need to be in the main swf as there are over 20 externally loaded swf all with 4 movie clips and I cant make those four buttons in each swf and also, the 4 buttons are intergrated into the graphics on the moan swf.
View 7 Replies
May 2, 2005
I've tried to approach this from several angles, employing several of the tutorials, attachments found in various threads, etc, and nothing has worked. So, please bear me as I ask yet another question regarding this subject.I need to preload 2 external .swfs, one containing animation and one containing sound, and I need them to start playing at the same time. As of now I have a general preloader on the main timeline, but as you might expect, after the preloader finishes, there is a lag while the .swf's are being loaded.thought everything was solved, until a friend of mine looked at it in dial-up, and the preloader just kept looping 10 times before the animation started, so now I'm starting over. Part of my complication I believe is that I'm using loadMovieNum into levels as opposed to loading the external .swf's in a separate container MC (that's what I've noticed most people recommend for this problem), but I tried doing that technique several times with no luck. Right now my main movie, index.fla, has a preloader MC in the first frame, with this AS attached to the clip:
Code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
[code].....
View 1 Replies
Jun 26, 2011
I've been trying to combine the features of two tutorials I found, one that deals with controlling external swf's from the main timeline and the other that explains how to load and unload multiple external swf's. I'd like to be able to load and unload multiple external swf's, and control these swf's buttons from the main timeline
I asked this same question on the forum of the site where I found these tutorials, and receive only one reply saying that "it shouldn't be hard to do." but they did not elaborate any further. This left me think that I was missing something very obvious and I've spent too much time now trying to work what it is now. I understand pretty much how both pieces of code work, but just can't work out how to combine them.[code]...
View 16 Replies
Aug 7, 2008
I just don't know how to target it. I'm trying to load an external swf, when releasing a button. The problem is the button is not on the main timeline, but instead nested in a movie clip. I just don't know how to target that button. I tried loading the swf with a button on my main timeline and it worked, so I know the problem is not with the movie clip loader class or the actual swf itself. I actually learned this from a note midway down the page in one of your tutorials..... [URL] how can i target that button that is nested in that movie clip?
[Code]...
View 2 Replies
Feb 12, 2010
The problem is this: I am loading 4 external SWFs into an empty MC on the main stage for each of the 4 projects.So you press a button on the main stage for a project, and it loads that specific SWF.These SWFs contain an opening text for each project, a button to "continue" to the gallery, then the text fades out and the gallery loads.That's all within the SWF itself.The SWFs work fine on their own, but the problem is that when I load the SWFs into the empty MC on the main stage, the "continue" button doesn't work correctly The SWFs load fine, it's just the button At first when I pressed the button it would send my main stage back to the first frame, so I thought it was because the AS for the button in the SWF was probably conflicting with the main stage and confusing it. I went back into the SWFs and tagged part of the SWF timeline with the name "togallery" so that when you click the "continue" button, in theory, Flash knows specifically where to go within the timeline of the SWF and not the timeline of the main stage.
That hasn't worked either. The button just doesn't work at all now, at least not when the SWF has been loaded onto the main stage. Again, it works fine on its own. So what can I do? How can I get a button within an external SWF to reference only it's own timeline and not that of the main stage?
View 1 Replies
Jun 12, 2009
I'm building a website that has a main swf with buttons that open external swfs which completely cover the main swf. The external swf has a close button to return to the main swf. My problem is when the external swf is open the buttons hiding underneath on the main swf are still active. I want to add code to the button on the main swf to disable itself while opening the external swf. BUT, I also want to reactivate them when I close the external swf. Is there code I can place on the close button of the external swf that will communicate to the main swf to reactivate its buttons? It seems so simple but this is the trickiest part for me.
View 2 Replies
Jan 12, 2010
I wonder if it is possible to pass values from external .swf files to the main projector (.exe) file.? I would also like to know how a button of an external swf file can control the playhead of the main .exe file.
I have this map of tasks. and each map have these houses which when clicked will take you to a certain task(external swf). and when accomplished should have a button to take you back to the map(main swf), and also the button to send a value to the main swf that the task is accomplished.
View 2 Replies
Feb 14, 2008
how to sequentially play external SWFs loaded into the main timeline?
I have several SWF files with short videos embedded in them. I wish to load these external SWF files into my main timeline as follows:
User Presses Button -> Play Video Clip in External SWF#1 -> Once Video Clip in External SWF#1 has Finished -> Play Video Clip in External SWF#2.
I tried achieving this by adding: var endmovie:Boolean = true; to the end of each video clip inside the external SWFs (e.g. 1.swf) then cycling through an if statement in the main timeline to see when this condition was meet:
ActionScript In Main Timeline:
Code:
var mc_Loader = new MovieClipLoader();
mc_Loader.addListener(this);
[Code].....
How is the best way to go about achieving this? Am I on the right track? (By the way, using .FLV or one long external SWF file is not really an option due to long loading times...
View 3 Replies
May 16, 2011
I have made a menu bar and linked each separate swf file to the corresponding button. Upon testing my main movie, all the text on the main page is disappearing, the new swf file is not loading and the message 1120 error appears for all my buttons. I have checked the instance names and they match along with publish settings and folder settings. I cant understand why its not working
[Code].....
View 2 Replies
Jul 20, 2011
I have created a website which loads external swfs as pages onto the main stage on the click of a button. I am using Flash CS3 and Actionscript 3.0. Here is my code:
[Code]...
View 6 Replies
Jul 26, 2011
I have a main flash movie, that launches an external swf. Now this works fine, but this external SWF, launches more external mini SWFs. What happens is that after going opening and closing these mini swfs, is that eventually the main swf, will start to to run beneath the the 1st external swf. i.e. I have a small animation that is suppose to stop and remain invisible until the secondary swf is closed.
But this is not the case, and very randomly this will start to happen, and it makes everything look like crap. At first I thought it was the fonts that I was using through out the swfs, because there were some design changes, but after updating the SWFs with the new embedded font I am still running into this issue.
Look at it like this.
main swf---->2nd swf--->numerous 3rd swfs
View 4 Replies
Jan 15, 2009
I'm building a portfolio site for an art director. He has access to final swfs but not fla files, and I'm calling these final swfs into a main movie, using MovieClipLoader. The external swfs live in subfolders, relative to the location of the main movie. The problem, of course, is that when the external swfs are loaded they look for any additional swfs relative to the movie they're loaded into, and not relative to the folder they're located in. I've tried _lockroot -- no dice.
View 1 Replies
Sep 1, 2003
I think what I am looking for is a random action script. I want to make a swf (mainmovie.swf) that would call up random swfs. What would be ideal is that every time the person goes to the site a different file is called up out of the files I created. So what I have done is put my (mainmovie.swf) into a folder with all of the other swf files I want to be random. It does not need to load to any specific level or anything it could even just replace the original move (mainmovie.swf) what ever is the easiest.
View 5 Replies
Feb 23, 2011
I am loading swfs into a movie clip. However, the contact button is not a loaded swf any longer. It's in the main flash page. This is what I want to do. All the buttons load the external swfs except when I click on the contact button that is in the main flash page. I need to get the other buttons to load after I click the contact flash button. Below is the code for the contact button and the one under for one of the other buttons.
[Code]....
View 3 Replies
Apr 30, 2003
I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there.
View 14 Replies
Nov 2, 2009
I had to create a menu using array and I had to animate it. With some great expertise from people, I've accomplished that. But now I have a question about OOP, because I'm trying to add functionality to the buttons to load swfs into my main movie. Even though I strictly follow tutorials and exercises, I can't figure out how to reference a variable made in one class to another. For instance, I have index.as, navbar.as, and menubutton.as. I assume I need to add a loader to my index.as. But I can't trace the loader in my other classes. I've been told to effectively accomplish this, it is best to use custom event dispatchers. But I'm lost on how to use them.
View 12 Replies
Nov 5, 2009
I'm trying to get an external image in a movie clip symbol when the movie is opened and I'm having no joy. I can get it to work with a mouse over event...
on (rollOver) {
rootObject.activeMouse = true;
mcImage.loadMovie( "image1.jpg" );
}
However, I need it to load without pressing / rolling over anything.
View 1 Replies