Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a movie clip from a button

Status
Not open for further replies.

simonWMC

Programmer
Dec 2, 2002
180
GB
Hi

I am trying to call a movie clip when the user clicks on a button.
I have attached

on (release) {
point1.attachMovie(respon_001,point1a,1);
}

to the button

point1 being instance name of maovie clip
respon_1 being linkage name of maovie clip
point1a being the new name (not sure what this is for ???)
and 1 being the depth

I suppose another way round it would be to simply go from the button to an empty frame with the movie clip in, but i would rather not do it that way

cheers
 
yo,

Why do you want to attach it. Would it not be possible to put the MC (instance name: respon_001) in the same frame of _root. Then you stop the MC at its frame 1, which is an empty frame. The content of the MC starts at frame 2. On the button you put the following code:

on (release) {
_root.respon_001.play();
}

Adrian
 
thanx Adrian

sometimes it seems we always try to do things the hard way.

I have used a tellTarget on frame 1, and put a stop on the first frame of the movie clip.

It now does exactly what i want.

thanx again
 
Good. Although tellTarget is not used in Flash anymore. The 'modern way' is the dot syntax. But that is a detail, I guess...
Adrian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top