Welcome to WebmasterWorld Guest from 54.145.222.231

Forum Moderators: open

Message Too Old, No Replies

Going to a frame in a Movie Clip

Navigating through Symbols in Flash MX

   
6:51 pm on Oct 20, 2003 (gmt 0)

10+ Year Member



Hi,

I'm trying to get a Flash movie to move between frames of a Movie Clip, depending on the position of a scrollbar. But no matter what I do to the Movie Clip, I can't get it to react to my code - it just stays at the same frame.

I've got one scene, with two movie clips in it. One holds the three images I'd like to switch between. The other doesn't display, and holds code to watch the location of the scrollbars and translate that into a frame number for the "picture" movie clip.

Here's the code from the "controller" clip:

var slide = Math.round(_root.hScroller._x/275)+1;
_root.picture.gotoAndStop(slide);

That code is the same in both frames on the "controller", since it wasn't looping when it only had one frame.

This is the code in the "picture" clip:

unloadMovie(this);
loadMovie("front.jpg", this);

The image name changes for each frame.

Does anyone know why my "contoller" clip can't control my "picture"?

Thanks!
g.

5:24 pm on Nov 19, 2003 (gmt 0)

10+ Year Member



Bump?

Anyone have any advice on changing the frame of a child movie clip?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month