View Full Version : clicking should play movie!!
daniel
10-28-2002, 02:36 PM
for a site on clothing i want a button to show pics of weddingpants for girls, which are on frame 2 of the movie 'weddingmovie'.
i did these actions in flash 4
on(release)
begin tell target ("../weddingmovie)
go to and stop (2)
end tell target
end on
should work, shouldn't it?
the moviename is correct, and in the same scene as the button we're talking about, without built into any movies or anything like that.
free hotel in heaven for whoever helps me.
pinkaboo
10-28-2002, 03:20 PM
on (release) {
_root.weddingmovie.gotoAndStop(2);
}
Assuming that your mc instance is labelled "weddingmovie" and is the directly on the main timeline (as opposed to being a child of another clip) your code should look like the above. (can't remember what ../ means in Flash 4 syntax! sorry!)
When in doubt with pathing you can always click on the crosshair target symbol in your actions panel and manually select the path from the mc options. It's also a good way to check that you have labelled the instance correctly because if you haven't it won't show up in that menu.
-pinK
btw, just so I don't confuse you I ought to say that tellTarget is a deprecated command, but were you dead set on using it the above code would be rewritten like this and would do the same action:
on (release) {
tellTarget (_root.weddingmovie) {
gotoAndStop(2);
}
}
daniel
10-28-2002, 03:40 PM
i don't use { or }, the commands display just as you see them in my mail (as a list)
i use mac, maybe that explains???
../ is the same as _root i think
btw pinK, your artwork (signature) is awesome!
...things never seen...
farafiro
10-29-2002, 06:00 AM
Originally posted by daniel
btw pinK, your artwork (signature) is awesome!
...things never seen... heheheeeeeeee, seems that u didn't get it, u wann do that either turn your monitor upside down or stand up on the head
sorry Pink, but I had to tell him the truth :p :D
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.