How Do I Make A Button Go To A Frame In Another MC?
Hi Kirupa And MERRY CHRISTMAS!I have a question for ya.This is what im trying to make.I made a scene with 5 MCs. Every MC is a page on my Flash website (About, Contact, Info etc).Now, when im in the About MC, when visiting the page, i want this to happen when i press the ex. Contact button.Something like:if button "Contact" is pressed when user is in the MC "About", Go to and play "Outro Animation from frame 50-70 in MC "About""then go to frame 1 in "Contact" MC. I want this because i have som Intro and Outro animations on each MC (page).How do i do this?What code should i use on the buttons?the page im working on is www.muwo.dk/kayoneIf you go to "In Use", and press "About", ex. i want an outro animation to happen from the "In use" MC, and then the user should see frame 1 in the "About" MC.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-25-2008, 03:27 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Actionscript To Make A Button Move From Frame To Frame
I'm trying to take a Powerpoint Presentation and put it into Flash. The problem is that I im not sure how I can get a mouse click to advance to the next frame. I want a user to click on the Flash item and go from frame 1 to frame 2 and so on and so on. What would be the best way to do this so it looks and acts like a Powerpoint presentation.
Thanks
Make Button Go To Certain Frame Depending On What Frame Movie Is On?
I want to be able to tell a button to go to a certain frame depending on what frame the movie is on. In this flash file, I have a piece of paper moving to the top of the screen, two pieces of tape coming to tape it up, and then writing on the paper. I want to make it that if someone has already clicked on a link, and the paper and everything is on the top of the page, that the next link they click on, just goes to the frame where the writing for the page begins, and not have the paper and tape again and vice versa...
I hope this makes sense...
How To Make A Button Go To Another Swf And Frame?
I am having a hard time figuring out how to have a button load a swf file and on a certain frame of that swf.
Can this even be done?? I can get the swf to load fine but its getting to the specific frame that stuck on.
Can anyone help?
Thanks in advance..
Does Anyone Know How To Make A Button To A Frame?
HI everyone! I want to know how to make a button that will lead to another frame, like "Click here to go alternate ending 1. and "Click here to go to Alternate ending 2" I also have 1 more question. How do i make something move even while the movie is paused. I know it has something to do with make it a symbol movie clip right?
Button To Make MC Go To And Stop In Frame 1
on my timeline, I have movie clips playing at different times.
I need script for a button that when clicked on, makes all movie clips goto and stop in frame 1.
Can anybody help?
Button To Make The Movie Go To The Next Frame
Kay, hehe I have a series of frames and layers. Layer 1 has the background image, layer two has the only part of the movie that changes, and layer 3 is for the buttons ( I used the component push button and gave one an action to go to the next frame, and the other to go to the previous frame) so how I'm hoping it should work, is the background stays, and as the user clicks the buttons it switches the images on layer 2. But it doesn't do this at all,, it just plays the movie and the images scroll thru as it were a movie. How do I make it so that the movie only moves frame by rame when the user clicks the button forward or backward?
http://barnrats.tcpgaming.net/horsecolors.swf
Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3
my as3 code is:
Code:
Code:
function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);
function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);
function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);
function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);
Now i made a button on Frame 130...and added this code to above one's..
Code:
Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);
Im getting this error...and that button is also not working...
Code:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()
here is the fla file...http://nithin1234.googlepages.com/gotit10.fla
Any help....plzzz
[F8] Button To Make Graphic Appear In Frame
Hi!
Bit of a newbie to actionscript, but hey it is a big old language!
I'm fine with on(release) to take to a new frame etc but this is my situation.
Imagine a Windows PC. You click the Start Button, it makes the start menu appear, no matter what folder/window/software you have open. Now liken it to a flash movie. Interactive, to make a button to make a set of graphics appear in a set place on the frame.
Hope you guys can help thanks.
Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3
my as3 code is:
Code:
function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);
function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);
function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);
function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);
Now i made a button on Frame 130...and added this code to above one's..
Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);
Im getting this error...and that button is also not working...
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()
here is the fla file...http://nithin1234.googlepages.com/gotit10.fla
Any help....plzzz
How Can I Make It Skip To A Frame On Hovering Over A Button
i would like to know how, when i hover over a button, the animation could skip to a scene, id like to do this for multiple buttons because ive made the animations in the same scene. i am new to flash, more photoshop orientated, so bear with me. if it is possible to have it so that all the buttons are active so if i hover over another while that animation is playing it will skip to another frame within the same scene, that would be good.
im using flash CS3.
Make Button Change Sound In Each Frame
I have a movie with 300 frames where the "Say" button needs to make a different sound in each frame. Do I need to create 300 different "Say" buttons or is their an easier way?
Brett
brettabrown@sbcglobal.net
FLASH 8 - Button To Make Graphics Appear In Frame.
Hi Guys
Imagine this to illustrate what i want to know...
Imagine a Windows PC. You click a Start Button, It makes the start menu appear wherever you are on the computer, whatever folder/window/software you have running.
Liken it to a flash movie, the Start Button is our Main Button. The start Menu is the graphics i want to appear in a set place.
Hope someone can help
Thanks
Make Button Go To Different Frame In Same Button?
Hey all!
I'm wondering if its possible to add an action to a button where on release it would go to a farther down frame in the button itself.
So if I put something in say frame 7 of a button when I clicked the button it would go to frame 7 of that button.
The reason I'm doing this is that on release I want the button to keep the same appearance as it does on rollover if they roll off. Also I don't want the on release action I assigned to that button available again if they click it.
So essentially what I'm trying to do but cant' find is a way to target the timeline in a button. I don't know if I can do this.
So also if there's maybe a better/different way to do this that'd be cool too.
Oh yeah I'm also using Flash 5.
Thanks!!
How Do I Make A Button In A MC Go To And Play A Frame Label In The Main Movie?
Basically I'm making a MC symbol that contains a bunch of moving buttons. On the buttons I put the action:
on (release) {
gotoAndPlay("Scene 1", "pow");
}
where "pow" is the frame label I want the movie to go to. On this frame is a stop action.
If I just drag out an instance of the button it seems to work fine, but the buttons that are "inside" the MC don't work.
What am I overlooking?
Thanks,
Jonny
How To Make Flash Button Load Html In Seperate Frame.
Hello everyone,
I was wondering if anyone knows how you can make a flash button load and html page into a seperate frame.
example: Flash navigation bar resides in a top frame in html.
the html pages load below in the main frame. Clicking the flash button loads the html page in the bottom frame.
if anyone knows how to do this I would greatly appriciate it.
Patrick
Dream FX Media
www.dreamfxmedia.com
Help:make Button Play Frame From Seperate Movie Symbol
I am trying to make an animation for my TEE Physics class as we are going to do a report & talk on something. For some strange reasons I chose airconditionares
so the intro to this animation is of side on view of an airconditionare (really scabby looking) with what is meant to be ribbons hanging off it. in the center is a "controller" basically a square with airconditionre control written on it and a button saying "on"
all of the ribbons are copies of a movie symbol and i want to make it so that when the on button is pressed then the ribbon movie symbols will go to frame 2 and start fluttering in the breeze.
My problem is that my limited knowlede of scripting animations is makes it so that i have no idea how to do this
I've tried searching for help but can't find any.
thnx in advance for any help I get
Problems Making Button Make Movie Clip Move Frame
Hi i hope someone can help. I have a button on my stage which makes a noise when you press it. I would also like each press of the button to move a movie clip to its next frame. In total the movie clip has four frames.
I have tried lots of ways but can;t get it to work. Can't post the code here as do not have flash installed on this computer. Basically what I am doing is dragging the movieclip onto the stage. The first movieclip frame is blank and putting a stop action.
On the button i am saying, on release ...
clip.nextframe;
but nothing is happening. should I not have the movie clip already on the stage or is there more I should do. please help?
stockdill
Problems Making Button Make Movie Clip Move Frame
Hi i hope someone can help. I have a button on my stage which makes a noise when you press it. I would also like each press of the button to move a movie clip to its next frame. In total the movie clip has four frames.
I have tried lots of ways but can;t get it to work. Can't post the code here as do not have flash installed on this computer. Basically what I am doing is dragging the movieclip onto the stage. The first movieclip frame is blank and putting a stop action.
On the button i am saying, on release ...
clip.nextframe;
but nothing is happening. should I not have the movie clip already on the stage or is there more I should do. please help?
stockdill
Trying To Make Movie Play Frame X To Frame Y Then Switch To Frame Z..
Hello,
I was hoping someone could help me out with an issue I'm having. I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.
I'm halfway to accomplishing this.
Here is what i used
Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
gotoAndPlay("Home2",1);
}
}
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.
Upon clicking the navigation button it plays the above scenes.
However it doesn't change scenes to scene "Home2".
Thank you in advance for all your replies.
Make "Say" Button Frame Dependent
I have a Flash movie with 300 frames that have different words in them. I need the "Say" button to say each word, in its frame.
I could make 300 duplicates of the button and attach 300 different mp3s, but is their a simpler way?
brettabrown@sbcglobal.net
How Do I Make A Frame-by-frame Character To Put Into My Main Movie?
Hi I am trying to create an animation to put into my main animation. Eg) a moving character who moves across the main movies page. I've drawn all the keyframes for it by hand, in a new movie window, but what do i do next to get it into my other movie as a moving character?
How Can I Make Frame 2 Wait Of Frame 1 To Load Data?
In frame 1, I'm loading data (pulling it from a URL in XML, parsing it, etc). It takes a few seconds and I want frame 2 to wait before doing it's thing because it needs the data first (otherwise it shows blanks).
How can I make frame 2 wait of frame 1 to load data?
Thanks in advance,
Ron
Fastest Way To Make Frame By Frame Animation?
My problem is pretty simple.
I have converted animated sprites straight from a game to animate in flash. The problem is that when I was converting them, it turned all the frames of the gifs into seperate files.
So I want to know what is the fastest way to import 100+ gifs into a single movieclip or graphic on flash. (when I try importing all of them at the same time, it just stacks them all in the same frame)
A few trains of thought I've had...
1) Get a program that can turn a bunch of images straight into a single animated gif and import that. I wouldn't know of such a program that could do that automatically. (if I wanted to do it manually with fireworks or something, I could might as well just do it on flash)
2) Maybe flash has a feature allowing me to distribute all the images that I import over frames.
3) Flash might have another feature similar to photoshop's actions to process batch stuff. I could have the action be, move up one frame, make a keyframe, import image, align the image, and then do the whole thing over again with the next image. (I tried this in Image Ready but it doesn't work very well)
Well so far none of these work.
Any suggestions?
How To Make A Movie Clip Button I.e. Make It Click-able
i followed the tutorial for making animated buttons by using movie clips instead of button symbols. now i don't know how to make them click-able. this is probably pretty basic, but i'm new to flash and i'm getting pretty frustrated trying figure things out by myself (no programming experience here, although i did buy the flash bible). i'm using flash mx 2004.
any pointers on how to do this would awesome. thanx a ton.
--V
Can I Make The Last Frame Of My Movie Clip Say "parent Next Frame"?
I am just learning flash so maybe I'm real stupid but I'm doing a slide show where each slide comes onto the stage in a different way so every pick has it's own animated mask layer in a movie clip which sits on the stage in a single frame on scene 1.
I want the last frame of the movie clip to say something like _parent, gotoandplay (scene 2);
I am using a load of tutorials but can't find any reference to this and thought it would be a pretty simple hack of some code I already used...
Any ideas?
How To Address A Button On The 5th Frame Of A Movie Clip With Action Script Located On The First Frame Of The Main Time
I'm trying to make a button appear on frame 10 of a movie clip and write actionscript on the main time line that addresses that frame 10 button. I'm not sure of the method I need to do to get that frame 10 button to get a url. I tested the same button when put on frame 1 and it worked, but I'm not sure how to address buttons and other symbols that appear as a result of the playhead moving to different places on movie clip time lines.
Can anyone help, or give me a link?
Thanks
Dennis
Attach Code
//works
_root.buttons_mc.go_btn.onRelease = function(){
_root.mall_mc.gotoAndPlay(1);
//a stop action is placed on frame 10 of the mall_mc movie clip
};
//this button is inside the mall_mc movie clip on frame 10
//doesn't work
_root.mall_mc.url_btn.onRelease = function(){
getURL("http://yahoo.com");
};
//An instance of the same url_btn is dragged on to frame 1 of the mall_mc
//movie clip and given an instance name url_frame1_btn
//works
_root.mall_mc.url_frame1_btn.onRelease = function(){
getURL("http://yahoo.com");
};
Flash Button To Take Movie Clip To The Next Frame Label Instead Of The Next Frame
I am trying to figure out how to create a button to take a movie clip to the next Frame Label instead of just to the next Frame. I have a slide show that I am working on with a fade effect from picture to picture. When I just use the nextFrame script it will literally take you from frame to frame on the fade in. Is there a script that will allow you to go to the next (or previous) Frame Label from where the movie was stopped?
Any help is greatly appreciated!
Looping Scenes To Go From First Frame To Last Frame And Rollover Button Play
I'm trying to figure out:
a) how to loop a scene to go from the first frame to the last to the second last etc
WHILE
b) having the scene play either forwards or backwards (as above) while the user has their mouse over a button but making the scene pause when the users mouse isn't over the button.
can anyone help me????
Flash Button In One Frame Goes To Movie Scene In Other Frame
Hey whats fellow flashers. Im sure this is a no brainer for you smarties, but its driving me crazy...I'm working on a site that has a flash movie menu in the one frame and the main movie in another frame. I need to be able to click on the buttons in the menu (top) frame and have them go to a certain location in the flash movie which is in the bottom frame. If I use the Get URL action, it lets me specify the frame, but not the label (location). If any of you guys have ideas or need me to explain further, please reply. Thanks.
Quick Button Question Next Frame And Previous Frame
hey there, just a quick problem im hoping someone can help me with please?
ive got this code on a button:
Code:
on (press) {
newDepth++;
var h = box.createEmptyMovieClip("holder"+newDepth, newDepth);
h.loadMovie("vanda.swf", "_root.holder"+newDepth);
preLoader(h);
}
have then got this code on another button in the same timeline as above with this code:
Code:
on (press) {
_root.bar.buttons.box.holder+newDepth.gotoAndStop(nextFrame);
}
i would like these buttons to tell whatever swf has been loaded into the empty movie clip to go forward one frame and stop and backward one and stop? am i close?
[F8]Playing A Movie Clip From A Certain Frame To A Certain Frame With A Button
Hey guys,
im slamming my head in trying to figure this out.
I have an invisible button and only one mc, the mc loops 3x then stops, this is defined with as in mc.
Now i want to play the movie from the invisible button but only loop it once.
Which means i would like to play it from frame 1 to frame 215.
And also when u rollout i would like the movie to stop and go to frame 1.
this is my button code so far
Code:
on (rollOver) {
tellTarget ("loader")
{
gotoAndPlay (1);}}
on(rollOut){
tellTarget ("loader") {
gotoAndStop(1);}}
on (release)
{
getURL(clickTAG, "_blank");
}
Help please
Problem Coding Button Over Frame By Frame Animation
Compiler Error: Scene=Scene 1, layer=actoins, fr;'{' expected
Attach Code
function buttonClickHandler(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.deseloper.com/gnome"));
trace("You clicked me.");
}
inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
Edited: 03/13/2008 at 05:17:45 PM by trowzers
The Best Way To Make A Snake "crawl" Frame By Frame ?
Hi again...
i am trying to make a network cat5 cable "slide" into the stage like a snake but chopping up the snake and motion tweening each segment is not really having the effect i'm after is there something that i should know to make this little project more pleasing to the eye.
while i get back to the chopping board...
Again i thank you for your time
Ramsey
-------------------------------------
Laughing out loud every day,
keeps the doctor away....gotoAndPlay
-------------------------------------
Needing To Go To Frame & Then Frame In Movie From One Button
Hello
My main timeline has a login movie clip. When someone enters the corect user name and password i want them taken to another frame on the same timeline.
On that frame I have a 'content' movie with a few labeled keyframes on its timeline.
So I want to be able to jump to a frame on the main timeline and to a frame on a 'nested' timeline all in the click of a button!
Here is my button action script:
on (release){
if (tUserEnter.text == "XXXXX" && tPasswordEnter.text == "XXXXX"){
this.gotoAndStop("_root.clients");
}
Ok, so this goes to the frame I want but what do I add to go to a frame within a movie on that frame?
Thanks for any help
Julian
Make A Frame Wait
Is it possible to script a pause on a frame ie
goto and stop frame 2 wait 10seconds goto and play frame 3
cheers all jim
How To Make A Mc Land On A Frame
I have a frame with an movie clip in it, and I want it so that if you push a button on the main frame that the movie clip goes to a certain frame. Its so hard to explain, hopefully you know what Im talking about. I think its a parent/child issue
How To Make Stop At A Certain Frame?
I need the first frame of my movie to stop as soon as it is loaded. I tried adding the Stop action but it doesn't stop the movie. I'm using Flash MX. Any help would be greatly appreciated.
Make GotoAndPlay Go To Frame & Keep Going
I have a preloader that upon completion will goto whichever frame I like.
The problem is that it stays on that frame, and I want it continue playing from that point. How can I make this happen?
Make GotoAndPlay Go To Frame & Keep Going
(AS3)
I have a preloader that upon completion will goto whichever frame I like.
The problem is that it stays on that frame, and I want it continue playing from that point. How can I make this happen?
Make GotoAndPlay Go To Frame & Keep Going
(AS3)
I have a preloader that upon completion will goto whichever frame I like.
The problem is that it stays on that frame, and I want it continue playing from that point. How can I make this happen?
How Can I Make A Link To A Certain Frame In A MC
I have been working on an interactive map for some time now.
When users drill down into the map and click on a certain state, it will take them to a different asp page.
From that point, they can click on a hyperlink button again to go back to the map (1st frame), but they have to go through clicking NA, then USA, then the state.
Can a regular hyperlink button, go to a specific mc in a swf file?
|