ActionScript 3.0 :: How To Stop At End Of Specific Frame And Return To Home Page
Mar 28, 2011
the only "Home" button that works is on the "Theory" page, which is where the actionscript happens to be located(frame 76).. In other words, if I click on the "Theory" button, I'm able to return to my home page. However if I click on any other button, it plays straight through the remaining frames and loops back to the beginning.
Frame 75(nav buttons)-
Code:
stop();
import flash.events.*;
import flash.display.*;
[code]....
View 1 Replies
Similar Posts:
Feb 20, 2008
I'm trying to make a link from one flash site to another, but not just to the home page of it, but to a specific part of it. For example, I run and am wanting to make the direct links from the websites of the seven artists involved (mostly flash sites) to their specific page on thesite... does that make sense?
View 2 Replies
Oct 21, 2011
I have the following code on Home_mc which is working fine. But when I move from Home_mc to Contact_mc it should stop. How can I stop it? What is the code.
Code:
var mySwf2:SWFLoader = new SWFLoader("Clouds.swf", {width:1000, height:400, container:this, onComplete:completeHandler2});
mySwf2.content.mask = MaskCloud_mc
[Code].....
View 1 Replies
Jun 8, 2011
I'm building a website in flash using my limited understanding of action script.Everything was progressing very well until I found that if I go to one of my example pages of my web site and play the flash video (with audio)and click back to my "home" button, the audio will continue to play.If I go back to the example page, the video is off and when I start the video, it plays again with the other audio.How do I stop the audio when I click away from the example page back to the home page or any other page?
View 7 Replies
Feb 25, 2010
when you go to the home.html page an animation will play from start and then stop at the end of it. However, for all other pages i.e contact.html aboutus.html we need the animation to skip to the end straight away and not to play the whole animation through. I was thinking this would be controlled by a variable or some kind of external text file ect. Basically in the first frame the actionscript needs to basically say
"if this html page is aboutus.html then go to the last frame and stop" and with the index page it would say "if this html page is index.html then keep playing"
View 2 Replies
Jul 26, 2010
I am very new to Flash and I am making a little 30 second clip just to fool around with Flash.Now at the end of my film I just want everything to stop (if possible, once a specific frame is hit move to another frame.)I've heard that you could use ActionScript to perform this but I really have no clue
View 5 Replies
Sep 1, 2008
I am still learning Action Script but I have a problem with writing the full script for combing navigate to new URL and gotoAndPlay. More specifically what I want to do is use a button which when clicked will open a new page and then start playing my Flash movie at a certain frame on the Timeline. I have used buttons to navigate to a new URL and used the gotoAndPlay ( ) ; command to play a certain frame, both have been successful but when I combine the two I run into trouble. What happens is the new page loads correctly and goes to the specific frame but then opens the browser in a new window with the movie playing from the beginning. The correct sequence within the correct Webpage is playing but only if I close the current page, in other words what I am trying to achieve is running but in the background.
View 8 Replies
Jul 14, 2011
i want to make a puzzle..a photo seperated in 10 pieces(10 scenes)withdifferent speed.each piece does a move from right to left and back again.when i push a button in the correct frame i want to go to the next scene to do to the same thing,if its the wrong frame i want to play another scene.and is it possible to all that staff with one button?
View 0 Replies
Aug 18, 2002
How would I do this using actionscript? I was kind of thinking like this:
onClipEvent(enterframe){
if(thecurrentframe=2){
stop();
}}
But I am not completely sure. hat variable would the current frame part be in??
View 10 Replies
Jun 2, 2011
I want to have a different image load on my home page everytime the page refreshes or someone visits it. Is it possible to do it without using Flash?
View 2 Replies
Mar 23, 2009
I am able to pass a variable from an html link that loads a separate html file and instructs the swf embedded file to go to a specific frame. But - I now need a link within an swf file on one page to open a new page and tell that swf to start on a specific frame and it is not working. Here is the code I use for the first example - works like a champ:
[Code]...
View 2 Replies
Oct 13, 2009
So I am doing a flash intro page, but the intro becomes the home page, as in all the pieces come together to create the Flash home page, so that there is just one file for the home page that includes the intro from Flash..how do I make it so that all the parts on the page stay there indefinitely, because right now after a certain amount of time, they disappear due to using the timeline in Flash.
View 4 Replies
Jul 11, 2011
I have a project for a site that sells fishing lures.I want to have an animated index page before moving on to the home page. My idea is to have a boat sitting on a pond fishing lines in the water, when a fish jumps out of the water, the water ripples, the next time you see the fish it's got a hook in it mouth and jumping out of the water.how do I go about it? How to I create the water rippling? I think with the fish I can do easily enough with it jumping on and off stage. Would I do the water with shape tweens?
View 1 Replies
Nov 15, 2008
i'm having trouble finding the answer to a simple (I hope) question. I made a flash banner and have successfully added an action that will loop it 3 times, stopping on the last frame. Here is the code I entered in a separate action layer:
INSERTED A KEYFRAME IN FRAME 1:
if (numberOfTimesToLoop<3) {
gotoAndPlay(1);
numberOfTimesToLoop++;
[Code]...
View 5 Replies
Oct 19, 2011
Ive created a banner ad in AS 1.0-2.0. The ad can only loop 4 times then it must stop. The following code does this at frame 170. The timeline is 170 frames in length, and this code is keyframed on an actions layer on frame 170 - however, I'd like the final stopped flash swf file to occur at frame 155. I can't just put this code on frame 155 - it skips a whole section of animation (from frames 155 to 170) that I want to keep in the loops.
loop = loop + 1
if (loop < 4) {
this.gotoAndPlay(2);
} else {
this.stop();
}
View 3 Replies
Dec 14, 2011
I have a banner with 4 MCs in it. Right now it starts automatically and loops endlessly. I would like the animation to play through 2 times, jump to frame 60 of the first MC and stop.
View 9 Replies
Jul 27, 2010
i will send newsletter to client via emailclient clicks on image or link and it will open a specific frame in swfi know we can jump specific frame in html if swf is embed in same htmlbut i am looking for external swf in html to be played on specific frame.
View 1 Replies
Oct 4, 2010
I have reviewed and applied this wonderfull explanation contained in the post thread response from Mr. Catbert303 "linking to specific frame number or label from an html page" about the javascript and actionscript code combination wich allows the swf movie to force-jump into specific framelabel or framenumber and it also works perfectly whenever i go from the link "back to swf" on my plain html page to the movie content page (also html). But i need my swf movie content page to start playing from cero whenever it is played from start and not begining always at the specifyed frame in the actionscript code:
if (frame != "") {
gotoAndPlay(frame);
}
I have tried everything within the "if" & "else" conditionals and i can't get the swf movie content page to start playing from frame 1 everytime it is called up, but instead it looks like it reads the actionscript code described above and always takes you to the specifyed framelabel, not playing it from the start. I have a hunch i'm missing something extra on my actionscript code wich must determine if the swf file is to jump to the specified frame or start playing from cero, because if i remove the above AS2 code from frame 1, it then starts playing from cero normally like it should but won't jump to the specifyed frame when also needed from the HTML page.
View 3 Replies
Feb 9, 2012
I have a website that I originally began to design in flash but later started developing new pages for it in html. The flash part of it has several pages on different frames and I have created links from the flash part to the other html pages, but, I can only link the html pages back to the main flash home page, and not the other pages in the flash part of the website.
View 1 Replies
Dec 11, 2007
I have an HTML frameset with a leftFrame and mainFrame. My navigation has been built in Flash and the SWF is embedded in the leftFrame. The pages that the nav link to need to load in the mainFrame.I have gone through your tutorial "Flash & HTML Frames" but unfortunately it doesn't work - it opens a new window.
View 2 Replies
Feb 18, 2010
I am new to ActionScript 3.0. I am trying to create a button that will jump ahead to a specific frame, let the animation run, and then stop before reaching a specific frame. I have the first part working:
button1.addEventListener(MouseEvent.CLICK, buttonHandler);function buttonHandler(event:MouseEvent):void { gotoAndPlay("25");}
Once I get to frame 25, the animation will start. But I want to stop the animation at frame 49. How would I do this?
View 3 Replies
Mar 7, 2004
What I want to have happen is when you mouse down on the button/MC the block_mc will first jump to frame 40 and then it needs to check and stop when the block_mc reaches frame 12. I have attached a simplified version of what I was trying to do
View 5 Replies
Mar 7, 2004
What I want to have happen is when you mouse down on the button/MC the block_mc will first jump to frame 40 and then it needs to check and stop when the block_mc reaches frame 12. I have attached a simplified version of what I was trying to do
View 5 Replies
Nov 18, 2009
Basically I'm building CD extras for a band, and they have a bunch of videos that are embedded in the timeline that need to automatically return the menu when they finish playing.I have the menu working fine, and all the videos are linked and playing; is it just a simple matter of replacing the "gotoAndStop" command or is it more complicated?
View 2 Replies
Oct 14, 2002
Is it possible to link to a specific part of my flash movie from an html page. Is there any way to link to a frame number or label? The site is html based, but the intro/home page is flash. I don't want users to have to see the intro every time they go back to the home page from somewhere else within the site. Is there something that I can append to my link on my html page to make it go to a specific frame in the swf?
View 3 Replies
Aug 22, 2009
I'm having a problem in linking sub menu buttons to specific frames in that html pageYou can follow the sample site to better understand.f these submenu buttons to [URL]
View 1 Replies
Aug 22, 2009
I'm having a problem in linking sub menu buttons to specific frames in that html page. You can follow the sample site to better understand. [URL] If you click on "Films" a submenu appears. I want all of these submenu buttons to link to [URL] but each go to a specific frame label in the .swf located within [URL]. For example:[URL]("equipment" frame label within .swf) or [URL]("tips and tricks" frame label within .swf)
View 1 Replies
Jan 7, 2009
I�am trying to make a timer to my hangman game, and this is the code I�have.
Code:
timer = 0;
countup = function(){
timer++;
}
countupInterval = setInterval(countup,1000);
If i would like the timer to stop on a specific frame and show the time result how do I do that?With some kind of if-else statement, or some kind of function.stop.
View 2 Replies
Sep 16, 2009
I'm using Flash CS4 with AS3. I'm building a website for a friend the problem I have. When a user clicks on a button I want it to play a movie clip then stop at a specfic frame. I want all the buttons to play the same movieclip but go to a different frame.
The current actionscript I am using is located on frame 1 is:
home_btn.addEventListener(MouseEvent.CLICK, homebuttonClicked);
function homebuttonClicked(event:MouseEvent):void{
gotoAndStop(0)
}about_btn.addEventListener(MouseEvent.CLICK, aboutbuttonClicked);
function aboutbuttonClicked(event:MouseEvent):void {
gotoAndStop("aboutme")
[Code] .....
This allows me to navigate to the right frame but does not play for obvious reasons, if I use the gotoAndPlay function its carries on playing to the end of the movie.
View 2 Replies
Apr 5, 2010
The website has buttons to navigate on each page. Each page has a sound. I tried the embed and external but when I click on a button to navigate to another page but the sound from the previous page is still there which overlaps on the next page's sound.
How can I make the music from the current page stop when going to the next page? I want the next page's sound to play and not have both sounds play at the same time.
I have tried whatever.stop();, SoundMixer, and everything in the Internet for the past 2 days and I still can't make something very basic as changing music work.
View 2 Replies