Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Loadmovie And A Certain Frame



I would like to load a movie to level0 so it replaces my main movie but also jumps to a certain frame. I will need to do this on a few buttons.

here's the code on my button

on (release) {
loadMovieNum("products.swf", 0);
gotoAndStop(20);
}


my movie loads as it should but does not seem to be getting the command to goto frame 20.

Any solutions you could offer would be great.



Ultrashock Forums > Flash > ActionScript
Posted on: 2002-07-31


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Frame By Frame LoadMovie Function?
I past the last 30 minutes reading post's about external .swf, and jpeg's. Using the LoadMovie function:

i know so far You can load an external movie(swf) into your webpage in 2 ways - into a level and into a target. When loading into a target, you have an mc (movieclip) on your stage with an instance name. Then you need to give a button an action.

If i have a movie with for example 4 frames in layer 1 and a lot of layers for the design and stuff -

each frame of layer 1 have their own JPEG

each frame on layer 2 - have a button , that if the user click it, a
text appears in a box.

layer 3 - the list box

______________________________________

So if i have a JPG on frame 1 , how i can do that the next external jpeg or swf open in a place on frame 2, and no in the same frame?

Each JPG have a their own button, so i need that all the external jpgs were in differents frames...

That is possible? Or what i need to do whit this!

Please any help, suggestion, anything!

Thanks!

LoadMovie - First Frame Only ?
This is not a preloader question. I was wondering if anybody knows of any secret syntax or cunning workarounds to ask loadMovie to only load the first frame of an external .swf (one that has a stop action at the first frame but cannot be edited) until told to load the whole thing. Essentially I want to load a poster frame from a .swf video - if the user wants to see the whole movie they can click to commence the load otherwise they don't have to bog up their connection downloading video they might not want.

Many thanks in advance

Loadmovie Certain Frame
I have a menu in my main movie a load movie with several frames. how could I goto frames in my loaded movie by presing the buttoms of my menu?

I have try this:

on (release){
_level0.container.content.loadMovie(mymovie.swf);
_level0.container.content.gotoAndPlay(1);
}

but doesn´t work. Help please!

LoadMovie In A Frame
I have a LoadMovie action placed in a frame, rather than associated with an event. If I preload the main movie, does the other movie get loaded as well, or does it load when I play that frame?

Loadmovie + Frame #?
Is it possible to load a movie and have it link to a particular frame within the loaded movie?

