Is A Movie, When Loaded In Another, Use Is Own Framerate?
When i load a movie in another one, like a draggable window, do this movie use the framerate of the main movie or is own framerate
thanks!
FlashKit > Flash Help > Flash General Help
Posted on: 02-05-2003, 01:45 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Framerate Of Loaded SWF Changing Framerate Of Main Movie?
I don't understand why this is happening, as everywhere I read said this was impossible, but - I have my main movie defined as 24fps.
I use the following code to load in an SWF that happens to be 12fps.
ActionScript Code:
_root.ImageLoop.createEmptyMovieClip("anSWF", _root.ImageLoop.getNextHighestDepth());
_root.ImageLoop.anSWF.loadMovie("./InsulinClip4plasma_12fps_mx.swf");
As I understand it the main movie should control the framerate so I was terribly shocked when I found my main movie runs at 12fps after loading in that swf.
Does anyone know how I can circumvent this?
Thanks!
Setting Framerate For Loaded Movie.
How do I set fps for the following loaded movie...
on (release) {gotoAndStop(18);
getURL("submovie.swf", "_level5" );{
}
submovie.swf is 36fpc and I would like to keep it that way in a movie set at 12fps.
Keeping A Loaded Movie's Original Framerate
Hi everyone,
I have a problem that I think will be rather simple to fix, I just can't figure out how to do it! I have a movie with the frame rate at 30. I have an external .swf with a framerate of 10. When I load the external .swf it is playing at 30 fps instead of the 10 I would like it to. Does anyone knwo how to force it to stay at 10 and still let everything else play at 30? Thanks!
Luke
Video Framerate / Movie Framerate Issues
Hi all,
I have one swf, say "loader.swf", running at 40 fps loading a video swf, say "video.swf", exported from sorensen squeeze running at 25 fps.
Now, what I thought at first was video.swf would adjust to the framerate of loader.swf, like any other swf would, but it seems that if video.swf contains timeline video or sound, loader.swf will conform to the framerate of video.swf ?
When decompiling the swf from sorensen squeeze there´s also a "framerate=25.00000" action at frame 1. Is this some kind of secret movie property, or just a simple way for loader.swf to get the video framerate?
What happens to loader.swf when i unload media.swf? Will it go back to its original framerate?
Couldnt find any info on these slightly puzzling issues, anyone with experience from this?
Nick
How To Preserve Loaded Movies Framerate
I have a movie with a framerate of 12 and I'am loading a movie with loadClip that has framerate of 50. The loaded movie plays in framerate of 12 not 50, How do I preserve the framerate of a loaded movie?
How To Load Movie Of Different Fps(framerate)?
Hi, can someone tell me how to load a movie with different fps? I wanted to load a 120fps movie call "MyPopMovie.swf" into my 12fps main movie using the below code:
loadMovie("MyPopMovie).swf","MyGraphHolder");
However, whenever I load the MyPopMovie, it seem it runs at 12fps.
How can I set to let it load at different frame rate??
Thanks..
Changing Framerate Mid Movie
is this possible? i wanna join up two seperate things with different framerates and i cant afford to change either of them, can i just alter the framerate mid movie?
Change Framerate While In Movie
How can i change the framerate of a movie with the left and right buttons. I've tried something but i can't get it to work.
I'm using flash 8 adn this is my code that i'm stuck on:
Code:
function speed1() {
if (abc == 1 == false) {
speed = 20;
}
return speed;
}
function timelineFaster() {
play();
updateAfterEvent();
if (Key.isDown(key.LEFT)) {
speed--;
}
if (Key.isDown(key.RIGHT)) {
speed++;
}
}
setInterval(timelineFaster, speed1());
Debugger shows speed works but nothing else.
Run A While Loop At Movie Framerate?
Hi, i have a while loop that i would like to run at the framerate, or if possible slightly slower, say 10 times a second? is it possible to have a quick pause in each iteration?
Cheers
Neil
Controlling The Framerate Of A Movie Clip
So I have this scene from a movie that runs at 16 frames per second (We'll call it "trailer" for the sake of simplicity). I need to somehow put this scene into a movie that's running at 24 frames per second. I recall hearing that it's possible to control the framerate of a movie clip using some actionscript, but I have no idea how to implement it.
Trailer is now packaged in it's own little movie clip. What would I need to do to have it playing at the proper framerate while being in a movie running at 24 fps? Specific examples of how this would be done would be muchly appreciated. If the fla is needed, I'll set one up.
Thanks in advance!
[F8] Flash 8 Framerate Change Mid Movie?
I have searched the archives but can't find the right answer.
I have a movie that the client thinks is too fast in two different locations. I would like to change the fps at the beginning from 12fps to 9fps then later change from 9fps to 6fps, then later back to 12fps. Is there an actionscript where i can do that?
jp
How To Accurately Display Movie Framerate?
Can anyone help me out with a script to accurately display my movie's frame-rate in the corner of the movie. I have seen this in other movies but haven't really got a clue how to do it myself.
I know my movie is not running at a constant frame-rate and don't really expect it to but knowing how much the rate is changing would be nice.
Thanks in advance,
Chris
Changing Framerate/second Of Movie While Inplay
hello,
I have a relatively challenging question... I was tasked to control the frames per second of a flash movie... but not thorugh the movie properties... i figured that if we can control the quality of flash externally.. maybe we can control the frame rate too...
here's the scenario...
what if you have a movie playing and within the mobie you have the option to slow down or speed up the frame rate... is this possible???
this will enable the viewer to slow down your movie or speed it up... ideally with an interactive controller within the flash movie...
help?
Why Does My Movie Play So Choppy? ...and A Question About Framerate
I'm brand new to Flash and am trying to create a Scorced Earth (eg. Tanks) clone.
Here my movie: http://www.lagworld.net/canon.swf
It's setup for 60 fps and plays smooth as silk in Flash 8 and if you download the file and run it inside the Flash player it also plays fine. However, if you view it from inside a browser it looks quite choppy.
So here are my questions...
1) Why does the movie play fine in Flash stand-alone but choppy inside a web browser?
2) Is 60 fps too high? I've heard that 24 fps is normally fine for animation but I think 24 is a bit choppy. If 60 fps is too high, what is a good fps to use?
3) What resolution is good for making a Flash movie/game? I'm designing it at 640x480 but that seeems extremely small (and a minority of users). At home I use 1920x1200 but I know thats waaaay too high. Whats a good medium to use?
Thanks for any help!!
Loaded Movie Clip To Talk To The Movie That Loaded It
Trying to get a loaded movie clip to talk to the movie that loaded it, but can't figure out the right ActionScript... . i'm using:
on (release) {
tellTarget ("home.swf") {
gotoAndPlay("blank");
loadMovieNum("viewer.swf", 2);
it ain;t workin, i've also tried _parent &
_root - in replace of 'home.swf' to no avail, much thanks to anyone that can help!!!
Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM
1. I have my navigation buttons in level0
2. When a button is pressed it loads an external .swf into the highest empty level
3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.
4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.
The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.
It works fine if you test it on its own. But not when loaded into a Movie Clip.
MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);
Do I have to refrence it differently? Because of where it is situated?
e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();
confesed!
Checking If Movie Loaded Into An Instance Has Fully Loaded B4 Playing
Hi,
I'm building a site that streams a series of small movies into some preset into instances on the _root timeline but are paused on an empty frame 1 until needed. So while the first movie is playing the second movie is already being loaded and is cued on frame 1 ready to play.
However, if the timeline tells the loaded movie (i.e. _root.content ) to play frame 2 before this movie has finished loading it will not play. This shouldn't happen because the movie loaded into _root.content should have loaded, but I need a failsafe.
Is there a way to run a routine once the _root timeline is finished to constantly check the status of the movie being loaded in _root.content and then play once it is loaded.
I've tried running this code in a routine:
if (_root.content._framesloaded >= _root.content._totalframes) {
_root.gotoAndPlay(2)
}
..but I'm not sure if it will work.
I really want to avoid a preloader (each movie is only about 10k big )
Any help would be greatly appreciated
Cheers
Checking If A Movie Loaded With LoadMovie Loaded Succesfuly
Hi,
I have a movie called main. I want to load into a movieClip that sits in main an .swf.
To do it i use a
pictureClip.loadMovie("PR001.swf");
My question is: is there a way that the main movie can know that PR001.swf was not loaded?
Thanks fo the help.
Playing A Loaded Movie Clip (loaded In A Different Level)
I really don't understand the problem here, I'm loading a swf containing a movie clip with 2 frames with Stop(); on each. The file is loaded on _level5 so I tried this:
Code:
tellTarget (_level5.musicmc) {
gotoAndStop (2);
}
but instead of telling the musicmc movieclip to go to frame 2, it tells it to the main timeline to go to frame 2 and stop...What's the problem, when I use "Debug Movie", I can see the:
_level5
......._level5.musicmc (....... = spaces)
what's wrong, it seems to don't want to tell the MC to go to frame 2. I passed many hours on this simple d*mn thing and I really can't find out...
BTW, I'm using Flash 5
Urgent Loaded Movie Controlling Other Loaded Movi
I need this one done today!
I have two holder movie clips in my main .swf. One is selectloader, the other is normloader.
So selectloader.loadMov..... that works
In the select I load a selection with three boxes, the user chooses one.
When the user clicks one of the boxes I do
_root.normloader.loadMovie...
and it doesn't work!
So I created a new frame on the holder .swf for each of the three buttons so all the selectino has to to is go to another frame.
That works, but I also want each of the boxes to direct to a certain frame in normloader
so the problem comes back again
I can't get one loaded movie to control another loaded movie
I'm assuming it has to do with levels, and I need to do more then just _root.normloader.gotoAndPlay(3);
what do I have to do?
Play A Frame In A Loaded Movie From Another Loaded Swf
this is driving me crazzzzy []
i have the main movie which is 1 frame (containing the menu navagation for the site), under the 1 frame i have an MC (called scoot) that is 8 frames long and each frame has a stop action. I have set the site up to use browser back/forward button <script>
varPass=location.search.substring(1,location.searc h.length); //grab variable from cgiPass
if (parent.main.num == 1)
{parent.main.num = 2;}
else
{parent.main.num = 1;}
parent.main.controlFlash(varPass);//call controlFlash funct in main.html
document.write(varPass); //for testing purposes
</script>
the above script is a sample from the back/forward function/procedure.
Now... I labled the 5th frame of scoot as "map" and under the 5th frame, when it is played, is a button to open another swf, i'll call swf2. In swf2 is a button that i'm trying to action to go back and play map of scoot. But what ever i try nothing seems to work. Swf2 is loaded into level3 of the main movie and the loading action is in the first frame (and only frame) of the main movie. Someone please help me..... ???? Thanks a gekadrazillion in advanced !
Detect When Loaded Movie Is Fully Loaded
hey all,
I am trying to load an external swf into a target. when the swf is completely loaded, i want to execute the next set of actions.
Now here is the bit i'm stuck. I am trying to develop my flash websites so that no coding is done within the child swfs.
so i would assume some code like this would work:
_root.holder.loadMovie ("child.swf");
if(_root.holder.getBytesLoaded ==_root.holder.getBytesTotal){
_execute some other command;
}
However it doesn't work!!!
So is there a way to detect when a specific child swf has fully loaded into a target (not _framesLoaded please!) and then set a variable to allow some other actionscript to kick in?
please help if you know,
using mx btw
cheers,
Kd
Remove Loaded Movie After New LoadMovie Has Been Loaded
i need to unload a movie once the new loadMovie is fully loaded because once i click on my button to do so, my current loaded movie goes away & the screen is white until the new loaded movie is loaded. (i hope that made sense)
Can I Target A Loaded Movie From Another Loaded Movie?
Thanks for reading-
I have a movie that is loaded into my main timeline. Then I need to be able to use the buttons in that movie to target frames in another movie (i.e Use the buttons in one to tell the other loaded movie to goto another frame) seems like a simple task but I havent a clue how to talk to that other .swf since it has no instance name or anything?
Controlling A Loaded Movie From Another Loaded Movie
ok I am loading picture.swf into level 15 on my parent movie.
Other main text bodies are loading in level 10, when those file hit frame ten I want to tell the picture.swf movie to goto frame 2 or frame 3 and so on.
How To Use A Loaded Movie To Control Another Loaded Movie
First I have to admit that I am new to ActionScript. Now that that is out of the way....
what I am trying to do is minimize the size of the file by using externally-loaded movies into a main movie, and use one externally loaded movie (a Flash drop down vertical menu) to control the movement to different frame labels in the other movie:
I have one main movie as a website background: main.swf
In main.swf, I have 2 empty movie clips that I use as placeholders for other movies to get loaded into
Empty mc No. 1: menu_placeholder - for flash dropdown menu
Empty mc No. 2: content_placeholder - for flash content for webpage, has frame labels
My goal is that when I press the respective button in the menu (which is a loaded movie in placeholder mc No. 1) to change the content (by moving to the next frame label) of the loaded movie placeholder No. 2
I have used the loadMovie function to successfully load both external movies into the respective placeholders, both of which have instance names (vs using level numbers).
My issue is knowing what ActionScript to use (assuming that an onRelease inside the dropdown menu buttons in combination with gotoandPlay) in placeholder 1 (the dropdown menu) to control the movie in placeholder 2 to move from frame label and what is the correct format for the path between placeholder 1 and 2.
Thanx in advance
Unloading A Loaded Movie In The Same Loaded Movie
I have a popup window (separate swf movie) that loads up with its own close button in the main movie. What I need to do is script that close button to unload the whole movie on the level it's in (ie: level5). Basically, unloading its own self from the parent swf.
Every clip is named, but I can't seem to get the unloadMovieNum to work to close its own self.
http://www.prismaartist.com
Loaded Movie Won't Play When Loaded Into Mc
Hi flasheads. I have an interface that has a button that loads a swf of an infinite menu. When I try and load it into a movie clip it won't work. It won't scroll. When I load it into a level it works but I need to load it into a movie clip. If you have any insight please tell me. thanks group.
_root.brian.thanks
How To Control A Movie Symbol In A Movie Which Is Loaded Intro Another Movie?
HI guys,
I need help with some script. I have a movie, which is my main movie, and to which I load all other movies, like sound clips, other related movie which load on request. the problem is with the sound movie which I created, it's a separate file and it has a sound loop which starts and then if an button is clicked it stops, and then starts again if the buttons is pressed again. Also in this sound movie I have another movie symbol with audio bars animation which plays only when the sound is playing, and then it stops when the sound is stopped. It works fine with this code:
on (release) {
if (i==1) {
s.start(0,999);
i = i*(-1);
tellTarget ("/sound_bars") {
gotoAndPlay (1);
}
} else {
s.stop();
i = i*(-1);
tellTarget ("/sound_bars") {
gotoAndPlay (10);
}
}
}
...on it's own, but when it is loaded into another movie it works only partially, the sound stopps but the audio bar animation which you see here as instance name "sound_bars" is not working, it keeps playing even when the button is pressed. but like I said the sound stopps. So what I need to know is how to control that movie symbol which is inside a movie called soundloop1, which is loaded into my main movie. I know it's a level / tell target issue, but I just cannot figure out how to control it from another movie. If you can help me that would be greatly appreciated Thanks.
--
elfe.
Passing Variables From Loader Movie To Loaded Movie, Flash Satay Method
I like the Flash Satay method for its clean integration and standards-compliance, however there are still some things I can't manage the way I want to... I'm trying to implement a working method to pass variables from the loader movie to the loaded movie. As you may know, the Flash Satay method uses a small SWF file which uses a bit of code to load the desired movie, all in order to allow IE browsers to retain streaming capabilities when rendering Flash content through the <object> tag. Basically it's just a small file with the following AS2 code in the first frame:
loadMovieNum(path, 0);
This means the c.swf file is ENTIRELY replaced at level0 with the desired movie, and any variables that were passed to the loader movie turn to smoke.
I'm trying to generate a querystring using all other variables the loader movie receives, and pass that along with the filename for loadMovieNum. This seems to be working very well in most cases, but whenever there's a URL in the querystring (even URLEncoded), BAM, everything turns to lowercase... EVERYTHING... here's an example:
c.swf?path=banner.swf&myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER
this successfully loads banner.swf in place of c.swf, with the following correct querystring appended
banner.swf?myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER
If I try:
c.swf?path=banner.swf&clickTag=http://www.myurl.com/&ANOTHER=variable
this successfully loads banner.swf in place of c.swf, but I end up with lower-cased querystring (all of it!!):
banner.swf?clicktag=http://www.myurl.com&another=variable
what happens to my capital letters?? I need these to remain case-sensitive as there is no saying how the loaded movies are programmed. The generally accepted convention for "clicktag-enabled" banners is to use _root.clickTag as the link button's URL...
Even URL-encoding the URL doesn't change this
For reference, here's the HTML snippet and ActionScript 2 code I use:
---- html ----
<object type="application/x-shockwave-flash" data="c.swf?path=banner.swf" width="728" height="90">
<param name="movie" value="c.swf?path=banner.swf" />
<param name="FlashVars" value="clickTag=http://www.google.com/" />
</object>
Attach Code
----c.swf----
var queryString:String = "";
for (var i in _root){
if (i != "path" && i != "queryString" && i != "$version"){
if (queryString) { queryString += "&"; }
queryString += i + "=" + _root[i];
}
}
if (queryString != "") {
loadMovieNum(_root.path + "?" + queryString,0);
} else {
loadMovieNum(_root.path,0);
}
Edited: 10/01/2008 at 10:40:48 AM by Inzoum
Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Calling A _root. Variable Of A Movie Clip That Is Loaded Into Another Movie...
My problem is I have two movie clips that i'm working with. The child-clip has a variable and a movie at _level10 (the base of it) that I would like to call when the child-clip is loaded into the parent-clip. I tried _level10.variable but that did not work. And commonly _root brought me to the _root of parent.
How can I get around this?
P.S.
I know there was a way in Flash 4 that you could call instances backwards (//instance) or something like that. But I haven't used Flash 4 in a LONG while.
Plz Help
Load Movie And Jump To A Label In The Loaded Movie At The Same Time
I´m a problem very very importan for an exercise. I asked several times but I´m spanish and my English isn't very well so I think nobody understand me. This is the problem:
I'm a movie an I have to load other different whith loadmovie but I want to go to a label in the second movie at the same time too.
Anybody can tell me what can I do STEP BY STEP please? Thanks
Making Holder Movie Aquire Size Of A Loaded Movie
Kinda simple concept.
In Flash, external movie receives the properties of the movie it loads into, but I was surprised to find myself needing exactly the opposite.
When buttons are pressed, the Holder movie clip instance loads different external movies.
This Holder movie is connected to the windows style Scroll bar that should resize depending on the Holder movie height.
Therefore I need the Holder movie to acquire the height of the loaded movie so that the Scroll bar can resize accordingly.
I wonder if it's at all possible. Simple Movie1._y == Movie2._y doesn't seem to work.
[Edited by turbostas on 04-29-2002 at 06:58 PM]
Making A Loaded Movie Its Original Size In A Stretched Movie
lo all is it possable to make a loaded movie [via loadmovie()] display at its origan size in a stretched movie?
i tryed this:
Mheight = Stage.width;
Mwidth = Stage.height;
/// loads the movie into an empty movie clip
mainMovie.loadMovie("main.swf");
// moves the movie clip to the center and resises it to the original size
mainMovie._x = -0;
mainMovie._y = -0;
mainMovie._width = Mwidth;
mainMovie._height = Mheight;
but it doesnt load the movie for some reason! aggh! flash!!
any ideas how i can do this?
cheers guys
Making Loaded Movie Navigation Work On Main Movie
how do i make a movie(navigation with buttons) that has been loaded into one movie(main movie) control aspects of that movie through button actions.
for example: nav movie button making main movie go to a particular scene and load a movie in it.
|