|
-
problem with path - parent? root? level?
I'm having trouble determining a path. I have a movie clip (playSlideshow) that's supposed to control the starting and stopping of a slideshow. It works perfectly when I test it as a standalone, but when I load it onto Level1 of the main movie, it stops working.
The movie clip (playSlideshow) contains two frames:
1st frame:
on (release) {
this.nextFrame();
}
on (release) {
_parent.peelProperty.startAutoPlay(3);
}
2nd frame:
on (release) {
this.prevFrame();
}
on (release) {
_parent.peelProperty.stopAutoPlay();
}
The movie clip lives on the same timeline as the instance (peelProperty) that it's supposed to start and stop. Since it works as a standalone, I'm guessing that "_parent" is the problem - what should it be?
Here it is as a standalone:
http://1144-90403.peelroom.com/1br.swf
Here it is on level1 - click "one bedroom" to load it:
http://1144-90403.peelroom.com/index.html
Thanks,
julia
Last edited by wywalk; 06-13-2006 at 12:38 PM.
-
Flashmatics
..maybe a scope issue.. in the first frame of the external movie you are loading, put the following code (before any other actions) :
(when u load an external swf into a moveiclip, then _root corresponds the main movie timeline)
Code:
this._lockroot = true;
Last edited by silentweed; 06-13-2006 at 12:46 PM.
-
Thanks, silentweed, but that didn't work.
I added the script you suggested into a blank first frame on the movie that was being loaded onto Level1. When that didn't work, I tried changing _parent to _root - and still, it works fine as a standalone, but not when it gets loaded.
Is there a syntax that will specify that the instance being affected is on Level1?
Julia
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|