ActionScript 2.0 :: Why Can't Controll After LoadMovie()
Sep 24, 2005
quick question... I do a:
target.loadMovie("blah.swf");
_root.target.gotoAndStop(1);
and it doesn't do the "gotoAndStop(1)" command.
[Code]...
Nothing works... can you not control a timeline this way?
View 1 Replies
Similar Posts:
May 28, 2009
I have a swf and an activex media player on a page... the stream urls are in my flash movie and I would like to be able to choose which stream to play in the media player by selecting a button on the swf... this is where i am currently in detail... skip to the bottom if you would like the quick description
[Code]...
View 3 Replies
Feb 1, 2011
I want two sliders with the first I can controll the time line and with the second the alpha of an Video.
I tried this:
HTML Code:
gotoAndStop(slider.value);
video.alpha = (slider2.value / 10);
but it doesnt works.
View 1 Replies
Mar 24, 2007
Anyone know how I can do this? cus I really dont want to have that there, can I cover it?I'd also like to disable the hotkeys like ctrl += to zoom in etc...(How do I detect a zoom in, then make it zoom out?)
View 2 Replies
Oct 16, 2005
So I have a movie(movie 1) and i want to load it into my other movie(movie 2).But is it possible to make movie 1 controll movie 2.I know it might be other threads about this but i couldnt find any, if there are any other could you link me up.
View 2 Replies
Jul 23, 2009
I am really stuck with a loadmovie action that I cannot find the solution to. I have a website that I had to split up as the loading time was too long. I have used a loadMovie function and it loads the external movie but the problem is that the external movie requiring a little bit of time to load I want a preloader to come first.
I have attached screenshots of this (wssmain liks to the arch_mc1) . The problem is that the movie loads but the preloader doesn't play. Anybody has any ideas why?
The first screenshot shows the wssmain whereas the second (preloader2) shows the arch_mc1. If the fla files are required I will make them available for download.
[Code]...
View 2 Replies
May 2, 2011
I load my external image into emptymc which is inside mc_container:loadMovie("myimage.jpg", mc_container.emptymc); //placed on main timeline.This works fine. However when I go to a different frame within mc_container(specifically a frame without an instance of "emptymc") emptymc gets unloaded. As soon as I go back to a frame containing "emptymc" it no longer has the jpg.Is there a way I can keep the jpg loaded in emptymc without having to load it again?
View 2 Replies
Jul 2, 2009
I am very new to Flash and have been going around in circles for days trying to figure this out.I can't get swf to loadMovie when on server. I understand I need to use the path relative to the html page.[code]
View 1 Replies
Jan 18, 2010
I've been trying to load a simple .swf (home.swf) and have it play automatically on my existing fla project (as2). These are the steps I have taken.. 1) create MC, named "holder" 2) within first frame of MC, entered in.. loadMovie("home.swf","holder"); Nothing is showing, I'm not sure what I'm doing wrong. If you can help, I can send you the files I'm working with.
View 2 Replies
Jan 30, 2009
I am working on my first flash website and have been working on loadMovie & unloadMovie. The commands have been working for me and it will load & unload the external .swf in a contentHolderMC. The problem that I am encountering is the loaded .swf width is correct but the height is being reduced, I would guess to about 75%. Is there a way to maintain the external .swf's size? Even if I need to put the code into the external .swf.
I have tried creating a mask inside the contentHolderMC to match the size of the external .swf. When I have looked around for clues to the resizing, I am finding tutorials on how to resize the external .swf into a smaller Movie Clip. That's not what I am trying to do.
View 2 Replies
Feb 11, 2009
I have this problem: in my swf on frame 100 is a code:
Code:
loadMovie("second.swf", _root.clip1);
I have mc with isntance name: clip1 The movie second.swf loads into the position of clip1 but it's originally very big and I want it to make it smaller so it will fit to my site, if possible i would also like it not to be resizeable (so when someone will have smaller browser window it wouldnt move)
View 4 Replies
Oct 1, 2003
I need to be able to load the movies over the top of one another so that you can still see the movie under it....Can this be done ?????
View 8 Replies
Feb 15, 2009
I am using loadmovie AS2 function PHP Code:
stop ();blankmov.loadMovie("newmovie.swf") to load external movie in my main flash file and it works fine, except one problem which is the new movie that loads in the main movie becomes transparent so there is no background displaying in this new external movie. Is there a way to use loadmovie function so that new movie holds its background and it does not become transparent?
View 1 Replies
Aug 18, 2009
I'm making a game where every level is a separate swf. The problem is, when each level starts, it doesn't load entirely before displaying on the screen, and gives me unpredictable results. I also don't want load waits between each level.Is there some way to do all my loadMovie's at the start, loading them into some place where they wont actually be on the stage, and then calling them out one by one as you play each level of the game?
View 3 Replies
Dec 4, 2009
I'm having a problem loading a external.swf from another folder outside of my main.swf. This external.swf is being loaded into a empty.swf movie clip. It works when the external.swf and the main.swf are in the same folder, but when i place the external.swf into a images/folder and change the action toloadMovie ("images/external.swf", "main"); it no longer works. Did i target it wrong?
View 1 Replies
Jul 20, 2010
I'm not much of a flash programmer, and am a bit lost. What I want to do is the following. I'll have a SWF with two layers, which is being called from a PHP page on my site. The top layer is just an invisible button, and I'd like it to link to a URL that I provide from the PHP page. The bottom layer I would like to load a separate SWF file, whose path I can also provide from the PHP page. I have the URL and the SWF path working just fine in PHP, but I don't know how to pass those values to flash, or how to get loadMovie to work like I want it. Can anyone provide some guidance?
View 7 Replies
Jun 4, 2011
First things first, please don't recommend I change to AS3 for this. I know, but It's far too late for that and not my project to be dictating..So I'm loading some external swfs in with the loadMovie command, in the normal manner with a button:
Code:
on (release) {
loadMovie("swfs/example-1.swf", _root.container);
}
But what I need, is to wedge a preloader in there somehow. As the swfs are around 1mb each.I'm already using the following as a preloader for the main file, so an adaptation of it would be very welcome so I can co-ordinate the graphics.With this on frame 1:
Code:
var amountLoaded:Number = _root.getBytesLoaded() / _root.getBytesTotal();
preloaderText.text = Math.round(amountLoaded * 100) + "%";
And this on frame 2:[code].....
View 1 Replies
Oct 9, 2009
Im using AS2. Now, i got this trouble: when i load an external movie into the main one, i had some errors if i put it into a containter mc, with this code: Code: loadMovie ("movie.swf", containter_mc); The scroll bar not only move the movie.swf object, but the container_mc too... So, i just load the movie without using a container, with this code: Code: loadMovie ("movie.swf", 2); And suprise! now the scroll bar works just fine. But... How can i position the movie into the main one? Like: movie._x = 200; movie._y = 200; How can i do that in the right way? (Sorry, but my english its not good enough ha! )
View 2 Replies
Feb 16, 2011
I'm loading many movies in a moan movie into mc instance name "movieHolder" I need something to happen only IF the first movie is not loaded. How can I check WHAT movie is currently loaded in movieHolder?
View 14 Replies
Jun 22, 2011
The "scroll_right" image shows up, but in Debug, _root.win_Main.scroll_right.bar does not exist after this code is called. However, _root.win_Main.scroll_right DOES exist.
Code:
var win:Object = _root.win_Main;
win.createEmptyMovieClip( "scroll_right", win.getNextHighestDepth() );
[code].....
View 5 Replies
Mar 10, 2011
I have a flash movie that loads an external image into a movieclip with the following code:
Code:
//Load image
loadMovie("myimage.jpg",_root.moviebox.picturebox);
[code].....
View 1 Replies
Feb 24, 2009
I want is it load an external swf on the click of a button, then unload it to load another swf on the click of another button. heres a sample code of what did.
Code:
stop();
//loading first movie
container.loadMovie("movie.swf");
[Code]....
View 0 Replies
Oct 9, 2009
I am using AS2 to create the whole movie. Now, I got this trouble: when I load an external movie into the main one, I had some errors if I put it into a containter mc, with this code:
Code:
loadMovie ("movie.swf", containter_mc);
The scroll bar not only move de movie.swf object, but the container_mc too...
So, I just load the movie without using a container, with this code:
Code:
loadMovie ("movie.swf", 2);
And surprise! now the scroll bar works just fine.
But, How can I position the movie into the main one?
Like :
movie._x = 200;
movie._y = 200;
View 1 Replies
Oct 23, 2009
Im working on a site with influences from this tutorial[URL]..It is basically a tutorial how you can make a 3D rotating carousel witch picturens from an external xml-file.
Although in the tutorial he makes the "buttons/pictures" go to an "output". I whould like it to go to another movie (loadMovie)
[Code]...
View 9 Replies
Jan 13, 2010
I am using the folling to load a game into my flash site
ActionScript Code:
var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
container._lockroot = true;
container.loadMovie("Mobile2.swf");
It works fine but I have another game which is too big in its raw state. Is it possible to scale it using actionscript so when it loads it loads with requested dimensions?
View 3 Replies
Jan 23, 2010
I'm currently working on a school project and have come to the stage where I need to put all of my swf's together. But I'm running into an issue with getting the swf's in my file.I've at first tried to do the same thing using scenes, but this didn't work either. I've read on several fora's that the scene thing in flash had some weird things and was recommend to use loadMovie instead.Now I'm trying to use loadMovie, but I can't get this to work either. I've tried the exact same code with an image and this is working. As soon as I try to do it with a swf file, the file loads and leaves a complete blank. I've read the list of objects in the swf and all variables are undefined, could this be related?I'm currently using AS 2.0.
View 7 Replies
Mar 24, 2010
I have one main swf called index.swf that links to other 5 swf. The name of the external file are 1.swf, 2.swf up until 5.So the actual coder apparently using var n = 1
if (IndexLoaded >= total) {
var n = 1;
gotoAndPlay(3);
and then do the following (loadMovie):
var movie:MovieClip = _root.StoredActions.Movies.CMovie.duplicateMovieCl ip("CMovie" + n,n);
loadMovie(n+".swf", _root.StoredActions.Movies["CMovie"+n]);
var MovieLoaded = 0;
[code]....
to call the 1.swf, 2.swf etc.
I need to specify the exact location of the external swf (i.e: http://www.mydomain.com/swf/), rather than doing it as above (root). How do i add that exact URL on that line? i tried the following and ended with error
loadMovie(http://www.mydomain.com/swf/n+".swf", _root.StoredActions.Movies["CMovie"+n]);
View 2 Replies
Jun 2, 2010
i just created a sample of slideshow after reading a lot of tutorials.i created 1.swf(1st photo with sliding effect)which uses loadmovie to call 2.swf(2nd photo ..) which uses loadmovie again to call 3.swf (3rd photo..) which finaly uses loadmovie and calls 1.swf and there is a loop all the time. When i tested this on my server i saw from the web inspector that i download the swf everytime that loadmovie is being used. Is there a way to make this simpler with a xml file?
View 1 Replies
Apr 6, 2011
I've got a movie control which loads different .swf files into a blank movie when the user click an image below the main view. In windows it works fine and also in Safari 5 for Windows but I've been told it will just not work on a Mac in any browser.
Actions for Frame 1
loadMovie("movie1.swf","mainView");
bnt1
Actions for bnt1
[code]....
The frame 1 action works on the Mac but the mouse will not interact with the buttons to load the other movies when the user tries to click them.
I have other similar controls which work on the Mac but they are using on release get url functions for the interaction. All the swf files are loaded from the same directory as the control on the web server.
View 0 Replies
Apr 30, 2011
but i just can't figure it out. I've made a website in flash, with a button. The purpose is when you click one button, a portfolio will open. This portfolio is xml driven and i've got the FLA file and the SWF file.
But.. when i put the portfolio FLA file in my website timeline it won't work, and when i try to use the SWF file instead and connect it to the button using AS2.. it won't work at all. The last option i used the following AS2 codes and put the code on the button frame.. that didn't work (not at the same time offcourse ):
[Code]...
This last code did work.. but for some strange reason this last code loaded the SWF again and again...
Is there someone who knows what i'm doing wrong? I just want that the portfolio opens when you click on the button.. and opens in a container with certains measures.
View 3 Replies