flash help!!!
- Started
- Last post
- 36 Responses
- steadyvibe0
so that script doesnt work.. what am i doing wrong?
- unformatted0
on (release) {
movieclipname.loadMovie("outline...
f");
}then you have to make sure the movie is loaded first. you can't go to a frame that isn't loaded.
when you know it's loaded then
movieclipname.gotoAndPlay("outli...
- steadyvibe0
OHH ok.. we arent tlaking baout the same thing.. im not trying to load a movie clip.. just loading swf's on seperate levels.. and i need to go to a certain frome of an swf from one clikc of a button.
- unformatted0
i realize what you are trying to do dude.
so replace movieclipname.loadmovie with _level200.loadmovie.
- steadyvibe0
i though it would be something like :
load movie, level 200, frame 40
or something..
- steadyvibe0
ok then.. thanks anyways....
- ********0
- unformatted0
http://www.amazon.com/exec/obido…
moock ownz
- ********0
unformatted,
i'm not knocking Moock, his book is DEFINITIVE after all, but you need to sort of halfway understand what he says before you buy that book....
If you're getting stuck on loading a swf and going to a particular frame then it's probably too high brow, no??
- unformatted0
w0rd.
that's a good point man. but this dude said he already read his flash mx book inside out. so that's why i recommended that one too.
;)
- unknown0
That has to be the funniest thread I've ever read...
It was likme a scene from See No Evil, Hear No Evil!
HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA HA BONK!
- ********0
the truth in what people say is often reflected by the questions they ask.....
nuff said, well almost.....
another recommendation:
- unformatted0
please hold all laugther till the end.
thank you.
- honda0
you can not simply load a movie and go to its frame. you must first:
createEmptyMovieClip that will be a point of reference and also allow you to control loaded _mc.then you must determine what has been loaded into _mc before you can begin jumping around frames. code below:
//name of new host for loaded _mc
createEmptyMovieClip("navigation... 1);
//set placement of _mc
navigation._x = 0;
navigation._y = 0;
//load your .swf into the newly created _mc
loadMovie("nav.swf", navigation);
//_mc preloader
//essentially, wait til _mc is loaded...
//...delete this event...
//...and go to specified frame.
this.onEnterFrame = function(){
var l = navigation.getBytesLoaded();
var t = navigation.getBytesTotal();
if(l == t){
if(navigation._width > 1){
navigation.gotoAndPlay(2);
delete this.onEnterFrame;
}
}
};
//play _mc
/*
you are now able to control "nav.swf" through the _mc "navigation"
if you want to go to any area in the nav.swf timeline
simply type: navigation.gotoAndPlay("yourFram...
*/
navigation.gotoAndPlay(2);
- ********0
as long as you're not trying to load into level0 you don't need to do a createEmptyMovieClip()
no need to do it easy when you can do it difficult though ;p
- honda0
you can not load a movie with and target that same movie from the file that loaded it without first creating an _mc for it.
as i understood it, that was the question that was being asked.
if you want to load a movie, do whatever you want. if you want to control it, use code posted.