how do i make buttons

  • Taylor Hewitt
  • Banned
  • Banned
  • User avatar
  • Posts: 237
  • Loc: Canada

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

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
  • Posts: 237
  • Loc: Canada

Post 3+ Months Ago

How do i make a button take me to a scene for the movie?
  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

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
  • Posts: 237
  • Loc: Canada

Post 3+ Months Ago

Thanks I've got it doing what I want it to! :)
  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

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

Post 3+ Months Ago

Graduate from what?
  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

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
  • Posts: 237
  • Loc: Canada

Post 3+ Months Ago

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
  • Posts: 237
  • Loc: Canada

Post 3+ Months Ago

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
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

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 16 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.