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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Button Action scripting

Status
Not open for further replies.

kelvin01

Programmer
Apr 1, 2004
1
GB
hello

i know this might sound pretty basic but i'll be grateful if someone can tell me what to do.
what do i do if i want the button to replay the chosen frame ie press the button to tell it to play from frame 20 then it plays the required frames. now i want to see the movie again. press the button and nothing happens what am i doing in wrong

thanks in advance kelvin
 
on(release){
gotoAndPlay(20);
}

Make sure the actionscript is on the button on your stop(); frame.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Hello I was wondering if some one could show what I would put for the action script if i want to add a link. When I click on it so that it goes to another link. I used the code below but it didn't work. .Could somebody help me please. thanks..

on (release) {
getURL(}
 
Try:

Code:
on (release) { 
getURL("[URL unfurl="true"]http://trucvan.net/about.htm",[/URL] "_blank");
}

The second parameter controls what window the link is launched in - _blank is a new window, _self would launch the link in the same window and replace the Flash movie etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top