Hi every body
I made motion of movie clip iside it a button.
the motion is like this:
from 1 to 10 then stop
when you click the button it tells the movie the contiue from 10 to 20
i attached this script to the button
[AS] on (release) {
tellTarget ("/") {
play();
}
}
[/AS]
when i test the swf, it works great
the problem is this swf is targeted to an Home swf
so when i click that button, it plays the whole movies
Home and the swf itself
thanks for helping me
system
February 7, 2004, 10:08pm
2
Hey Dizain,
First off, do not use slash syntax; it’s been deprecated since Flash 5!
Just call the [font=courier new]play()[/font] function:
on (release) {
play();
}
system
February 7, 2004, 10:13pm
3
Hi kode, i was sure u will reply
but i tried this, it does not work.
remember, the button is inside the movie clip
the movie clip plays on the main timeline.
so this code is if the movie and button on the same timeline.
is it clear
system
February 7, 2004, 10:15pm
4
Oh! Sorry… I thought that the animation was inside the movie clip too.
on (release) {
_parent.play();
}
system
February 7, 2004, 10:18pm
5
Yes
it works
but
can we tell it to play from frame 30?
thanks alot
system
February 7, 2004, 10:20pm
6
Sure!
on (release) {
_parent.gotoAndPlay(30);
}
system
February 7, 2004, 10:31pm
8
You’re welcome, Dizain.