Loading A Movie To A Certain Frame (script 2.0)
I'm still using action script 2.0
I'm trying to get a movie to load and open in a certain frame this is what I'm using just to load the movie itself
on(release){ loadMovie("magrittebuttonsLB.swf","lightbox2_mc") }
the movies is magrittebuttonsLB.swf and i just need it to open in different frames
my container where the movie opens is called lightbox2_mc
any help would be greatly appreciated!
FlashKit > Flash Help > Flash Newbies
Posted on: 07-22-2008, 09:19 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you
I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.
Here is my scenario:
I have my main movie (_root)
In the actions layer of my main movie I have:
Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:
Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:
Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses
Frame By Frame Loading Movie
I need to have a loading movie advance in relation to the frames it has loaded. I can get a "Bytes" preloader to work when I'm loading a movie, but when I have miltiple frames in the timeline it only wants to load the first frame then try to play and load as it goes. I used to
use "IfFrameLoaded" on the odd frames with a "GoTo" on the evens to advance the loading movie (Flash5). Anyways, sorry it's so long. If someone can help me it would be greatly appreciated.
Loading A Movie (within A Movie) & Assigning A Random Start Frame
Flash 5
Hello everyone.
After taking almost a year off from web programming Im relearning flash :0
I haven't gone past the basics with Flash 5 and have a couple projects coming up.
The routine I wish Flash 5 to do should be something simple to explain I hope for a vetrin user.
1) Flash Movie A (180 x 60) loads Flash Movie B (60x60) into left most space (say slot 1) and then randomly tells Flash Movie B to start at a particual frame (random(8). Each frame is a simple image with an actionscript Stop; command).
2) Flash Movie A fades in 1st Flash Movie B at slot 1.
3) Flash Movie A loads another Flash Movie B in the middle space (slot 2) and once again randomly tells Flash Movie B to starts at a particual frame (random(8) (just a static picture like in 1).
3) Flash Movie A fades in 2nd Flash Movie B at slot 2.
4) Flash Movie A loads another Flash Movie B into the far right space (slot 3) like the others (tells Movie B which random frame to start at).
5) Flash Movie A fades in 3rd Flash Movie B at slot 3.
My feeble mind is having a problem telling:
1) Where to tell Flash Movie A to position each load of Flash Movie B.
2) How to tell Flash Movie B I wan't it to start at a random frame.
I have the fade in and fade out set
also.... slightly more complex.. Does anyone have experience in doing somethnig similar to this and setting a variable to define which random numbers were selected for each slide so they will not repeat. (i.e. after loading slot 1 it will also define 'slot1' at the same time it creates that random number for slot1 and so on).
TIA
Dan
Help Needed With Loading A Movie (and Frame Number) Within A Movie
i would like to make a function (?) that checks a variable constantly throughout a movie.
the function would check a variable (mood) which is initialised at 50.
depending on what mood is (checked by using an if statement?), i would like to load a movie that is placed within my main stage, specifically a frame (labelled something like "Happy", "Sad", "Normal").
i have no idea where i would put the function, having sort of only just worked out how to initilise the value for "mood", no idea how to load a movie within a movie to a specific frame number, and no idea how to write that all in an if statement.
any light shed on this would be appreciated like you'd no believe (project is due in 48 hours).
thanks in advance.
Loading A Movie At A Certain Frame
can anyone help me on how to load a movie at a particular scene? i have a movie that loads when the user clicks a button, but i need it to load at frame 5.
thanks.
Loading Movie And Go To Frame
Hi all,
Her's the deal !
I've got a movie... with buttons on it.
As I press one of the butons, I want to load another movie and go to a frame of that specific movie..
I know how to load a movie with a buton, but I can't make it go to a specific frame.
I was thinking of setting a variable in the first movie, and using that variable to give the position of the frame where i want to go !
here's the code.. that I set !
----------------------------------------------
on (release) {
tellTarget ("../") {
gotoAndPlay ("fin");
loadMovieNum ("dialogue.swf", 2);
}
}
-------------------------------------------------
What this code does, is go to the last frame of the curent movie, and then loads, the seconde one.
Thanks all, if ever you can help me !!
Good flashing =)
Loading A New Movie At A Certain Frame?
Hello,
I am loading a new movie in a frame inside an html page when I click a button in a movie in another frame of the html page. This is easy, I actually use the getUrl command and just load the movie as a web page.
However, I would like to be able to load the movie and have it start at a different frame within the movie based on different button clicks within my other movie. I hope this makes sense... I have not been having much luck with Flash or with this board.... I hope my questions are not too vague. I can elaborate if necessarry.....
Thanks
Loading A Movie And Going To A Certain Frame
Hello all....
If i want a movie to load when i press a certain button but i want it to go to a certain frame within that movie how would i do that. For example if I have
loadMovieNum("test.swf", 1);
gotoAndPlay(10);
but I need that gotoAndPlay(10) to refer to frame 10 in the test.swf not in the main movie. Is there any way to do this within the main movie?
Loading Movie On Frame Other Than 1
i can't for the life of me figure out how to get a movie to load on a frame other than 1. what i mean is, say on a menu you have a button with an over state. after you click on the button it takes you to a different html page and loads my swf on frame 2 instead of 1. any help is appreciated
Loading Movie At Frame...
I have several .swf files connected together... meaning at the end of each timeline it loads the next swf file.... this runs fine. Ive put buttons in each .fla file ... so my fast forward works great too...
So im trying to rewind.. and when it reaches to beginning of the .swf it stops...(obviously because previousFrame goes to the previous frame of THAT timeline) so i put a new keyframe in the first frame of the timeline and wrote
this.loadMovie("previous_movie.swf"); but i want it to go to a specific frame
my question
Can i load a movie at a specific frame, if so can someone show me the code? or direct me where i can find it?
Movie Loading On Frame 0
I searched for answer but haven't been able to find one yet.
Any help would be great.
I have a movie with a simple animated mc for a preloader and the script;
ifFrameLoaded ("end") {
gotoAndPlay("items");
if (false) {
gotoAndPlay("load");
}
}
on the 2nd frame. When I test the movie, I see nothing and then a blip of the preloader and the main movie. In the bandwidth profiler under state, I see that the movie is completely loading in frame 0. wtf?
Sorry, but I'm totally baffled.
[F8] Loading A Movie Then Going To A Frame (please Help)
I feel like such a dummy for not being able to figure this out but, i guess thats why I am here. So this is what i have so far:
I have a circle (lets call it wheel.mc) that is broken down into 6 even buttons (btn1, btn2, etc). the circle spins to a button when it is pressed. when the button finally reaches its position i want a SWF file (same file everytime) to play and then go to a specific frame based on what button is pressed.
This is the code i have so far.
Code:
stop();
function rotateWheel(num) {
wheel2.onEnterFrame = function() {
if (wheel2._rotation != num) {
if (wheel2._rotation < num) {
wheel2._rotation += 5;
} else {
wheel2._rotation -= 5;
}
} else {
delete this.onEnterFrame;
}
};
}
wheel2.btn1.onPress = function() {
rotateWheel(0);
};
wheel2.btn5.onPress = function() {
rotateWheel(140);
};
wheel2.btn6.onPress = function() {
rotateWheel(60);
};
wheel2.btn2.onPress = function() {
rotateWheel(-50);
};
wheel2.btn3.onPress = function() {
rotateWheel(-100);
};
wheel2.btn4.onPress = function() {
rotateWheel(-160);
};
Each button inside the MC has this code inside:
Code:
on (release) {
_root.gotoAndStop(6);
}
How do i make the action script tell these buttons to play a SWF first then go to frame (whatever). If someone can also help me figure out how to make the clip transition into frame or vice versus, instead of a rough drop into the frame.
Thank you gods of flash.
PS: can somone please tell me a place where i can learn through tutorials about designing several diffrent page transition (with actionscript). Thanks
Loading Img Src Into Movie Frame
Hi all,
This might be really simple , but for the life of me I cannot see how to do it.
All I want to do is load a predefined hit coutner from my hosting service into a box on my site - the hit counter is defined as a linked img src reference: <img src=/tinc?key=nZOEpLjD>
I have set a box on the desired page and location in the Flash movie and named it as Counter_Box. This is the script in actions that I use to call the Hit Counter into the Coutner_Box:
loadmovie("<img src=/tinc?key=nZOEpLjD>",Counter_Box);
stop();
When the page loads, it just removes the Counter_Box and no hitcounter appears.
For a demo, look at the contact page of the site: www.pumaknight.co.uk. The Hit COunter should be in the bottom left of the screen.
I do hope you can help.
Thanks in anticipation,
Michael HText
Loading A Movie On FRAME 1 ?
Hi,
I used a Tutorial from Senocular to preload my movies internaly.
My problem is simple:
The tutorial works only with onPress:
btn_360.onPress = function() {
startPreload("load/answer.swf");
};
What I would like to do is to make a first movieclip load in the beginning without having to click any button or do anything. How can I starPreload automaticaly ? Here is the code on frame one:
----------------------------------------
btn_360.onPress = function() {
startPreload("load/answer.swf");
};
// this function begins preloading a swf url
function startPreload(url){
// assign the url to the preloader
// it will load it internally
preloader_mc.url = url;
// set destination movie clip for loaded content
preloader_mc.target = content_mc;
// begin the transition by playing frame 2
preloader_mc.gotoAndPlay(2);
}
Loading A Frame Within A Movie?
Can anyone suggest how I can navigate to frame after selecting a movie. I can currently open a new movie in my container but can not navigate to a particular frame once this is done.
Code I am currently using:
on (release) {
_parent.content.loadMovie("wandm_detail.swf",1);
}
Any advise would be helpful!
Go To A Certain Frame In A Movie I'm Loading
I'm loading firstFloor.swf into an empty movieclip (photoMovies) in my main movie, but how do i tell it to go to a certain frame within firstFloor.swf. Here's the code:
_root.photoMovies.loadMovie("firstFloor1.swf",1);
Can any one help?
Loading A Frame From Another Movie
ok, this is something i have done many times before, but it has been so long since i have needed to, that i have kinda forgotten how.. and i lost all my previous files last year (long story)..
ANYWAY.. what i am wondering is, how to load a frame from another movie.
i know how to load a frame from the current movie you are in, but i need to, for example, be able to click a button and it to load frame 3 from another movieclip.
any suggestions?
Loading A Specific Frame In Different Movie
i have 3 different swf files. flash1.swf, flash2.swf and flash3.swf. How can i make a button in flash1.swf that will load a frame 5 of scene 17 in flash2.swf? please help, thanks
Loading Movie To A Specific Frame
Hi,
I have a movie "first.swf" that provides a jumping off point for three other movies.
My Goal: When the user selects one of the three movies in the first.swf by clicking on a button, the first.swf is unloaded by the second.swf selected. When that second.swf finishes playing it automatically is unloaded by the return of the first.swf, but now at a specified frame.
My Trouble: Is the script placed at the end of the second.swf for the automatic reloading and navigation to a particular frame of the first.swf. So far the first.swf reloads perfectly, but it starts playing from frame number one, totally ignoring line 3.
Script placed in the last frame of the second.swf:
1. unloadMovieNum (0);
2. loadMovieNum ("first.swf", 0);
3. gotoAndStop (50);
All help will be greatly appreciated.
Corl
Movie Loading A Frame In _root
I have a movie clip called nagication, when you click on a button, it takes root to another frame which has a movieclip on it. This is how my navigation is set up, you click a button and it goes to a frame with the specified movie clip on it.
Now I have a stop command on every frame on my _root. Now I can make the button say
Code:
_root.play()
and that works fine, but it keeps going throughy each frame and stops, click again and it goes to next one and stops.
I CANNOT, however, get it to go to a certain frame. I tried using the gotoandplay and gotoandstop functions but to no avail, it refuses to goto another frame. I figure its the stop() commands on my _root that are preventing this. How can I accomplish this?
Also, when I get it working, how can I make it not goto a frame again if its already there? I figure an if statement before it goes to the frame like
if _root is on frame 6, stop(), else goto frame 6
I'm not exactly sure on the syntax of the if statesments for checking which frame _root is on though
Loading Movie With Different Frame Rate?
As part of a portfolio I want to show past work done in Flash by loading a .swf into my main movie. But the frame rates are different. The movie plays twice as fast now. What's the best way to resolve this? Load the .swf into a pop-up HTML? Any advice appreciated.
Thanks,
Lou
www.plutonomy.org
Loading A Specific Frame Of A Movie?
I have a website that is almost entirely in flash. I have separated each page of the site into it's own flash animation.
I'm wondering if it's possible to load a specific frame of an animation or does the loadMovie option just load the first frame of the movie?
In other words, in the about section of this website (about.swf) there is a button to view info about a book. The information about the book is in a separate animation that is in products.swf, Scene 3, frame 1.
Can a getURL action or LoadMovie action get the user to the products animation, scene 3, frame 1??
Hope I'm describing this correctly!
Thanks!
Zoe
Loading Movie To Specific Frame
I have split a file into three movies (because of size) which use back and forward buttons. Using the forward button from one to the next is not a problem because it starts at frame one, however, using the back button is a problem because it starts at frame one. Is there a way to tell it to load the movie and start at a specific frame label?
Loading An Swf Into A Movie Frame Instance
hey guys,
I have created a simple picture frame (its a movie with an instance name of frame)
I want to load specific swf files into the frame by clickin on buttons..
is this possible.. and how do i do it ?
cheers
vamps
Loading A Movie To A Specific Frame...
Is it possible to load a movie to a frame???
I'm making a website that loads movies into empty movie clips.
I want to know if I can tell a movie to load... and then go to a frame number... all with one command...
the code i'm using is this...
contents.loadMovie("movie.swf");
Is there any code that can load the movie and send it to a specific frame??? I don't think it is possible... but I know so little in the world of flash... so maybe it is...
Thanks for the help
- Mikey
Loading A Movie To A Specific Frame
Hi,
I would like to know if it is possible to load a movie using loadMovieNum, and then designateing it to go to a specific frame within the movie.
Kudos!
Loading A Movie To A Specific Frame
Hi,
I would like to know if it is possible to load a movie using loadMovieNum, and then designateing it to go to a specific frame within the movie.
Kudos!
Help With Loading A Movie To A Specific Frame
Hi everyone,
This is my first post on FlashKit so I hope someone can help.
I am creating a board game for a client in Flash MX 2004, I can get the single player version to work flawlessly, but the problem occurs when I'm trying to make player 2 work.
Each player and the spinner associated with it is it's own movie clip. The board for the game is the main timeline. There are also independed animated movies for each space on the board that each player MC calls up depending on its position.
I can make the game switch back and forth between player 1 and 2 but the issue I keep running into is that when the switch occurs the movie clip for each player starts over at frame one.
The question is how do I store the current frame for each movie and have it recall that frame when the other players turn is done.
I thought of using a variable such as:
onframe = getProperty("MCname", _currentframe); MCname being the name of the movie clip.
But how do I recall that variable and make each player MC go back to the particular frame, which will change with each turn.
This is my final hurdle on this game so any help would be greatly appreciated.
Thanks in advance.
Mkorbar
Loading Movie W Specific Frame
Is it possible to load a movie telling in which frame you want it beggins from?
I have 3 buttons loading the same .swf, but I need that this .swf beggins in diferent positions ( frames ) deppending on which button you press.
- button 01 loads ex.swf starting play from frame 1
- button 02 loads ex.swf starting play from frame 20
- button 03 loads ex.swf starting play from frame 30
If you know this please tell me the code.
Tks a lot
Loading Movie After Frame Played...
Terrible Terrible Title...
Here's the problem: I have one area on my main movie for the content of the website, it is easily accessed through _root.content. I have a movie (home.swf) loaded into "content".
On my main page, I have a button and I want it to play a part of home.swf and then when that is finished, load a different movie into "content". I have been successful in the first part but not the second.
Here is the working script for the button to make "main.swf" play a certain frame:
on (release) {_root.content.gotoAndPlay("next");}
This makes the current movie (home.swf) loaded in "content" to play from the frame labeled "next."
What I want now is that when the movie in "content" gets to the frame labeled "end", I want it to tell it to:
_root.content.loadMovie("bio.swf");
But I don't want to put the script in the movie loaded in "content," I want to put it in the button. Is there a way to do this?
Thanks a bunch,
Rob
Loading A SWF..into A Certain FRAME Of A Certain MOVIE CLIP
I am making a website with Flash 8. In this website, there are three navigational buttons. My goal is to have the buttons, when pressed, open a little section (that acts as a stage, so to speak, for content specific to the button just pressed) on top of the layout (this new overlaying section is a movie clip). Now, when the button is pressed, an animation will occur, and this new stage-like movie clip will fold out into view. On the last frame of this 'folding out' animation, I would like an external pre-created .SWF file to load and be positioned somewhere in the middle of the stage. This .SWF has already been created and is the content of the page.
If, for whatever unimaginable reason, this information is too vague, please do not hesitate to have me clarify on a specific area that is unclear to you.
I do so appreciate your time and patience. Please remember just how very important this is to me, as I have a checkpoint for my independent study class that now draws near (the website is only a small part of a very, very ambitious graphic / fashion design showcasing project). Thank you!
Loading Movie To Random Frame
I am having trouble with my script(AS3) that loads a random frame when the movie starts. On frame 1 I have a preloader that takes you to frame 2. On frame 2, I have an Array that is suppose to choose from 2 frames randomly to start the movie. Well, it works fine with 3 frame numbers in my array, but with 2, it always starts on the the first frame number in the array.
Here is the code:
Attach Code
Frame 1 Preloader:
this.addEventListener(Event.ENTER_FRAME,checkProgress);
function checkProgress(_progress:Event):void
{
var bytes_loaded:Number=_progress.target.loaderInfo.bytesLoaded;
var bytes_total:Number=_progress.target.loaderInfo.bytesTotal;
var percent:Number=Math.round(bytes_loaded/bytes_total*100);
info_txt.text=percent.toString()+' %';
if(percent>=100)
{
this.removeEventListener(Event.ENTER_FRAME,checkProgress);
this.gotoAndStop(2);
lets_go();
}
}
function lets_go():void
{
trace('ready to start');
}
Frame 2 Random Array:
var frameStarters:Array = new Array(2,21);
var fs:Number = Math.floor(Math.random() * (frameStarters.length));
gotoAndPlay(fs);
Loading Movie In A Specific Frame
Hi everybody, i need to load a movie into my container, i'm using this AS:
_root.createEmptyMovieClip("container", 1);
loadMovie("home.swf", "container");
container._x = 280 ;
container._y = 100 ;
it's work ok, but i need to load the movie on frame 3. Because on frame 1&2 i got a preloader.
Can somebody tell me how can i modify the AS above, to load the movie on frame 3.
Thanks!
Loading A SWF..in A Certain FRAME Of A Certain MOVIE CLIP
I was told to do something like this...and it doesn't work at all.
Code:
this.onEnterFrame = function(){
this.productmenuu_mcloadMovie("thumbnail2.swf",1);
}
so what's the correct way? Also, how do i position where the swf loads?
thanks for your help! it is much appreciated.
Loading Scene/frame From Another Movie
Hi,
I am having trouble. Can someone tell me if this is possible.
I want to load a specific scene and frame from another movie.
Example,
I want MovieA.fla to load scene2 frame 26 in movieb.fla.
Thanks,
Cherry
Loading A Movie To A Specific Frame
not been here for a while so I hope someone can help me
what I am trying to do is load interface_introtst.swf to a specific frame.
but i can seem to get it to go to frame 26!
here is my code so far
Code:
on (release) {
unloadMovie(1); //unload level1 swfs
loadMovie("interface_introtst.swf", 0);
preloadMovie = setInterval(preloadTime, 10);
function preloadTime() {
loaded = _level0.getBytesLoaded();
total = _level0.getBytesTotal();
if (loaded>0 && loaded>=total) {
clearInterval(preloadMovie);
_level0.gotoAndStop(26); // got to frame 26 of interface_introtst.swf.
_level0.mountains.walkingsprite.staticsp._visible = true;
_level0.mountains.walkingsprite.spriteani3._visible = true;
_level0.mountains.walkingsprite.spriteani2._visible = true;
_level0.mountains.walkingsprite.libsprite._visible = true;
_level0.mountains.walkingsprite.staticsp._visible = true;
_level0.mountains.walkingsprite.spriteani4._visible = true;
_level0.mountains.walkingsprite.spriteani3._visible = true;
_level0.mountains.walkingsprite.spriteani2._visible = true;
_level0.mountains.walkingsprite.libsprite._visible = true;
_level0.mountains.walkingsprite.staticsp.gotoAndStop(1);
_level0.mountains.walkingsprite.spriteani4.gotoAndStop(1);
_level0.mountains.walkingsprite.spriteani3.gotoAndStop(1);
_level0.mountains.walkingsprite.spriteani2.gotoAndStop(1);
_level0.mountains.walkingsprite.libsprite.gotoAndStop(1);
}
}
}
thanks devshed users
Loading A Specific Frame In Another Movie-clip
Hello,
I have the main menu in a movie-clip called first.swf. Then I have the whole site content in another movie-clip, second.swf. Depending on what choise the visitor makes in the menu, I want a specific frame of second.swf to be loaded.
Is this possible, and if so how is it easiest achieved? I don't want to split up second.swf into several smaller swf:s.
Anny suggestions are sincerely appreciated!
Pre-loading Mother Of A Movie Into Spceific Frame...
Hi,
My problem for the day is trying to load an external swf file into my movie. It is a big file and I don't need it to appear on the screen until the 65th frame.
If the connection is fast you only wait a few seconds to see the movie on frame 65, however if you are using dial-up it is freakin' slow!
Is there any way to load the movie while the other frames are playing without it popping up (on fast connections) before frame 65?
A long plea for help, sorry...
Loading A Specific Frame Of An External Movie
Hey all,
I have sorted out how to get the exernal movie to load into my main file but I cannot get it to go to frame 2 of the external swf. Any advice on how to do this?
thanks so much!
Loading Frames From A Different Movie Upon Frame Play
i'm trying to get flash MX to play a movie, when it gets to the end of the movie there should be an action on the last frame that makes it go to a totally different movie and then play that movie (in the swf document) i know how to do this in various ways but only when you use the "on" event thingy, like on over or on click, i want this to happen simply when the last frame plays, and gotoAndPlay doesn't apply for a different movie
can anyone help?
thanx
Loading Frame Images For Movie, Most Effective Way?
Ok, basically i am just wandering what everyone thinks if the best way to load a movie.
I am learning OpenGL, and hopefully DirectX soon as well, and in some of my projects i am going to be displaying them on my website. I am going to be taking a frame by frame screen**** of my OpenGL movies to import them into flash, and i was wandering what everyone thinks is the best way to do it?
In my understanding i have two options,
1.) Take my Fla and load them all into it by hand.
2.) Make it more dynamic and loadthem at runtime via ActionScripts LoadMovie Command.
Now it would be easier on me to do #2, but i am not looking for ease. I am looking for the most effective in FPS at Runtime, Load Speed, and obviously tied into Load Speed, the File Size for people to load.
So which would be faster, better, smaller, ect.?
Thanks to any replies!
[F8] Loading Movie Into Empty MC Renders 1 Frame
The button:
Code:
on(release){
if(_currentframe == 2){
gotoAndStop(3);
empty_MC.loadMovie("intro.swf");
}
else if(_currentframe == 3){
car.gotoAndPlay("s4");
csmpr.gotoAndPlay("s4");
gotoAndStop(4);
}
else if(_currentframe == 4){
slide4.gotoAndPlay("t1");
}
else if(_currentframe == 5){
slide5.gotoAndPlay("t1");
}
}
If the frame == 3 the movie should load into the empty movieclip and play... but instead, it's loading it (so I know it's working) but it only renders the first frame in the loaded .swf and then stops...
SetInterval To Delay Movie From Loading On First Frame
I'm pulling in a external .swf but I don't want it to load on the first frame... I'd like to delay it using setInterval... this is what I have so far
var ad_container_mc = outer_container_mc.createEmptyMovieClip("ad", outer_container_mc.getNextHighestDepth());
ad_container_mc._x = 600;
ad_container_mc._y = 30;
ad_container_mc.loadMovie("ad.swf",ad_container_mc );
any thoughts?
Help Loading A Random Frame For A Movie Clip
the main movie is 5 frames. i have a movie clip on every frame of the main movie. this movie clip is the background for the main movie. i want this movie clip to go to a random frame every time you go to one of the frames.
now i was able to have this movie clip go to a random frame when loaded by making a blank frame at the beginning of the movie clip with this code
Quote:
goToAndStop(random(4)+2);
but when i went to a different frame on the main movie the movie clip would just stay on that frame. i need the movie clip to go to a random frame every time one of the main movies frames load. the purpose of this is to have a random background every time a frame on the main movie is loaded.
can anyone help me with this. thanks.
Loading And Going To A Specific Frame In A Loaded Movie
Hello, please bear with me as I explain what I'm trying to do for a travel website:
On my main timeline, I have two frames, 1) preloader; 2) the website movie clip.
The website movie clip has 5 frames, one frame per page (e.g., fr. 1= Home; fr. 2 = Destinations; fr. 3 = FAQ, etc).
On fr. 1 of the website movie clip, I have a short cut to go to different parts of fr. 2, which is Destinations. For example, I have a list of Destinations to click on from the Home page, like "Africa."
All the contents of fr. 2, the Destinations page, is dynamically loaded. I have a separate swf called "destinations.swf" containing about 50 different locations, assigned to 50 different frames. (i.e., fr. 1 = Hawaii; fr. 10 = Norway, fr. 30 = Africa, etc).
Once you are in a Destination (e.g., frame 10 of "destinations.swf"), I call out to different pieces of contents onto the info boxes I have for each destination. For example, going to fr. 30, Africa, will call out to "africafacts.swf" and "africamap.swf").
The Destinations Page (fr. 2 of website timeline) also has the destinations shortcut, and all the above functions work properly without problem. What I can't do is make the shortcut from the Home Page (fr. 1 of website timeline) load specific frames of an external file, "destinations.swf".
Note: I'm not using multiple Scenes or Levels - should I be? I'm a designer and never really learned how best to use Scenes or Levels; have done without using them this whole time. (gasp?)
Here's what I want to do.
When you click on "Africa" from my Home page, I want it to:
1) go to Fr. 2 of the website movie clip
2) load "destinations.swf"
3) go to the "Africa" frame number (e.g., fr. 30) on "destinations.swf"
I can go to Fr. 2 of the website movieclip, load the "destinations.swf" just fine. I can't get the loaded movieclip to go to a specific frame according to each destination (e.g., fr. 10 if Norway was clicked on the short cut; fr. 30 if Africa). I can only get it to load and play the frame 1 of "destinations.swf."
I'm not sure if I'm phrasing this correctly, but how do I call out/load a specific frame number on an external movieclip?
Sorry for the meandering explanation - I have a feeling that my architecture is wack, but I'd really like to avoid having to reconstruct the basic structure of the site.
Thank you for your time and help in advance!
Macgirl
Loading And Going To A Specific Frame In A Loaded Movie
Hello, please bear with me as I explain what I'm trying to do for a travel website:
On my main timeline, I have two frames, 1) preloader; 2) the website movie clip.
The website movie clip has 5 frames, one frame per page (e.g., fr. 1= Home; fr. 2 = Destinations; fr. 3 = FAQ, etc).
On fr. 1 of the website movie clip, I have a short cut to go to different parts of fr. 2, which is Destinations. For example, I have a list of Destinations to click on from the Home page, like "Africa."
All the contents of fr. 2, the Destinations page, is dynamically loaded. I have a separate swf called "destinations.swf" containing about 50 different locations, assigned to 50 different frames. (i.e., fr. 1 = Hawaii; fr. 10 = Norway, fr. 30 = Africa, etc).
Once you are in a Destination (e.g., frame 10 of "destinations.swf"), I call out to different pieces of contents onto the info boxes I have for each destination. For example, going to fr. 30, Africa, will call out to "africafacts.swf" and "africamap.swf").
The Destinations Page (fr. 2 of website timeline) also has the destinations shortcut, and all the above functions work properly without problem. What I can't do is make the shortcut from the Home Page (fr. 1 of website timeline) load specific frames of an external file, "destinations.swf".
Note: I'm not using multiple Scenes or Levels - should I be? I'm a designer and never really learned how best to use Scenes or Levels; have done without using them this whole time. (gasp?)
Here's what I want to do.
When you click on "Africa" from my Home page, I want it to:
1) go to Fr. 2 of the website movie clip
2) load "destinations.swf"
3) go to the "Africa" frame number (e.g., fr. 30) on "destinations.swf"
I can go to Fr. 2 of the website movieclip, load the "destinations.swf" just fine. I can't get the loaded movieclip to go to a specific frame according to each destination (e.g., fr. 10 if Norway was clicked on the short cut; fr. 30 if Africa). I can only get it to load and play the frame 1 of "destinations.swf."
I'm not sure if I'm phrasing this correctly, but how do I call out/load a specific frame number on an external movieclip?
Sorry for the meandering explanation - I have a feeling that my architecture is wack, but I'd really like to avoid having to reconstruct the basic structure of the site.
Thank you for your time and help in advance!
Macgirl
|