ActionScript 3.0 :: Button - Move The Main Timeline To A Specific Frame
Jan 12, 2011
I have this code below on this button that is inside of a movieclip. I just want this button to do is move the main timeline to a specific frame thats all.
[Code]...
I didnt put i a object name before the addeventlistener because I'm not sure what to put because if I put "this" the other buttons will bt controlled by this code and if i put "parent" only that button will work.
View 7 Replies
Similar Posts:
Sep 13, 2010
how to make a button go to a specific frame on the main timeline my button called a play_btn and i want it to go to a specific frame on the main timeline ???
View 2 Replies
Nov 22, 2011
How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.
View 1 Replies
Apr 6, 2010
The situation is as follows:I'm using Action Script 2.0 --- I'm obligated to in the course I'm attending.I have a main timeline that has 3 frames. On the 2nd frame I have a movieclip named mc_nbr. On the 3rd frame I have a button "voltar" that when pressed I want it to "Go and Stop/Play" at frame 3 of the movieclip (that is embedded on frame 2 of the main timeline).
I used the folowing code for the button btn_voltar:
on (press)
{
[code]......
View 2 Replies
Oct 15, 2009
I want a button which is on an externally loaded swf to tell a movieclip on my main swf to gotoand play a specific frame. Is this possible and how would I do it?
View 0 Replies
Jan 3, 2010
Not sure if I'm in the right place, I apologize in advance if so. I'm somewhat proficient with html, but fairly new to flash, using cs4pro, as3. Here's my dilemma. Converting an existing html/css site to flash. Flash is main site now but a few html pages are still linked, a buy page and a form page, a few others. I can get the all the external html pages to link to a frame in the flash movie, and I can get the flash to link with all external urls.
My problem comes when I move to a frame outside the main timeline. The movie is lets say 393 frames. All symbols/content are on seperate layers, and so is the action. Once the full movie ends, I have several frames past that where I have basically created frames for additional "pages" and created anchors for those frames, new layes for content, new layers for anchor (labeled) and new layers for a stop(); on each frame, I extended the pertinant graphic frames out to 410 from the original movie.
Now when the movies runs the buttons appear at about frame 115, so in the action layer I coded a keyframe and then added frames of it out to frame 410 or so: I have attached the .fla Now I'm lost here. When you navigate the site, from home lets say to an external link (button) like members, the html member page opens, and if you click home button, back to flash frame, and all works, all buttons, on the home frame 393. But if you go to any of the external htmls, and then go back to any other frame like frame 401 the about page, and all the rest 402 403, etc, the page appears properly, but then none of the links function. the site URL is [URL]there is a flash intro too, swf in question is actually at[URL]
View 2 Replies
Jun 25, 2006
I have a movie clip which, when closed, should send you to a specific frame on the main timeline... I have used frame labels on the main timeline... Here is a bit of my code so far:
[Code]...
View 5 Replies
Jul 21, 2008
I am so frustrated now - I'm trying to clean up my code, but I just don't understand this issue.
I understand that on(release)[code]...
- But there are two things I just don't manage to convert;
1) How do I move the following from the btn_volumeSlider to the main-timeline?[code]...
View 3 Replies
Jan 20, 2011
i made a main(parent) page that loads an swf which has a button(a1) which on click i need it to move the timeline of the parent
i wrote this code to the external swf and tryed many commands such as Object(root).gotoAndStop(1);
a1.buttonMode = true;
a1.addEventListener (MouseEvent.MOUSE_UP,a1a);
function a1a(event:MouseEvent):void {
}
View 3 Replies
Mar 16, 2012
On the main timeline I have a movie clip called clock_mc and playBtn playBtn is placed in the center of clock_mc When you press playBtn clock_mc starts playing
playBtn.addEventListener(MouseEvent.CLICK, playClock);
function playClock(event:MouseEvent):void
{
if (event.target == playBtn)
[Code].....
I've tryed to placed the replayBtn on the stage on the main timeline and I've set it up to replayBtn.visible = false; And then I add replayBtn.visible = true; to last AS frame of clock_mc but it wont work Even when I put the button physically to the last frame of clock_mc it will not work either.
View 3 Replies
Feb 19, 2010
how to play the timeline with a simple button
example:
in AS2 you could attached script to button something like
on MouseEvent {
gotoandplay(6);
}
thats all I am trying to do, but in AS3 how do I simply get a button when clicked to go to a frame and play.
View 3 Replies
Jul 14, 2010
I'm building up a site in flash CS4 using AS2.i have a movieclip that acts as a button where it displays severall other movie clips inside of it, for example mc1, mc2, mc3; I'm trying to set a value to a variable that tells me at the time the end user presses it which movieclip is playing.I've done this by adding: var cb = "sp"; on the first frame of each movieclips (mc1 stands for "sp"; mc2 stands for "te")
On the main movie clip, they are displayed sequentially, so on my perspective, when mc1 starts, the value of the variable cb should be set to sp. That way, when the user releases the mouse button, the timeline should move to the specified frame.Here's the code I have for the Mouse event:
bannermiddle.onRelease = function() {
if (cb == sp) {
bannermiddle.gotoAndStop(3);[code]........
I've had the trace to the code so I could see if the value is correctly set, but it keeps showing undefined...
View 4 Replies
May 5, 2011
I have a scrollPane on my stage, and I have a movieClip inside of it with a bunch of buttons. When you click on one of the buttons, I need it to gotoAndPlay a frame label on the main timeline. So far I cannot get this to work.
View 6 Replies
Feb 5, 2010
In AS2 I need code for a button, on the main timeline, to go to a frame in a mc off the main time line. I have attached a picture of the time lines in case I have not articulated my needs well.
View 5 Replies
Feb 8, 2010
I've beein digging forums everywhere but cant find the solution to my problem...
I have an external swf "advert_3.swf" loading into the main index.swf.
advert_3.swf has two buttons: one needs to go to "services" frame the other to "events" within a content_mc which is in the index.swf.
that is in the index.swf:
ActionScript Code:
var request:URLRequest = new URLRequest("advert_3.swf");
var loader:Loader = new Loader();
loader.x = 35;
[Code].....
View 1 Replies
Aug 11, 2009
I've got a button on the main timeline that i only want to be visible on from frame 2 onwards. I know i could just place it on a new keyframe on frame 2 but then i can't get the AS on frame 1 to control it and i don't want to duplicate all my code. (Its static text, converted to a btn mc). why the following isn't working?
[Code]...
View 2 Replies
Jan 29, 2012
I am making a website based in flash actionscript 3.0 i have a button nested in its own movie clip, because I have the button expanding to be able to read it i have figured out the only way to do this is by creating it as a movie clipa nd inside the movie clip creating it as a button. I added an event listener to the blog button by saying[code]...
i have named the symbol blog and have name the frame of where the blog page is going to be "blogframe" this line of code at the bottom is where i run into trouble the output window in Flash is saying "The blog button was clicked" just like i want it to. no errors are accouring why than is the playhead not going to frame "blogframe"? if the button is working when i click it the code is right i belive the problem here is it does not want the playhead to go to the frame i want it to. So i gues my question is, how can i make a button withing a movie clip interact with the main timeline?
View 3 Replies
May 11, 2011
ive made a simple game for a uni project, when you get game over a movieclip comes up and inside the movie clip there is a button to restart the game. how to i code the button inside the movieclip to gotoAndPlay to frame 1 on the main timeline?
[Code]...
View 4 Replies
May 18, 2010
I want to link a button in my main timeline to a label- frame in a movie clip. The movie clip is called "Adetail" and the label is "on01"... I type in the following script
[Code]...
View 1 Replies
Sep 15, 2010
how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.
View 0 Replies
Oct 16, 2009
I have 3 functions in my main document class that I want to execute when the main timeline reaches a particular frame number. how do I do that?
see the code and comments
public function mainClass()
{
//stage declaraction
stage.align = StageAlign.TOP_LEFT;
[Code]....
View 5 Replies
Apr 26, 2004
Can I do this in flash? which is the best way to do it? I have a main mc and I want to duplicate it and then move it in specific area..
View 12 Replies
Mar 16, 2007
I simply want to assign a variable to the current frame of the main timeline (not movieclip timeline) I already know about _currentframe and it doesn't help in this case.
View 4 Replies
Apr 26, 2011
I am in the learning process. Working with FlashCS5 and AS3. if the issue appears to be too simple for you. Placed a movieclip(mcassessJohn) on the main timeline and moved to the frame labelled "johnFeedback" in the movieclip timeline using the following actionscript code.
[Code]...
View 1 Replies
Jun 26, 2009
In the main timeline I have several movie clips, buttons and labels that navigate to the appropriate mc's. Inside the movie clip I have a button that will send you back to the main timeline and the appropriate label. I thought that would be relatively easy but it's not working.[code]...
View 2 Replies
May 26, 2010
I'm still struggling with going from a loaded swf to the next frame in my timeline, where a new swf file will be loaded.Ths is my current code which is trying to move onto the next frame in my timeline is located at the end Frame of a 10 second animation:
[Code]...
View 3 Replies
Aug 10, 2009
On the main time line I've got movie clip called Z and also n the main timeline I've got another movie clip called B. Inside B I've got a movie clip called C. My problem is - the actionscript written in C makes few objects in the main timeline function (changing colors, displaying notes, input text linked with dynamic text, etc...). I need to move all those objects in to ONE MC in the main timeline (changing colors, displaying notes, input text linked with dynamic text, etc...). But when I move it in to a single MC it wont function! simply the actionscripts won't work!! What should I do to make all those objects in to one mc and still make the actionscript written in C work? p.s. - I've used the _root. command in C.
View 2 Replies
Jun 11, 2010
I have an animation (movieclipX) on frame 2 of main timeline. At the end of movieclipX I'd like the main timeline to move to the next frame, frame 3. How can I do this??Sorry if this is an easy question, I'm in the process of learning.
View 8 Replies
Jun 18, 2003
I have an object that moves around, and once it is pressed, I want it to move to a specific place and then continue to the next frame in the movie clip. This is what I have : a movie clip, the first frame has the stop(); command and contains approx 12 frames. The MC has this script attached to it :
onClipEvent(enterFrame){
if(_x >= 0){
_x = _x - 10
}if(_y >= 0){
_y = _y -10
}if(_x == 0 && _y == 0){
gotoAndPlay("/ball",2) // ball being the instance name of the mc
}}
The first two parts do move the object to where I want it but the third part will not work and I cant get it to move past frame 1. (Note : 0,0 is not the place I want it to move to, it is there because I was experimenting with the code and this was an easy place to assign to the movement).
View 14 Replies
Jul 27, 2011
I have a main swf that loads 2 external swfs. I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)
In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff. NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.
However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.
[Code]...
View 9 Replies