Right now, I have:

}
on (release) {
loadMovieNum("movie.swf", 0);
gotoAndStop(3);
{

Thanks

MX LoadMovie One Frame
Hello,

I want to do a thumbnail viewer for .swf files.

Is there a possibility to load only one frame or a range of frames instead of the whole file to save memory?

peace.mate::

Loadmovie In Frame
i want to load a movieclip which is a menu, i want to load it on the stage on a level.... at a certain point in the timeline...i tried,doesn't work! help!

LoadMovie To Frame
I have movies loaded onto layers, default (0) main (10) other (11) layer 11 "other" loads over main and then unloads main. I would like for people to click to go back to main at a certain frame. So, "other" would load main on level 10 and the unload itself to reveal main frame ~~>(whatever). How would I do this?

LoadMovie On Frame?
I need help quick folks....

I'm using this on a the final frame of "ox1.swf" to open "ox2.swf"

loadMovie("ox2.swf",_level2);

This script is not opening "ox2.swf"

I need it on a frame, and not on a button. If it were on a button, I could get it to work. Can anyone correct this for me please...I know I'm doing something wrong.

I need this ASAP....last minute project...

THANK YOU

pug

LoadMovie On A Certain Frame?
Is there a way I can load a movieclip on a certain frame, and then specify actions for that frame?

Thanks.

Loadmovie To Particular Frame?
im using this script:

on (release) {
loadMovieNum("resource.swf",1);
}


works fine, but... how do i tell the movie to load to a particular frame in the target movie?

LoadMovie At Specified Frame?
This script is attached to a BTN within a SWF that's been loaded into CDpagesMC at the root at frame 11. I'm trying to get it to play until frame 15 then load the new movie. All paths are correct. (I can't use a frame action at 15 as there are more BTNs to script within the SWF, each loading different SWFs.)

on (release) {
this._parent._parent.play();
this._parent._parent.loadMovie("InvocCDpage.swf", CDpagesMC);
}

Anyone any ideas on this? Most appreciated...

LoadMovie In Another Frame
Hi,
I have a frameset that has a top banner and a main frame.

I was wondering if it's possible to have a button in the top (banner) frame loading a .swf with loadMovie in the other frame. getURL is not an option for me.

thanks!

LoadMovie At Frame...
I am trying to reload an external intro swf but not have it start at the beginning of the intro. When I try to use loadMovie("mySwf.swf", 85) it doesn't go to the frame number and starts over. It also plays on top of the movie I am trying to exit from.

I think I am doing it wrong as it thinks I'm telling it to play on level 85 and therefore leaves the movie in tact when the other is loaded. But when I simply use ("mySwf.swf"), to go back to the intro page (swf) it plays by itself and not on top of another. But it starts at the beginning which I don't want to do.

Any ideas?

Thanks!

Go To Specify Frame When Using LoadMovie
i have a problem, i want to go to frame 10 on movie.swf when using loadmovie, anybody can help???
loadMovie("movie.swf","movie_mc");

LoadMovie At Certain Frame
Ok so I have a navigation system set up that loads in a swf but I want it set up when i click on say Home it loads in frame 1 of the movie, Contact it loads in frame 3 of that movie, then when you click on About it will load in frame 2 of that movie, so say if someone clicks About it will loadMovie and go directly to frame 2 and skip frame 1, anyone know how this can be done?

On Frame Loadmovie Help
Ok.. so i have my buttons loading swf to an iframe but i want the home page swf to load on frame 30 so i put a keyframe on the 30th frame and the action script...


Quote:




loadMovie("home.swf", iframe, );




it doesn't work any help?

Loadmovie On A Certain Frame
Hi,

I'm sorry if this has been answered before. I've tried looking but with no joy - hence the question.

I have a button with actionscript written like this


Code:

on (release) {
_root.targetname.loadmovie("world.swf");
}



however when "world.swf" is loaded I would like to play this movie starting from the frame "start" and not the beginning. Is there a simple way of doing this?

thanks,

Tim

Loadmovie, Then Goto Frame?
Does this look like it would work?

loadMovieNum ("multimedia.swf", 2);
tellTarget ("_level2") {
gotoAndPlay (16);
}
stop ();




Is there any reason that the tellTarget line would be ignored? (that's the problem I'm facing -- everything seems to stop at line1, the loadMovie line)

THANKS!

LoadMovie And Having 2 Frame Rates
What I would like to do is this. I have a main movie. The main movies frame rate is 20. I would like to call another movie into it(i know this is possible). What I would like to know is if I can get the movie I am calling in to play at 8 frames per second instead of the main movies 20 fps. Is this possible. Thanks for your help.

LoadMovie And Specific Frame
hello
i know very basic actionscripting, and i have 0 programming skills (i use flash more for the animation aspect as i am a designer). it's been a long ride with this question, and i've searched everywhere for the answer including macromedia's support section, actionscript dictionary, and macromedia's own flash forum.

here is my quandry:
i have a slide show of 24 images which was started by my predecessor. the images (PNGs) were poorly optimized (if at all) and the final swf file is over 400K. i added a loader in the meantime since it is up on the company's website but it is still obviously a long wait on a 28 or 56K modem.

it was then suggested that i cut the file up into maybe 3-4 segments, and use the loadMovie command to load each successive movie into the swf. i experimented with just flat out loading the movie (all into level0) and it worked fine *except* (and herein lies the MAJOR problem) when the user clicks backwards through the loaded movies, file3 links to file2 but it goes to frame 1 of file2. it would be really nice if, when going backwards, file3(frame 1) went back to file2(frame 8).

i've gotten everything from"you need variables or maybe cookies" (which was described as "very complex") to several scripts typed out for me that just didn't seem to work. it was also mentioned that i would need to preload the segments because you can't jump to a frame which hasn't loaded yet (which makes a lot of sense) - but from an aesthetic point of view i'd like to keep the slideshow seamless, and not have a loading clip in between images. is there any advice/links/scripts/etc that you knowledgeable people could point me to? i would be forever in your debt.

thanking you very much in advance,
idarii

Loadmovie And Frame Problem
I'm making a help movie which will work w/ my main movie. Butr the help page has different frames for different help pages. How do I make it so that the loadmive loads a frame number

Loadmovie And Frame Problem
I'm making a help movie which will work w/ my main movie. Butr the help page has different frames for different help pages. How do I make it so that the loadmive loads a frame number

LoadMovie Into Specific Frame
anyone have any ideas on how to do a loadMovie (into an empty MC) and have it go immediately to a specific frame in that movie's timeline?

thanks, pdh

LoadMovie, LoadVariables And Go To A Frame?
Desperate - I have a very large Flash project to complete for my final multimedia degree and have tried for weeks to figure out a way around this to no avail.

The project is a piano tutorial that teaches how to play the basic chords in all major scales.

There is a main entry screen with 5 nav buttons that actually load each "sub screen" which are separate SWFs into level 0. This works fine.

The big problem is this:
Initially when the "Lessons" SWF loaded, the user could click a link to go to a particular lesson. I had the links in a dynamic scrolling textfield, where the actual text got loaded from an external .txt file. This is working great. But with this method, all 12 lessons MUST be separate .SWFs or HTML files. This is going to take tons of file size, since I have to repeat the images such as the keyboard, buttons (which could be made generic also), and other MCs in each of 12 lessons. There is no way to get one of these links to go to a particular frame in a loaded movie so I could genericize it, e.g., loadMovie, hostlessonSWF, frameL1, or something like that.

So I am experimenting with a sample, and trying to get a lesson link in the form of a button, (just non-scrolling, non-dynamic text) to load the host movie and then target a particular frame to load that lesson (maybe via attachMovie), but I can't get that to work either.

The bottom line is, how do you pass variables between loaded movies or URLs???

Thanks.

Can I Loadmovie And Jump To A Frame
When I use LoadMovie I end up at the start of the SWF I load. Is there any way to load it and jump to a specific label or frame number?

thanks

Mitch

Loadmovie & Frame Issue
Here's my situation:

I have a Flash movie on the home page of a site. The movie contains both an intro and the navigation for the site. The navigation has a simple animation that causes it to slide up to expose the buttons at about 6 seconds in to the movie. If the visitor doesn't want to view the movie or wait for it to load they can click a "view menu" button that activates the animation to reveal the buttons.

I am using 2 swfs, one for the intro(intro.swf) & a second at level 1 for the navigation(nav.swf). The intro calls the nav with loadmovie before the intro preloader begins(the nav is only 12k). The nav has a stop on frame 1. When the button to view menu is clicked it goes to frame 2 which exposes the other buttons to navigate the site.

Ideally I would like the nav animation (from frame 2) to begin after the intro has loaded about 6 seconds in to the movie IF the "view menu" button has not been pressed. If the "view menu" button has been pressed then the buttons are already exposed and there is no need for further action.

I have no idea how to do this. Any advice would be greatly appreciated.

Thanks!

LoadMovie Clip At A Certain Frame
Hello,
I wanted to know how to load a movie clip at a certain frame, but without preloading it from the beginning.

So I have a menu, the user clicks a button that begins a preloader to the sub-menu opening. What do I use

onRelease
loadMovieclip.my_movieClip

I want to have other movies within the main page to load at certain points.
Any help would be grrreat!
Thanks
PCRIDE_

WINTER IS COMMING

Loadmovie W/ Different Frame Rate
I'm using Flash 5.

the .swf I'm loading into a mc (via a button) has a different frame rate, (12), than my main movie, (24).

the audio is not corresponding w/ the visual.

my AS is currently:

on (release) {
gotoAndPlay ("tp_email");
loadMovie ("tp_e_mailer.swf", "placementM");
}


is the .swf being played at the main movies' FR, is there a way to prevent this, would it be better to load into a new level, 'getProperty'.....or what?

Loadmovie Frame Problem
Hi!
I'm loading a "movie.swf" movie with loadmovie(). This is working fine. ...but how can I tell it to load frame 250 or a labelled frame of "movie.swf" from other swf file??
thanks a lot

from spain

LoadMovie() And GotoAndPlay Certain Frame?
Ok, I have a main movie that has an empty movie clip with an instance name of LoadPress. I load an animation into that movie clip. Then there are six doors on that animation that spin with a press title on it, when you click one of the doors it loads another movie clip, Panel One, and unloads the _root(six doors animation). What I need to do after that Panel One movie plays is go back to the main movie and load the six doors movie into the empty movie clip(LoadPress)and make it go to a certain frame.

Is there a way to do this?

Thanks,
John

Loadmovie And Play A Particular Frame
Hi,

I am trying to play a particular frame (cap) of a loaded external swf (B.swf) in a movieclip holder (holder) on the main timeline. At the same time, I want to play frame "Navigate" on the main movie.

The code I have now is:
Button.onPress = function() {
gotoAndPlay("Navigate");
loadMovie("B.swf", "_root.holder");
_root.holder.gotoAndPlay("cap");
};

It loads the B.swf into holder and play Navigate at the main timeline, but the loaded movie does not go to the frame "cap".

Any help is highly appreciated.

Thanks

Using LoadMovie And Play Certain Frame
Is it possible to use the loadMovie command, and start playing the loaded swf at a certain frame?

LoadMovie To Specific Frame
how do I load an swf file into _level100 so that it starts at frame 10 rather than at its beginning?

Specifying Frame Labels When Using LoadMovie
Hi People!

Does anybody have any idea of how to target specific labelled frames when using loadMovie.

So for example (in pseudo code):

Load 001.swf into my current movie using my mc "moviePlacement" as a target and then inside 001.swf go to the frame labelled Page04.

Is this possible?

If so, can someone tell me how, you'll be a lifesaver!!!

Cheers

Deadhands

LoadMovie And Goto Frame
Is it possible to load an external movie file, but immediately jump to a frame other than one based on a parameter from the main file?

In other words, can I offer several options in the main file, all of which link to the external file, but to different frames in the external movie?

loadMovie() always takes me to frame one.

Thanks in advance.

LoadMovie On Frame Enter
Whats the code to load a movie when the timeline enters a frame?

Regards.

LoadMovie To Certain Scene And Frame
Is it possible to load an external movie to particular scene and frame and then play it/show it when its time comes?
I am trying to load it sooner so that user doesn't have to wait for it if it is a large file.

LoadMovie Than GotoAndPlay A Certain Frame
I am trying to make a button that goes to a different .swf and plays a certain frame. I thought it would just be:

on(release){
loadMovie("my.swf",3);
gotoAndPlay(60);
stop();
}

but, this won't work. Thanx for any help.

LoadMovie When Frame Loads?
I Must be an idiot!

i can't figure this out!

My root movie just has a preloader, it gets to frame 3 where the main movie is.

On this main movie, I have some buttons. When I click on the first button, it jumps ahead to frame 10.

When it gets to frame ten, I want it to load an external movie into an empty movie clip ... simple!

This is what i have on frame 10:

stop();

loadMovie ("samplesmovie.swf", "_this.emptyMovie");

What's wrong!!

LoadMovie To A Specific Frame
I am sure that this has been asked a bunch of times before.

But how do you load a movie and have it go to a specific frame number or label in the timeline.

How To Get To Labelled Frame With LoadMovie
hi, i'm having problems getting to certain frames within a movie. here is an example of my script;

on(release){
this.createEmptyMovieClip("movie", 0);
movie.loadMovie("cars.swf");
movie._alpha = 100;
}


basically i need to load the movie (cars.swf) then get to a framelabel within that movie called "motornation" but however i script it it keeps going to the 1st frame. can anyone help?

thanks

LoadMovie() Frame Number?
what is the best way to load an external swf through a blank movie clip and call a specific frame here is what my AS looks like so far <on (release) {_root.blankmovieclip.loadMovie ("pictures.swf');} > i wrote it from memory so there may be some syntax errors but you get it, i just want to open frame 6 of pictures.swf with a button or fram 3 or 7...easy enough i bet

LoadMovie Frame Number?
Hi,

I have setup a movie to load another move into a holder when a button is clicked, that works fine, what i really need though is to have the button load the movie and go to a frame number/label in the loaded movie,

How can this be done?

Thanks.

Loadmovie On Specific Frame
Once you extract my little zip file, open up the fla files so you can see what I'm talking about.

Basically, when you click on the button for "page 2" I would like the movie "top.swf" to load in the "barup" frame, and the "content.swf" to go to the "cubes" frame. That's all.
Any help would be appreciated!

Help Please LoadMovie Swf In Mc To Specific Frame
I'm desperate! I've read all the forums, searched the web and scanned through all of my books. But I can't seem to fix this problem.
I'd REALLY appreciate any help that anyone can give me. And I hope my explanation isn't too complicated (I'm not great at this stuff).
In Flash MX, I have a movie clip called fpo_mc, in my Index.fla file.
fpo_mc is the blank movie clip that my external ourpeople.swf file loads into.
I have two buttons in my index.fla file. One is called "our Promise" and the other is "Our People".
The Actionscript code for the "Our Promise" button works fine. It sends the playhead to a frame labled "bios", and then loads the ourpeople.swf in on its first frame (where it needs to be).
But the "Our People" button ALSO loads the ourpeople.swf on the first frame.
It's supposed to load it and go to the 16th frame (labled "bio1").
I've tried various codes, but nothing seems to work.
I can't figure out what I'm doing wrong.
Here are a few codes that I've tried:
on (release) {
_root.gotoAndPlay("bios");
_root.fpo_mc.loadMovie("ourpeople.swf");
_root.fpo_mc.gotoAndPlay("bio1");
}

on (release) {
_root.gotoAndPlay("bios");
loadMovieNum("", 1);
_root.fpo_mc.loadMovie("ourpeople.swf", 1);
_level1.fpo_mc.gotoAndPlay("16");
}

on (release) {
_root.gotoAndPlay("bios");
loadMovieNum("", 1);
_root.fpo_mc.loadMovie("ourpeople.swf");
_root.fpo_mc.gotoAndPlay("16");
}
I'm an actionscript dummy, btw.
Thanks in advance.
Pyrate

Goto Frame With LoadMovie
Hey Flashers...it's been a while since I've run into trouble but it was always gonna happen! I'm not much of an AS user to be honest...but this is one instance when I want to use it!

Is it possible to use the loadMovie function and specify which frame the movie begins at? Basically, let us imagine, I'd like to have two buttons that load one swf file. One loads the movie at the beginning and the other on frame 10. Possible or not?

Thanks in advance for the replies!!!

[F8] LoadMovie Frame Jumping....
How do you accomplish that?
I have a button on the first frame, which loads the external swf, and also goes to the 2nd frame where the mc container is positioned to nest the movie.

on(release){
_root.gotoAndPlay(2)
loadMovie("file.swf",mc_container)
_root.mc_container.gotoAndPlay(5)
}

Does anyone know how to establish a link with the external file's timeline to then jump to any frame inside the mc_container.

Loadmovie On A Specific Frame?
Hi there
I have a .loadmovie function on an swf. Let's call it main.swf.

On main.swf there is a "loader movie clip" called "contents" that loads other swf's. I'm just wondering if it's possible to modify the code below to load the new movie on a specific frame... Say frame 5?


Code:
on (release) {
contents.loadMovie("new.swf");
}
Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved