Actionscript On My Button Problem
Hi guys, i want to dynamically load a movie, i have this ac on the button
on (release) { _root.content.loadMovie("Homeb.swf"); }
I have created a mask and a content mc, and named the content mc content, but when i click on the button nothing happens, i don't know why, theres probably a problem with the action script i am using, also i want a mc with an instance name 'def' to disappear once the button is clicked on, how do i code for this. Any help would be appreciated, thanks!
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-17-2003, 02:29 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Edit Button Actionscript So It It Can Be Put On To A Movieclip Button
I was using a tutorial from Kirupa (I'm a real beginner by the way) - Complex Button Rollover/Rollout effects http://www.kirupa.com/developer/mx2004/button_effect.htm
and I would like to change the last part of the action script
Code:
this.onRelease = function(){ getURL("http://www.kirupa.com","_blank");}
with this button action
Code:
on (release) {
if(_root.currMovie != "collectionsb"){
_root.currMovie = "collectionsb";
containerone_mc.loadMovie("collectionsb.swf");
}else{
if (containerone_mc._currentframe >= containerone_mc.midframe) {
containerone_mc.play();
}
}
}
so that on release of the movieclip button an external file
Quote:
collectionsb.swf
will open into a container
Quote:
containerone_mc
I realise this is probably a very simple problem but I don't know how to change the code Thanks in advance
I have attached an example if it helps
How To Edit Button Actionscript So It It Can Be Put On To A Movieclip Button
I was using a tutorial from Kirupa (I'm a real beginner by the way) - Complex Button Rollover/Rollout effects http://www.kirupa.com/developer/mx2004/button_effect.htm
and I would like to change the last part of the action script
Code:
this.onRelease = function(){ getURL("http://www.kirupa.com","_blank");}
with this button action
Code:
on (release) {
if(_root.currMovie != "collectionsb"){
_root.currMovie = "collectionsb";
containerone_mc.loadMovie("collectionsb.swf");
}else{
if (containerone_mc._currentframe >= containerone_mc.midframe) {
containerone_mc.play();
}
}
}
so that on release of the movieclip button an external file
Quote:
collectionsb.swf
will open into a container
Quote:
containerone_mc
I realise this is probably a very simple problem but I don't know how to change the code Thanks in advance
I have attached an example if it helps
ActionScript - Button
Need to find out how to make a button once clicked to play scene or movie then get a specified url. Can't make scene or movie play in entirety before url opens.
Thanks for any help!
Button Fx + Actionscript
i think this will be pretty easy for you so hope someone can help. the problem is how to achieve when you move over a button some of the other buttons in the scene react to that and turn 50% transparent or something like that. i have never done this using only actionscripting. can anyone please help me with the code. thx.
Button And Actionscript
Hi,
I have my menu inside a movie of it's own, and when i try to make the movie jump to a certain frame when the button is clicked, say 80 for example. The movie will jump to frame 80, but frame 80 of the menu movie and not the main movie?
Can any1 help?
Thanks
Nick
Button Actionscript Help
hey guys ...
looking for a wee bit of help if you don't mind ... ;0)
... picture this ...
I have a master MC that houses various MC's (the navigation) ... inside these MC's are various actions and tell targets to other MC's ... now on of these actions is that on a button rollover ... I tell target an MC that contains the section label which fades in ... further along the time line I need to repeat this action (to fade in the section label) ... but only if its not already loaded ... I'm guessing I need to do a IFframeloaded ... but I'm not familiar with this ... can someone guide me through it?
Thanks.
EG
Button Actionscript?
It's me, the ultra newbie. I'm back, and so are my newbish problems. If I want a button's graphic to act as a kind of switch that I can toggle- I know the down frame changes the color/design of a button for a split second after you click on it, but how do I make it toggle so that it changes the color of the button until I click it again and revert the color back to the original color? Is it an actionscript?
Also- where might I find a good tutorial on preloaders?
Thanks in advance.
Button Actionscript
I have a button that plays a movie on release. The actionscript right now tells it move a graphic. What I want to happen, if the graphic is already dropped down from clicking the button the first time, when the button is clicked again, I want to have the graphic go back to its original position, essentially I want the movie to play backwards on the second click of the button. Do I need some type of if statement? Could someone help me out with the scripting. If anyone can help me out, I would greatly appreciate it. Thanks
Button Actionscript
i have a series of buttons, instance names: "b0","b1"..."b12"
i wanted to assign similar command to them in the main timeline using this:
for (i=0; i<=12; i++){
_root["b"+i].onRelease = function(){
...
this works except in this paticular movie, it is loaded from inside another swf so the root part dosent work. i tried replacing it with _parent but that didnt work.
if this question makes any sense, i cant explain stuff good, please help me.
thanks.
Button Actionscript
I am trying to make a .PDF file open via clicking on a button. I am sure it is a simple sript, and I probably only missed one thing in the process, but I am going crazy trying to get this to work.
If anyone knows the actionscript to:
1. Open a .PDF from a server via clicking on a button.
and
2. Open a .PDF from a folder on a disk via clicking on a button.
I appreciate any feedback.
Button Vs. Actionscript?
Okay...I have an image. I need different fields within that image to jump to a different frame to explain the field to clients and then have a button to return to the image. I'd tried several links within this forum...but I can't get anything to work.
I'm not a big fan of buttons...so I made each field it's own MC and then in the actionscript put
on(press){
gotoAndStop(2); //Thinking it would go to the second frame and
//stop; showing the field explanation
}
on frame 2 I add another MC to act as a close button
on(press){
gotoAndStop(1); //Thinking this will return to the image
}
All this does is rapidly jump back and forth between frames 1 and 2??
I have about 25 different fields; so I was going to have one layer with different unique frames? Is there an easier way to do this???
Button Actionscript ?'s
What's the actionscript for a flash button for the following:
1) relocates the same page to a desired spot (does not open a new window)
2) opens a new window to the specified link
3) goes to the specified link (does not open a new window)
for #1, how do you specify the region for relocation?
Help With Actionscript For Button
i already ask
but nobody answer
if it's not possible please write me
i want to write script for mc inside button
i give both instance name to button and mc inside button
but i can't find target
i tried manualy like this.button.mc - it's not working
is there any way to do it?
please help
Button Actionscript
Hello,
Im new to these forums and have been learning flash for the past few days, so hello all
my problem, I am working on a button menu, so far i have 2 buttons that when pressed display a information screen to the right of them, they are both linked to the same movie symbol instance called information. This instance contains a logo on frame 1, frame 2 - 20 fading text (actionsript (stop)at the end of it), frame 21-40 different fading text. I use the following actionscript on the buttons:
on (release) {
telltarget ("_root.information")
gotoAndPlay (2);
}
}
the second button uses (21) on goto. The problem is that once both buttons have been pressed, button A then no longer works, button B is fine and they are almost identical. Any help would be appreciated.
Thanks,
Steve.
Button ActionScript Help
I am making a Jeopardy-style game with 24 buttons Acting as the jeopardy grid (the buttons with the dollar amounts on them). I am trying to make it so that when one button is pressed and the question is displayed, the button dissappears from the grid so that it can't be clicked again. Is there a way to do this?
Actionscript - Button Help
I have 9 individual buttons.
Once someone has pressed the third button (in any order), I want a Movie Clip to play. Any help!!?!?!?!
Button Actionscript
I am new to actionscripting so bare with me here. I have a scene with 3 buttons on it. I would like to be able to click the button and move on the to a specified scene. Will the following code work or do I need to used something else?
code: on (release) {
_root.contents.loadMovie("locations.swf");
}
Can I replace the locations.swf with one of my scene names or do I need to find another piece of code? Thanks in a advance
Mc With Actionscript And A Button Within
I have a mc that moves to the centre of the screen on rollover and moves back to its original position n rollout.
Within that mc is a submenu comprised of buttons. when the mouse is over a button, the menu tries to go back to its original position as it detects the mouse is over the button and not the mc. The clip gets stuck in limbo as it detects rollover button, rollover mc, rollover button etc.
any ideas how to get around this? im using mx2004 and the excellent movie clip tweening prototypes at http://laco.wz.cz/tween
please see attached fla, this has been annoying me for about a day, it would be great if someone could help me out!
Thanks
Actionscript For A Button
how to make a button to be of the same color (as in an over state) after you clicked on it?
thanks.
Button Actionscript
I apologize if this has been covered before, but I am trying to set up buttons that will advance to another .swf that is in my library. I am getting an error message stating:
Quote:
**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 2: Statement block must be terminated by '}'
on (release) {
**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 10: Syntax error.
//End Behavior
Total ActionScript Errors: 2 Reported Errors: 2
Here is the code for my button and I can't figure out what I am doing wrong. Probably something simple, but sometimes it helps to have another set of eyes
Quote:
on (release) {
//load Movie Behavior
if(_root == Number(_root)){
loadMovieNum("br.swf",_root);
} else {
_root.loadMovie("br.swf");
}
//End Behavior
Help With Button Actionscript
I am making a flash gallery for everything I've made. I just don't know the actionscript to put on the thumbnail buttons. I would also like the longer videos to have a loader bar with percent.
P.S. I've tried the load in MC action, and it dosen't work, I don't have control of the size and location!
If you know a tutorial that can explain this, please link to it.
EDIT: I will also host the files, I just need to load them....HELP!
Button URL Actionscript?
Hey all,
New to the sites here. I know this is a very basic generic newbie question i'm sure has been answered a million times but I'm kind of in a hurry and need a quick answer.
I'm new to flash 8, and only know a little from the days of flash 4. Back then i remember there was an option or field on a button that would set the URL the button linked to. Now I'm told you have to insert the actionscript for the URL. I think its geturl, but after plugging in various values I still am getting errors.
What is the EXACT syntax, or piece of code to say link to...
/index.aspx
In the same window, in otherwords _self. Also where should I have this actionscript? On the button "click area" layer?
Thanks. Seems it used to be easier, but maybe its just me.
Button Actionscript
Hi,
I have just completed the Scrolling Thumbnail Panel tutorial at www. gotoandlearn.com. It all works as per the tutorial. My problem is, I have no clue how to set up the actionscript for the buttons (thumbnails).
The buttons are contained within a movie clip on my scene "portfolio". I want these buttons to send the movie to frame number X of the current scene when released.
How do I do it? What is the small, simple piece of code I need to make this all work?
Chris.
Button Actionscript
I am new to this so, It may be simple to some but not to me.
I created a button it's instance name is "button1"
This is the action script
button1.onPress = function() {
trace("test");
}
This is the error I get
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Statement must appear within on handler
button1.onPress = function() {
What I tought would happen is that when I right click on the button, I would get a message "test"
what am I doing wrong?
Button Actionscript
I have copied this from a flash template that I downloaded. I want to learn how that button works. I understand almost everything but here is a small part in the actionscript that I don't understand. The script for the invisible button is this:
on (rollOver) {
gotoAndPlay(2);
}
on (releaseOutside, rollOut) {
gotoAndPlay(11);
}
on (release) {
loadMovieNum ("home.swf", 1)
}
If I am not wrong gotoAndPlay(2) means play frame 2 but there is nothing in frame 2. Can someone please explain to me what this script means?
[F8] Help With Button Actionscript
in the attatched movie, pressing the gallery button loads a movie and makes the border of the site drop. This is fine BUT then when another button is pressed, i want the border to drop back to original size. This is all done in the movie, but the actionscript isnt working.
Im using a variable, so when viewing the gallery, the variable is true. Iv then added the following action to the home button to make the border drop back, but it isnt working.
on (release) {
if (downs = "yes") {
_root.gotoAndPlay(up); [which makes the border drop back up, on the main timeline]
}
Please help.
[F8] Button Actionscript Help
hey guys, im having trouble with this code here with the buttons, the buttons are movieclips with this action script applied inside. But i dont want it to goto an external link, more so, id like it to goto frame 55, or frame label redgallery in my movie which is index.swf
here is the original code, i just want to replace the geturl with "gotoandstop blah blah blah frame 55 or framelabel redgallery"
but when i put that in it doesnt work out for me
here is the original script given by the tutorial site..
Code:
stop ();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
getURL("http://www.toxiclab.org");
}
here is what im trying, but doesnt work...
Code:
stop ();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function() {
gotoAndStop(55);
}
version
flash 8 proffesional
thnx in advance!
[f8] Button Actionscript Help
Hi,
The 'HOME' page will be the FIRST thing the viewer will see when they come to my site.
I want the 'HOME' button already highlighted; until the user clicks on a different button. What's missing in my code?
b1.onRollOver = over;
b1.onRollOut = out;
b1.useHandCursor = false;
b1.buttText.buttonText.text = "HOME";
b1.onRelease = function() {
this.selected = true;
resetState(this);
};
b2.onRollOver = over;
b2.onRollOut = out;
b2.useHandCursor = false;
b2.buttText.buttonText.text = "PORTFOLIO";
b2.onRelease = function() {
this.selected = true;
resetState(this);
};
function over() {
if (!this.selected) {
this.gotoAndPlay('over');
}
}
function out() {
if (!this.selected) {
this.gotoAndPlay('active');
}
}
function resetState(mc) {
for (var i = 0; i<10; i++) {
if (mc._name != "b"+i) {
var tmp = this["b"+i];
if (tmp.selected) {
tmp.selected = false;
tmp.gotoAndPlay('active');
}
}
}
}
[F8] Button Actionscript
Hi all,
wondering if anyone could give me a quick script to
1) get the name of a button
2) onPress then gotoAndStop("frame with same name as name of button")
Basically, I've got 5 buttons, but I can't see how I'd be able to create one simple function to handle all the buttons. Right now, I've got 1 function for each button.
Hope that makes sense. Thanks in advance for any help.
Button Actionscript Help
Hello everyone.
Someone can help me?
I have a thumbnail image and i want when the mouse goes over, a bigger version of the image to emerge and to disappear when the mouse goes out. i allready have the two movie clips with the zoom in and zoom out animations.I suppose i need some actionscript.
Thanks in advance.
[F8] ActionScript 2.0 Button Help
Hello to all I'm building a basic Flash 8 website. What I'm trying to do when a person clicks on the button it plays another flash movie and then proceeded to button link. I ended up making a new movie in flash but don't know how to make the movie play and then go to the button link. This is the code I have so far.
stop();
home_btn.onRelease = function () {
gotoAndStop("HOME");
}
aboutus_btn.onRelease = function () {
gotoAndStop("ABOUT");
}
services_btn.onRelease = function () {
gotoAndStop("SERVICES");
}
gallery_btn.onRelease = function () {
gotoAndStop("GALLERY");
}
contact_btn.onRelease = function () {
gotoAndStop("CONTACT");
}
Button Actionscript
I have a button from a template with the actionscript below attached to it.
I need the buttons to link to a get Url. where do I place this get url without breaking the below code.
I have tried placing a transparent button on a layer above it but that prevents from the actionscript below to run.
on (rollOver)
{
if (_root.link != 1)
{
this.tt.gotoAndPlay("s1");
} // end if
}
on (releaseOutside, rollOut)
{
if (_root.link != 1)
{
this.tt.gotoAndPlay("s2");
} // end if
}
on (release)
{
if (_root.link != 1)
{
_root["item" + _root.link].gotoAndPlay("s2");
_root.link = 1;
this.tt.gotoAndPlay("s2");
this.gotoAndPlay("s1");
} // end if
}
Thanks!
[F8] Actionscript For A Button
hi everyone,
my question is, how to write a actionscript code for a button when the button is clicked it should move to the nextframe.
// About and smile1 button scripts
stop();
_root.smile1.onPress = function() {
if (mouse_over_smile1) {
_root.smile1.gotoAndStop(5);
} else {
_root.smile1.prevFrame();
}
};
// animation for the smile2 button
_root.smile2.onRelease = function() {
if (mouse_press_smile2) {
_root.smile2.gotoAndStop(6);
} else {
_root.smile2.stop();
}
};
// animation for the smile3 button
_root.smile3.onEnterFrame = function() {
if (mouse_over_smile3) {
_root.smile3.gotoAndStop(7);
} else {
_root.smile3.prevFrame();
}
};
i have given 3 functions as onEnterFrame,onPress,onRelease. i tried all these but didnt get the result.but which one i need to use.
smile1,smile2,smile3 are button instances which are declared on the monie clip.
my main thing is i hav a button, when i click on that button it should go the next frame which i have declared in "gotoAndPlay(6)" method.
can any one write the code for me.
i need it urgently.
Thank You.
Button Actionscript Help./
hi guys, Im making a movie clip who is going to act like a button.
how can I make a scritp that checks the positions of the cursor and after several seconds if is not over it suppose to, sends back a movie clip to frame one?
let me say the person moves quickly the cursor outside a rollover area and flash does not recognize the movement cuz was too fast. How can I put the movie clip back to the original place if that happens after flash check it where the cursor is and if its outside the rollover o rollout area starts from the beginning?
Button Actionscript
Hi, I have a button that I really like, but it won't work properly if saved in a version older than 5. When published in a version higher than 5, it won't move, it just stays still. I would like to be able to publish my site in Version 9.
I attached the .fla file and also, here is a link so you can see how the button should work... http://www.digitalcrayon.net/TestButton/
Any help would be appreciated!!!
(I accidentally posted this same question in General Help and couldn't remove it. sorry for double post)
Button And Actionscript
Hi, can i have actions for a button instance, it's because in the main window of actionscript it appears this message "Current selection cannot have actions applied to hit."
Thanks!
Actionscript For Button
Hey all.
I have a question relating to Buttons & MC's.
Basically I have a button that needs to be scripted to go within one MC and play another MC.
The first MC labelled "interactivetown" is on frame 2 (Frame 1 has the button needed to be scripted)
The second MC labelled "roadsigns" is on Frame 38 on the MC "interactivetown".
I need the button to go into interactivetown MC & then 'skip' to frame 38 aka - "roadsigns" MC.
Any ideas how to do this? I seem to be able to get out of MC's using "parents" but cannot do it the other way!
Also this is a project due in wednesday so I have little time to re do any sections.
Thank you!
Button ActionScript For MC's
Hi all,
I'm working on my portfolio site at www.solomonbriggs.com. I've got a grid of mc's that come into view when you hover over them. I would like to have the script to give them button functions that call an mc to drop down, but I'm getting stuck on the coding part.
You can find the FLA at:
http://www.solomonbriggs.com/www/print.fla
Any help would be much appreciated.
THANKS!
Help With Actionscript Button Please
I've created a button that plays an animation on rollover. When you roll off the button it snaps back to the first frame of the animation. How do I make it play forward while on rollover and then backward when you roll off it so it plays smoothly?
Thank you,
Chris
Actionscript For Button
hi everyone,
my question is, how to write a actionscript code for a button when the button is clicked it should move to the nextframe.
// About and smile1 button scripts
stop();
_root.smile1.onPress = function() {
if (mouse_over_smile1) {
_root.smile1.gotoAndStop(5);
} else {
_root.smile1.prevFrame();
}
};
// animation for the smile2 button
_root.smile2.onRelease = function() {
if (mouse_press_smile2) {
_root.smile2.gotoAndStop(6);
} else {
_root.smile2.stop();
}
};
// animation for the smile3 button
_root.smile3.onEnterFrame = function() {
if (mouse_over_smile3) {
_root.smile3.gotoAndStop(7);
} else {
_root.smile3.prevFrame();
}
};
i have given 3 functions as onEnterFrame,onPress,onRelease. i tried all these but didnt get the result.
smile1,smile2,smile3 are button instances which are declared on the monie clip.
my main thing is i hav a button, when i click on that button it should go the next frame which i have declared in "gotoAndPlay(6)" method. can any one write the code for me.
i need it urgently.
Thank You.
Actionscript For Button
hi everyone,
my question is, how to write a actionscript code for a button when the button is clicked it should move to the nextframe.
// About and smile1 button scripts
stop();
_root.smile1.onPress = function() {
if (mouse_over_smile1) {
_root.smile1.gotoAndStop(5);
} else {
_root.smile1.prevFrame();
}
};
// animation for the smile2 button
_root.smile2.onRelease = function() {
if (mouse_press_smile2) {
_root.smile2.gotoAndStop(6);
} else {
_root.smile2.stop();
}
};
// animation for the smile3 button
_root.smile3.onEnterFrame = function() {
if (mouse_over_smile3) {
_root.smile3.gotoAndStop(7);
} else {
_root.smile3.prevFrame();
}
};
i have given 3 functions as onEnterFrame,onPress,onRelease. i tried all these but didnt get the result.
smile1,smile2,smile3 are button instances which are declared on the monie clip.
my main thing is i hav a button, when i click on that button it should go the next frame which i have declared in "gotoAndPlay(6)" method. can any one write the code for me.
i need it urgently.
Thank You.
Actionscript Button
This seems like it should be simple, but I'm having a lot of trouble. I have a .as files with a class defined in it, and that class has a function defined in it. I also have a button attached to a movieclip attached to another movieclip on the stage. How do I get that function to be the onPress function of the button?
Button Won't Allow ActionScript
I'm learning Flash and trying to add ActionScript to a button. I've got the buttons defined and on the stage. When I select a button and open the Actions pane, where the code would normally go, it always says "Current selection cannot have actions applied to it."
What am I doing wrong?
Can;t Add Actionscript To Button
hey guys, i've created a button from a piece of text in flas CS3, and i want to add some actionscript to skip to another frame on mouse click, i've done it before on flash 8, and it worked but on CS3 it says "current selection cannot have actions applied to it". anyone know why and how i can get round it?
cheers,
Curtis.
Actionscript For Button
hi everyone,
my question is, how to write a actionscript code for a button when the button is clicked it should move to the nextframe.
// About and smile1 button scripts
stop();
_root.smile1.onPress = function() {
if (mouse_over_smile1) {
_root.smile1.gotoAndStop(5);
} else {
_root.smile1.prevFrame();
}
};
// animation for the smile2 button
_root.smile2.onRelease = function() {
if (mouse_press_smile2) {
_root.smile2.gotoAndStop(6);
} else {
_root.smile2.stop();
}
};
// animation for the smile3 button
_root.smile3.onEnterFrame = function() {
if (mouse_over_smile3) {
_root.smile3.gotoAndStop(7);
} else {
_root.smile3.prevFrame();
}
};
i have given 3 functions as onEnterFrame,onPress,onRelease. i tried all these but didnt get the result.
smile1,smile2,smile3 are button instances which are declared on the monie clip.
my main thing is i hav a button, when i click on that button it should go the next frame which i have declared in "gotoAndPlay(6)" method. can any one write the code for me.
i need it urgently.
Thank You.
Actionscript For Button
hi everyone,
my question is, how to write a actionscript code for a button when the button is clicked it should move to the nextframe.
// About and smile1 button scripts
stop();
_root.smile1.onPress = function() {
if (mouse_over_smile1) {
_root.smile1.gotoAndStop(5);
} else {
_root.smile1.prevFrame();
}
};
// animation for the smile2 button
_root.smile2.onRelease = function() {
if (mouse_press_smile2) {
_root.smile2.gotoAndStop(6);
} else {
_root.smile2.stop();
}
};
// animation for the smile3 button
_root.smile3.onEnterFrame = function() {
if (mouse_over_smile3) {
_root.smile3.gotoAndStop(7);
} else {
_root.smile3.prevFrame();
}
};
i have given 3 functions as onEnterFrame,onPress,onRelease. i tried all these but didnt get the result.
smile1,smile2,smile3 are button instances which are declared on the monie clip.
my main thing is i hav a button, when i click on that button it should go the next frame which i have declared in "gotoAndPlay(6)" method. can any one write the code for me.
i need it urgently.
Thank You.
Actionscript For A Button
Hey all,
I'm making a site for an important project, and attached this Actionscript to a button (movieclip, acts like a button) :
Code:
on (rollOver) {
play();
}
on (rollOut) {
gotoAndStop(_currentframe - 1);
}
on (release) {
if (nav = "0") {
nav == "1"
} else {
nav == "0"
}
if (nav = "0") {
this._parent._parent._parent.gotoAndPlay ("menu", 1);
} else {
this._parent._parent._parent.gotoAndPlay ("menu", 15);
}
}
The button is inside in this order:
Scene1 (Root) Contains the menu_thing, instance name of 'menu'
Menu thing (where a transition occurs)
Menu (has the buttons, containing the above actionscript)
I needed to do it like this because i am going to have it so when the user clicks the button, the menu bar motion tweens across the page to the left, and have the selected button loadMovie into the right screen... then if they select another button it slides across to the opposite side and so forth... am i making this harder than it needs to be?
As in, should i just make it so if they press menu it goes to the left side if not already there, and contact means the right hand side (there are 4 buttons in total)
But alas, it simply doesn't work, can anyone help? Also, menu etc are all movie clips.
Thanks in advance for any help, if at all possible
Help With Actionscript Button
Having problems in changin kirupa's tutorial, complex button (link). Trying to change it from an http button to a gotoAnd Stop (); button. Here's the segment which deals with that:
Quote:
this.onRelease = function(){
gotoAndStop (81);
}
The button's rollover and rollout animation works fine but the button itself does nothing when clicked. Any help for a newbie to actionscript would be greatly appreciated.
Button / Actionscript Help
Is there a way to take a button, tell it to goto a specific scene, play the frames in that scene, then goto another specific scene... not in linear order... this way i can use the same transition scene for multiple buttons and still go to the scene i want the button to goto in the end ???
some thing like
if "button a" is pressed it goes to the "transition scene" then to "scene a"
if "button b" is pressed it goes to the "transition scene" then to "scene b"
so on and so forth...
I'm a reletive newbie at this .. and i'm having trouble thinking up a solution based on my knowledge.
thanks
Lutha
|