movies in flash
- Started
- Last post
- 6 Responses
- legspin
You must know I'm thick by now anyway so here it is...
I need to be able to control a mpg which is in a movie clip with a scroller so you can see the length of the film etc and play stop rewind buttons. But because its in a movie clip which loads the swf in I can't seem to control the scroller because of _root. Have fathomed how to play/stop/rewind but not how to control the scroller.
Has anyone got an example of what I'm talking about (does anyone know what I'm talking about?) Have looked on Flashkit but they don't seem to deal with my problem.
Please help...
- ganon0
so where are the movie controls?..in the _root timeline?...
- legspin0
within the .swf (also containing mpg) which is loaded into the movieclip.
- ganon0
so you have a path problem?.._root wont work once its loaded into another timeline, because then _root will refer to the main timeline...you will need to use relative paths in the external . swf (such as _parent) or set up a global variable....
- legspin0
onClipEvent (load) {
initx = _x;
left = _x;
right = _x+frameMeter._width;
top = _y;
bottom = _y;
}this is the actionscript on the main time line on the scroller.
Then:
on (press) {
_root.embeddedVideo.scrubbing = true;
startDrag("", false, left, top, right, bottom);
}
on (release) {
stopDrag();
_root.embeddedVideo.scrubbing = false;
if (!_root.embeddedVideo.stopped) {
_root.embeddedVideo.play();
}
}inside that scroller. Any idea what it should be instead of _root. ????
- ganon0
_parent
- legspin0
I'm giving up now and fucking work off!!!
Cheers for the info tho mate. Cheers.