Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-07-2012, 05:08 PM   #1
yasza
Registered User
 
Join Date: Jul 2012
Posts: 1
Unhappy Nice button don't know where to put the code

Hi there,

I just get a nice rollover effect button, it's simple look. After I figure out the code I can't find out where to put the code for navigate.

I want the button link to the scene, frame label/frame number

btw, the button file is a movie clip and inside the mc is the button. please check the code from the files here
Code:
//tells this MC to play frame 2 on roll over
on (rollOver) {gotoAndPlay(2);
}

//tell this MC to play frame 8 on roll out
on (rollOut) {gotoAndPlay(8);
}

//tell this MC to stop at frame 16 on release which 
// disables the button because the button is not on frame 16.
// Checks to see if the other buttons have stopped at frame 16,
// if so, then play the roll out effect from frame 8,
// if not, don't do anything at all.
on (release) {gotoAndStop(16);

if (_root.butt2MC._currentFrame == "16") {
	_root.butt2MC.gotoAndPlay(8);
}
if (_root.butt3MC._currentFrame == "16") {
	_root.butt3MC.gotoAndPlay(8);
}


//changes the contents of "statusBox"
  _root.statusBox.text = "BUTTON 1 PRESSED"
}
or you can download the .fla here dl.dropbox.com/u/16366221/simpleButton02.fla

I hope anybody can help me

thanks
yasza is offline   Reply With Quote
Old 07-13-2012, 03:35 PM   #2
suresh02sd
Registered User
 
Join Date: Jul 2012
Location: Brooklyn, NY
Posts: 34
Default

you probably want to put it into the

on (release) {

area as its when the movile was released
i don't know what you want it to do but it looks like you are already having it go somewhere


its a bit confusing your code i strongly recommend you dig a bit more into maybe as3 if your up for it.
suresh02sd is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:33 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.