ActionScript 2.0 :: Flash 5 LoadMovieNum() ?
Feb 7, 2002
Something as simple as
on (release) {
loadMovieNum ("puppy.swf", 1);
}
Will not work in Mozilla, Opera 6.0, or any of the versions of Netscape. But fine and dandy in Explorer.Sometimes Netscape displays part of the swf movie, other times it doesn't show anything.My testing seems to result in that if I placed the swf file in level0 it does remove the movie that is there, but shows nothing.
View 8 Replies
Similar Posts:
Apr 15, 2009
I'm a newbie at Flash...and have a main movie that I would like to load external movies into..for ease of modification of the different areas vice having one large swf.I'm using the loadMovieNum command to load the external swf's just fine. When I play the external swf's by themselves...they play once and stop. When they are loaded into the main movie...they loop.I've placed a "stop();" command at both the frame in the main movie...and also on the line directly after the loadMovideNum line.
View 3 Replies
May 20, 2009
I have made a swf that loading another swf file,it works well alone. When i put it into a powerpoint file using shockwave flash object,it works only one time. When i close the ppt and reopen it, the swf cannot work.
View 1 Replies
Jul 5, 2010
how to loadMovieNum in AS3?..I know the migration that we should use the Loader type
var lala:Loader = new Loader(new URLRequest("home.swf"));stage.addChild(lala);
something like that?..But my question is if we do LoadMovieNum("home.swf",0); ""lvl 0 > Stage right""its like replace the previous stage with the new stage..whereas the 2 swf have the difference size..when i did with the Loader, thats load covered the previous SWF and the window size didnt resize automatically..
View 2 Replies
Aug 23, 2009
For the past 7 years I have been creating a presentation in CS3 using Flash and ActionScript2. I am using a new plug-in that requires me to use AS3. I basically have about 20 different flash files, and to link all the swf files together I used to use:
stop();
loadMovieNum("gtradial.swf", "1");
When I use this now I receive this error:
1180: Call to a possibly undefined method loadMovieNum.
what I need to add/change to make this work with AS3?
View 1 Replies
Mar 1, 2012
I'm setting up a multi-lesson game and using it also as an opportunity to make the switch from AS2 to AS3. It's been a bumpy road but I'm getting it but think I've hit a roadblock.Is there an equivalent to the "loadMovieNum()" parameter from AS2? I have been merrily building all the individual games assuming I'd just swap them in and out of the same level so they purge each other as we go.
View 2 Replies
Apr 5, 2003
I have tried redoing this for the second time and I still can't get the LoadMovieNum script to work for me when any button is clicked.
View 4 Replies
May 29, 2003
i'm using the loadMovieNum(); to load external swf files into my main movie...is there any way that i could use that action and direct it to play a certain scene within the loaded movie...example... i have the main movie called main.swffrom main.swf i put a button and on the button i give the action:
on(release){
loadMovieNum("page.swf",2);
}
this will load the new movie onto level two inside main.swf, right?is there anything i could ad to that to make it load the 3rd scene of page.swf... or would i have to tear the whole project up and seperate all the scenes as seperate external files?
View 5 Replies
Sep 19, 2007
Does anyone know if its possible to load a AS2 swf into a AS3 swf, and then have the AS2 swf load other AS2 swfs onto different levels (e.g. _level1, _level2, ect...). I'm trying to wrap an preexisting AS2 swf that manages the loading of several other AS3 swfs onto levels, with a AS3 swf.
View 5 Replies
May 19, 2008
MainMovie = level 0
Navbar = level 10
submovies = level 2
In MainMovie I load my navbar in level 10. Then from the navbar I load the submovies into level 2 (that way, the navigation is always on top)
My questions is, This works find locally, but when i upload the submovies won't appear when clicking the navbuttons.
I have tried relative paths, absolute paths, keeping it in the same folder, etc..
View 7 Replies
Jun 21, 2004
Hi,
Ok, first ill explain what im trying to do; Im trying to load .swf files with the names "1.swf,2.swf, etc..." which will be loaded in to container movieclips with the names con1,con2 -> con5. They are randomly generated and there is some code to do a nice roll over effect. The problem is that it loads the .swf clip fine, but the rollover effects dont get attatched. Is this because ive mis-understood how loadMovie(); works ? or are you supposed to use loadMovieNum to load in to a specific level and then work it from there. I have tried both solutions, and i either get the containers with the effect, or just the images without the effect. Here is the code i have so far:
PHP Code:
var number_of_images = 9;
var speed = 5;
var alpha_standard = 50;
for (n=0; n<=5; n++) {
eval("con"+n).movienum = Math.ceil(Math.random()*number_of_images);
loadMovie("/images/portfolio/"+eval("con"+n).movienum+".swf", "con"+n);
eval("con"+n)._y = 44;
eval("con"+n)._alpha = alpha_standard;
eval("con"+n).onRollOut = function() {
this.rollover = false;
trace(this.rollover);
};
eval("con"+n).onRollOver = function() {
this.rollover = true;
trace(this.rollover);
};
con1.onEnterFrame = function() {
if (this.rollover == false) {
/*
-- alpha fading --
*/
this.alpdiff = (this._alpha-alpha_standard);
this.ualpdiff = this.alpdiff/speed;
this._alpha -= this.ualpdiff;
/*
-- width fading --
*/
this.normwidth = 76;
this.newwidth = this.normwidth+((this.normwidth/100)*20);
this.wdiff = (this._width-this.normwidth);
this.uwdiff = this.wdiff/speed;
this._width -= this.uwdiff;
/*
-- height Fading --
*/
this.normheight = 62;
this.newheight = this.normheight+((this.normheight/100)*20);
this.hdiff = (this._height-this.normheight);
this.uhdiff = this.hdiff/speed;
this._height -= this.uhdiff;
} else {
/*
-- alpha fading --
*/
this.alpdiff = (100-this._alpha);
this.ualpdiff = this.alpdiff/speed;
this._alpha += this.ualpdiff;
/*
-- width fading --
*/
this.normwidth = 76;
this.newwidth = this.normwidth+((this.normwidth/100)*20);
this.wdiff = (this.newwidth-this._width);
this.uwdiff = this.wdiff/speed;
this._width += this.uwdiff;
/*
-- height Fading --
*/
this.normheight = 62;
this.newheight = this.normheight+((this.normheight/100)*20);
this.hdiff = (this.newheight-this._height);
this.uhdiff = this.hdiff/speed;
this._height += this.uhdiff;
}
};
}
con1._x = 50;
con2._x = 181;
con3._x = 312;
con4._x = 443;
con5._x = 574;
Thanks in advance to anyone who replys
-Matt "Deviant" Lloyd
View 1 Replies
Sep 23, 2009
I have a flash website that was made to a specific size that allowed me to have my main swf centered in the browser the whole time not needing a scrolling option. I used this code:
Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
[Code].....
We need more length on the main file so that people have the option of scrolling down if need be. Adding in a footer that wasn't planned for (mainly the 800x600 crowd).
But when I do that, I can't use the 100% in the HTML code and I'm not able to have the loadMovieNum pop up video centered in the browser.
View 0 Replies
Jun 28, 2010
I am trying to load an external SWF into my main movie. The problem is only loadmovienum() seems to work and not other method works i have usedLoadmovie() Load Component loading using an object
I have done this many times before in other flash projects but I can't what's wrong this time . I have used the tween class for some animation and that's it. i even tried loading in the main movie even that doesn't seem to work. I don't want to use loadmovienum because then i am not able to define the placement for the SWF!!
View 9 Replies
Oct 27, 2010
I am working on one very big presentation which is made by around 240 different external .swf in AS2. Although I do not work with AS2, only with AS3 and I didn't make this presentation, I need to make changes to it. So every .swf have navigational buttons which are using this method:
loadMovieNum ("example/example.swf", 0);
to navigate between different movies.
Every swf has also a very annoying music, which I can control by putting a on/off sound button in every .swf, but when the user navigate to another .swf the music start again and the user have to push the on/off button again. Is there a way the player to remember the user choice in previous .swf, so not to have to make this choice every time he navigate between the .swfs?
Until now I control the sound like this:
my_sound = new Sound();
my_sound.attachSound("mix1");
my_sound.start(0, 1000);
View 1 Replies
Aug 16, 2011
i'm new to flash programming. the code below is not working.[code]
View 3 Replies
Jul 20, 2005
This is my as:
[Code]...
For some reason, the external movie I'm loading into level 5 in the first red line won't execute the action below it, to make the loaded movie play a clip on its main timeline (contentSlider) from frame 16. It just keeps going to the first frame of the movie and nothing else.
View 3 Replies
Aug 12, 2005
I have two movies. The first one has a button that, when clicked on, loads the second movie using loadMovieNum. I'm want to be able to jump to a specific frame (i.e. 177) in the second movie when I click the button in the first movie. I'm using the script below to load the second movie: But it don't really work.
[Code]....
View 2 Replies
Oct 15, 2005
difference between loadMovie and loadMovieNum.
View 3 Replies
May 1, 2008
I am loading multiple external swf into a main swf (slides), but they collapse in the root.
This is the code I am using now
emty_mc.loadMovieNum("gallery.swf");
I used to have a code instead of using levels for each empty movie clip, something like
NextHigherLevel
that fixed the problem before, but I forgot how to use it.
Can somebody give me the right code to load multiple swf files without collapsing in the root, using NextHigherLevel?
View 6 Replies
Feb 7, 2004
i use this AS to load an extrnal movie (song1.swf)[AS]loadMovieNum("song1.swf", 66);[/AS]but dont know how give it a _root."name" so that i can call it later.
View 14 Replies
Mar 23, 2004
I've had great success with loadMovie and loadMovieNum, but occasionally I see something in the posts about attachMovie. Is there a difference between attach and load, or is one left over from a previous verion of Flash?
View 2 Replies
Nov 12, 2002
How do I position an swf after it has been load using loadMovieNum???
View 1 Replies
Feb 10, 2009
I have this problem with loading new movie on the same page with fixed background.Here is an example of what i want to do . I have two flash files main.swf and movie1.swf, and main.swf loads first when i open index page. On the button of this main.swf i have action
PHP Code:
loadMovieNum("movie1.swf", 0);
which should load new movie in the same window and everything works fine when i test SWF file but when i embed it in a HTM page with fixed background only first move main.swf loads fine as it should but when i click on the button in this main.swf to load new movie movie1.swf in the same page it will not load??? It starts to load and than just stops. I guess there could be something wrong with my CSS style but i have never been working with CSS as i am only beginner in web design. Could anyone help here please? Here is y CSS style.
PHP Code:
body {margin:0px; padding:0px; vertical-align:top; background:url(images/back.jpg) no-repeat top #2BA3F4;}
View 1 Replies
Nov 20, 2009
I am using Actionscript 2.0 and I'm a newbie. anyway, I have four swf files: Main.swf Mac1.swf, Mac2.swf, Mac3.swf On Main.swf, I have three frames and each frames it has these action scripts Mac1.swf:
[Code]...
View 9 Replies
May 11, 2010
"loadMovieNum("swf.swf", 0); Im trying to use the following code: "loadMovieNum("swf.swf", 0); in AS 3.0? It seems to me that when comparing AS 2.0 and AS 3.0 its like comparing english to greek. Why such drastic changes across this language?
View 2 Replies
Aug 29, 2010
how do I tell an html page to open with a swf item on level 50, so that when I call another item into level 50, it REPLACES the original item. Right now, when I call another item, it just goes over the top and stuff shows. I'm using loadMovieNum, AS 2 Flash CS3
View 2 Replies
Nov 22, 2010
So, I have a site, and I want it to play an intro movie when you load the index page. I have it as LoadMovieNum (videos.htm), but I want it to play the video on that page, which is about 30 sec. long, and then redirect to another .swf page entitled index.swf.
View 3 Replies
Dec 9, 2010
is there a way to capture the Error loading message as a boolean when loading an external file (AS2)? I wanted to make a decision based on the success for loadMovieNum.
The scenario is that I have a file that I am loading with loadMovieNum and all is working successfully.
The circumstance I wish to cover is if the file is missing for any reason, I want to load a placeholder movie.
I have looked at onLoad and onClipEvent(load) but these appear to only be for movieclips and not external files.
View 5 Replies
Dec 15, 2009
I was build a ComboBox, and it's working ok. Im choose an option, and movie is loading to stage, but its load with full workspace that was previously exported. How i can hide everthing about my animation ? I have several animations in different size.
And second question, how make position of the animation on the stage ?
This code is putted to ComboBox and does not work: (also i was try put this. before _level1._x, but when i was choose an option, menu was moved to the x,y position.[code]...
View 0 Replies
Dec 18, 2011
when running an SWF some variables are being changed and objects created.If I wanted to restart the clip I have to restore all the variables to their starting values, clear all Intervals if any and destroy the objects created at runtime.If instead I load the clip into itself using [code]
1. what is the difference between loadMovie(swf_file_name, this) and loadMovieNum(swf_file_name, 0) in this context and which one is preferable?
2. Both obviously reset the values. But do these functions perform rubbish collection, i.e. free memory of the objects created at previous run-time, clear Intervals etc to prevent memory leak and processor clogging ?
View 0 Replies