ActionScript 2.0 :: Loading An External .swf Movie On The Top Level?
Jan 10, 2003
how do I load an external .swf files in order for them always to load on top of the one loaded previously. I've tried to put all of them in the same level but the transition is abrubt. I want the transition to be smooth and each .swf file to load on top most level.
View 3 Replies
Similar Posts:
Jul 25, 2006
assigning a level for the external movie(reseller_locations.swf) loaded to a moivie clip(clipHolder)
code
loadMovie("reseller_locations.swf", this._parent.clipHolder);
View 1 Replies
Nov 10, 2011
I've got main time line as Main.swf (level 0) and few external swf files: Message_01, Message_02, Message_03 etc.By the end of the main time line there is a key frame with the script (AS2).The script should call randomly one of the external swf and load it to level 2.
View 5 Replies
Oct 19, 2005
Im having trouble with this script again. I need to load a movie on the 2nd leve this is the script here.
// Time value, in milliseconds, after which, failing any mouse movement, an action is to occur.
numMouseTimeoutMS = 30000;
// Define what is to happen should the mouse be moved.
[Code]....
View 2 Replies
Nov 5, 2002
I am loading a swf into a level, but need to use actionscript to manipulate its location in the root movie. This is my code:
stop ();
loadMovieNum ("logo_sm.swf", 1);
_level1._x = 300;
// whatever you want for upperleft x
_level1._y = 300;
// whatever you want for upperleft y
yet the loaded swf continues to load in its native position, rather than at any coordinate which I specify. It is riding in the upper left hand corner, even tho here I am indicating a much different position.
View 5 Replies
Apr 19, 2004
I have a button that is a few levels down in movie clips. When It is pressed, it is supposed to load diamonds.swf. It does this, but not on the first press. On the first press the _root time line goes to and plays "fade," but doesn't execute the rest of the script.
[Code]...
View 2 Replies
Nov 5, 2004
I have a movie that's 500x400 px in level 0 and has lots of thumbnails with pictures that I want to open. the thumbnails open a 500x400 px movie above the other but on level 1. the problem is that when the new movie loads on level 1, the thumbnails on level 0 (that are now hidden by the new movie) are still active, and if i click anywere in the movie on level 1, it trigger an action from level 0. Is it possible to load a movie to level 1 that deactivates the movie in level 0 without unloading it?
View 1 Replies
Feb 7, 2007
I'm using xml to load .flvs into a movie player. I have it setup to load an external .swf to level 1 when the movie is finished. My goal is to have the .swf on level 1 select the next .flv from the xml array by way of simple buttons. Needless to say, it's not working. Anyone care to give it a crack?
[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
Jun 4, 2004
[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.
View 2 Replies
Mar 16, 2004
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
View 3 Replies
Jul 2, 2006
I would like to set height after I load an external movie into a movie clip.
For example,
this.body_mc.loadMovie("body_about.swf");
_root._height = this.body_mc._height;
I always get height as 0, because body_mc is an empty movieClip.
how to access the body_about.swf height as soon as loaded the movie into the empty movie clip?
View 2 Replies
Mar 14, 2012
I am trying to load an external swf without having to use any buttons. In other words, when the main flash loads, the external one loads as well automatically.
I found the following script that does seem to load the movie, but it won't play...the first frame of the movie just sits there without playing. Obviously I'm missing something? I have this action in the first frame of my main movie.[code]...
View 9 Replies
Mar 16, 2004
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. 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.
View 3 Replies
Apr 22, 2006
Movie1 loads external Movie2
Movie2 attaches the loading bar "loader"
Within loader there is a bar, that bar's width depends on the var picPercent on the Movie2 timeline.
So I used
Code:
onClipEvent(enterframe){
this._width = _root.picPercent;
}
now my problem is, it's trying to get picPercent from _root, but it doesn't move. Is that because it's looking for picPercent from Movie1 and not Movie2 like I'd like?
View 2 Replies
May 29, 2003
I am trying to create a online portfolio and wanted to open an external movie in a specific place. I have now managed to do this, but now it opens where I want it does not play my movie that it opens. (code below)
on (release) {
_root.empty.loadMovieNum("kari.swf", "_level1");;
}
If I dont place the external movie within the area I would like it in, and have it just open the movie will play quite happily
View 14 Replies
Jan 23, 2008
I have a group of buttons that coordinate with eachother, and i want them to be there throughout the whole website with only a small rectangle that changes when a button is pressed. I have attached a picture of my layout, and i want to be able to import '.swf' files into the empty grey rectangle.
I have no idea where to start and where to load my external swf's, and the best i can do right now is to duplicate the scenes and use normal links, but that takes away the look of my buttons when switching from one page to another.how to make a pre-loader for the external swf's also?
View 1 Replies
Sep 10, 2008
I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.
function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage
[code]....
I think this is the problem with the code. Casting it to a MovieClip only gives me a 1034 error.
View 2 Replies
Jan 4, 2009
I'm able to load the actual external SWF movie, but I can't seem to control it. I have already built a controller for my flash video player. The problem now is it only plays FLV and I want it to be able to take in SWF support. Again, I load the SWF fine, but controlling is the problem.
function finished_loading (e:Event) {
var externalMovie = MovieClip(swfLoader.content); // cast 'DisplayObject' to 'MovieClip'
addChild(externalMovie); // add your swf directly to the stage
[code]....
View 1 Replies
Dec 17, 2009
I have a main movie with 4 menu buttons to load external movies. I managed to load an external movie but the problem is that the menu movie is showing underneath and I would like it to be invisible or not showing while the loaded movie plays.
I posted the files menu2_swf as well as the .fla
[URL]
The code:
stop();
var myLoader:Loader = new Loader()
myClip.addChild(myLoader)
[Code]....
View 4 Replies
Jan 7, 2010
This used to be so easy in AS1 and AS2, but since I haven't been using Flash in 2 years now. looks like time ran over me - and it looks like it'd take me a while before I figure this out in AS3. So, what I want to do is to call external swf into another movie clip and my stage is set like this.
In main timeline I have two layers:first is (center_mc) and contains movie clip "center_mc" which is positioned in the middle of stage and in the second layer (mbottom_mc) is movie clip "mbottom_mc" that will contain buttons as "menubtn01". So what I Want to do is when I click on this "menubtn01" to call external swf into THAT movie "center_mc". So to clear the external swf that "center_mc" is showing with the new.
View 3 Replies
Sep 21, 2010
I like to play external preloader before it's load original movie index.swf. But I have a problem on resizing index movie. Sample files on link [URL].
Here is preload AS3 code:
package{
import flash.display.*
import flash.display.MovieClip;
import flash.net.URLLoader;
import flash.net.URLRequest;
[Code] .....
View 5 Replies
Feb 15, 2012
Last time I wanted to load an external clip I could do it like this on (release) {
[Code]..
So now I want to achieve exactly the same thing in AS3, I have been looking at examples on the web but am getting all sorts of errors and basically don't know what I am doing. I also want to know how to navigate to .swf files in a file structure, as I have to build an old school fscommand file structure for a cd-rom.
View 2 Replies
Jan 14, 2011
I'm trying to make a Flash website that contains a Flash Store (loaded as an external SWF.)
I have set my pages up in a movie clip file called pages_mc. Each desired page is has its frames labeled (ie: "HOME," "PRODUCTS," ect�)
I need to know how to load the SWF titled, flashshop_plugin.swf onto the "PRODUCTS" page of pages_mc.
What is the best way to do this? I've tried a number of things, which have resulted in the external SWF not loading or having it load, but not go away when another page is selected. I'm assuming I would use add/remove child for this? Just not sure how and accompanied by what other code.
PS: The Flash Shop template I am using suggested using the following code to import it:
[Code]....
View 2 Replies
Jan 29, 2004
I am doing a project for school and I don't have flash their. Is there a simple way to connect to a external flash as file and have that one stream a mpeg video into flash. If so, is there also anyway to add controls.
View 2 Replies
May 23, 2004
can someone give me the AS for loading external swfs into a movie? the swf name is slideshow.swf. (i am trying to load a slideshow into the movie using AS so that when the keyframes his the "stop();" function, the slideshow does not stop) or is their a better way of accomplishing this?
View 1 Replies
Jan 5, 2005
I am a bit new to the world of externally loaded swf's. I am trying to load an swf into my main movie, and then access/control the movieclips within that newly loaded swf, but for some reason it is not working.
Here is a quick example:
this.menu.createEmptyMovieClip("myMovieClip_mc",this.menu.getNextHighestDepth()+1);
this.menu.myMovieClip_mc.loadMovie("\menu\standard.swf",this.menu.getNextHighestDepth()+1);
this.menu.myMovieClip_mc._lockroot = true;
trace(this.menu.myMovieClip_mc.option);
this.menu.myMovieClip_mc.onRollOver = function() {
trace("Hello?");
this.bounce(120);
}
Okay this code does sucessfully create the movieclip but my onRollOver function does not work, and I cannot access any of the movieClips within myMovieClip_mc such as option, it traces out as undefined.
View 2 Replies
Jul 22, 2006
I am trying to loadmovie a external swf within a movieclip in the main flash document but nothing shows up, why is that?
View 12 Replies
Dec 19, 2007
i don`t know how i got back to the basics but i am having a problem with a preloader. What i do... I have an empty movie clip that loads an swf after a user make a button choise. So after the user choise i make the preloader._visible = true; and in the preloaders movie clip i have this code
onClipEvent (enterFrame) {
_root.externals.stop();
mctotal = _root.externals.getBytesTotal();
mcloaded = _root.externals.getBytesLoaded();
[Code]....
The "_root.externals" is the empty movie clip that loads the external swf.
The problem is that when the preloader goes to 100% the external swf plays but plays in loop all the time. In the external swf i have the action stop(); in a frame but it doesn`t stop insted of stoping it replays all the time....
View 5 Replies
Jul 28, 2003
if i just tested loading an external swf into a movie clip, and it loaded fine... but it doesnt let me click any of the buttons or anything in it ( i imported a game i made into a different swf and i cant click the start button)... is that just how loadMovie works? or is there something i did wrong?
View 10 Replies