how do i make buttons

  • Taylor Hewitt
  • Banned
  • Banned
  • User avatar
  • Joined: Oct 13, 2004
  • Posts: 237
  • Loc: Canada
  • Status: Offline

Post March 27th, 2005, 6:00 pm

i wanna make this flash movie where u click a button and something happens then it goes back to the buttons

how
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 27th, 2005, 6:00 pm

  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post March 28th, 2005, 5:09 am

Create a shape somewhere on the stage using either the circle or square tool.

Highlight the shape and press F8. From the menu, give the instance a name and make sure the "Button" option is selected. Press Enter.

Double click the shape and in the 3rd frame of the timeline [ Over ] right click and insert a "NEW KEYFRAME". Highlight your shape again and give it a different colour.

Return to the main timeline by pressing "Scene1" on the left side of the timeline.

With you shape highlighted still, open the actions panel and type the following :

Code: [ Select ]
on(release) {
getURL("http://www.ozzu.com", "_self");
}
  1. on(release) {
  2. getURL("http://www.ozzu.com", "_self");
  3. }


Publish your movie and test your button.
  • Taylor Hewitt
  • Banned
  • Banned
  • User avatar
  • Joined: Oct 13, 2004
  • Posts: 237
  • Loc: Canada
  • Status: Offline

Post March 28th, 2005, 8:42 am

How do i make a button take me to a scene for the movie?
  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Joined: Oct 12, 2004
  • Posts: 861
  • Loc: BKNY
  • Status: Offline

Post March 28th, 2005, 10:49 am

Code: [ Select ]
on(release){
gotoAndPlay(5);}
  1. on(release){
  2. gotoAndPlay(5);}


substitute "5" with whatever frame or bookmark (in which case, the syntax is gotoAndPlay("bookmark"); ... quotes are key) you have... if you want to go to a frame in another scene it's like:

Code: [ Select ]
on(release){
gotoAndPlay("scene1",4);}
  1. on(release){
  2. gotoAndPlay("scene1",4);}

or
Code: [ Select ]
on(release){
gotoAndPlay("scene1","bookmark1");}
  1. on(release){
  2. gotoAndPlay("scene1","bookmark1");}


or whatever... enjoy... yeah... you can also do gotoAndStop...
check out the actionscript dictionary, it's real helpful...

peace out.
  • Taylor Hewitt
  • Banned
  • Banned
  • User avatar
  • Joined: Oct 13, 2004
  • Posts: 237
  • Loc: Canada
  • Status: Offline

Post March 28th, 2005, 6:06 pm

Thanks I've got it doing what I want it to! :)
  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Joined: Feb 24, 2005
  • Posts: 143
  • Loc: Ukraine
  • Status: Offline

Post March 29th, 2005, 7:59 am

hmm, how exactly did u get to graduate without knowing that?? No offence.
  • Taylor Hewitt
  • Banned
  • Banned
  • User avatar
  • Joined: Oct 13, 2004
  • Posts: 237
  • Loc: Canada
  • Status: Offline

Post March 29th, 2005, 3:32 pm

Graduate from what?
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post March 29th, 2005, 11:36 pm

yuriythebest wrote:
hmm, how exactly did u get to graduate without knowing that?? No offence.


Your Ozzu rank is just a reference of how many posts you have made, not how much of a brianiac you are. You can make 500 posts purely asking questions and you'd still be an expert just like the person who made 500 informative posts.
  • Taylor Hewitt
  • Banned
  • Banned
  • User avatar
  • Joined: Oct 13, 2004
  • Posts: 237
  • Loc: Canada
  • Status: Offline

Post March 30th, 2005, 6:52 pm

Oh ok.
---
And for yuriythebest perhaps my main focus until this point has been graphics or web design and I am just getting into flash. The main reason I joined this forum was for web etc but then i saw this section so there ya go :).
  • Taylor Hewitt
  • Banned
  • Banned
  • User avatar
  • Joined: Oct 13, 2004
  • Posts: 237
  • Loc: Canada
  • Status: Offline

Post April 1st, 2005, 6:57 pm

Enigma wrote:
Create a shape somewhere on the stage using either the circle or square tool.

Highlight the shape and press F8. From the menu, give the instance a name and make sure the "Button" option is selected. Press Enter.

Double click the shape and in the 3rd frame of the timeline [ Over ] right click and insert a "NEW KEYFRAME". Highlight your shape again and give it a different colour.

Return to the main timeline by pressing "Scene1" on the left side of the timeline.

With you shape highlighted still, open the actions panel and type the following :

Code: [ Select ]
on(release) {
getURL("http://www.ozzu.com", "_self");
}
  1. on(release) {
  2. getURL("http://www.ozzu.com", "_self");
  3. }


Publish your movie and test your button.


How do I make it open in a new window?
  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post April 2nd, 2005, 11:36 am

Code: [ Select ]
on (release) {
getURL("http://www.ozzu.com", "_blank");
}
  1. on (release) {
  2. getURL("http://www.ozzu.com", "_blank");
  3. }

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 30 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.