ActionScript 2.0 :: LoadMovieNum Settings - How To Give It Root Name
Feb 7, 2004I use this AS to load an external movie (song1.swf)
[AS]loadMovieNum("song1.swf", 66);[/AS]
But don't know how give it a _root."name" so that I can call it later.
I use this AS to load an external movie (song1.swf)
[AS]loadMovieNum("song1.swf", 66);[/AS]
But don't know how give it a _root."name" so that I can call it later.
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 RepliesI am having a problem with Flash.I get the message Movie not loaded if I right clich where the video should be.I may have set the hardware acceleration on/off by mistake, but I cannot get the Settings manager to open to check it.I am running Feroda rc14.If I go to http:[url].... and right click in to white area at the top, I get the message 'Movie not loaded' and the flash version - 10.2.159.1. This is where I should be able to open the settings window.Where does Flash store that info on my PC? How can I check it/change it without Settings manager?
View 4 RepliesSituation:
- We have a Flash application located on a SAP EP (let's say ep.x.com)
- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)
- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices
Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.
- A crossdomain policy file on root level cannot be deployed on root level
- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.
Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.
Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.
- SAP / Adobe always features the close relationship between their technologies.
Question:- What could we do?
- How does the Visual Composer works around that problem?
I have a root stage, and a MC that is called from the root stage.Now from that MC, i will called in another MC2, and I wanted to placed the MC in the center of the stage. The reason I could not use normal ADDED_TO_STAGE at MC and define the center is because MC is not place in the exact position of the root stage (as in x, y=0). So if I would target MC2 at MC stage center, it would not be the exact center of the root stage/screen.How can I called the root stage properties rather than adding MC2 into the stage?
View 1 RepliesHow do you tell the root timeline to root.gotoAndStop(2); from the timeline of a movieClip added using addChild?In the maintime line I have
addChild(fade_eng);
and in fade_eng I have the following on frame 20
root.gotoAndStop(2);
this.gotoAndStop(1);
But I am getting 1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.
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 RepliesI 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 Replieshow 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..
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?
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 RepliesI 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 Repliesi'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?
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 RepliesMainMovie = 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..
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.
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
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.
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!!
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);
i'm new to flash programming. the code below is not working.[code]
View 3 RepliesThis 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.
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]....
difference between loadMovie and loadMovieNum.
View 3 RepliesI 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?
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 RepliesHow do I position an swf after it has been load using loadMovieNum???
View 1 RepliesI 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;}
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]...
"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