ActionScript 1/2 :: Get Flash Player To Stop / When Change To Home Page
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
Similar Posts:
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
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
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
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
May 3, 2010
Inside my /test folder/music_player/ have have a file called mini_player.swf. If I play it without embedding it anywhere, like this: [URL].. everything is OK. But when I add it into my index page: [URL].. the song doesn't start.
[Code]...
View 1 Replies
Jan 13, 2006
I have flash header with several buttons. One of these button should set the page as Homepage in IE.I have the following javascript function:
Code:
<SCRIPT LANGUAGE="JavaScript">
function homePage()
[code].....
View 2 Replies
Aug 10, 2006
[URL]I want to play the home page animation once only - and when visitors come back to the home page - it would ideally go to the last frame (or?). I have seen 'mentions' of Flash objects (cookies) and other scripts but have yet to see the actual script to make this work.I'm using Flash MX 2004 (version 7.2)?
View 7 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
Apr 21, 2009
I have just created a website in Flash MX and I would like to have a youtube video on the home page. I see in youtube where it gives the embed code for html sites, but what do I put in flash and what is the action script?
View 1 Replies
Feb 10, 2010
what is the code for accessing automatically the homepage of my website after the end of the flash animation.[URL]...
I am not a specialist with flash, but I have read that classical getURL code does not work in AS3.
View 3 Replies
Aug 30, 2009
I am using the following code for my Navigation in a FLash CS4 file:
stop ();
function buttons(event:MouseEvent):void{
gotoAndStop(event.target.name);
}
home.addEventListener(MouseEvent.CLICK,buttons);
services.addEventListener(MouseEvent.CLICK,buttons);
about.addEventListener(MouseEvent.CLICK,buttons);
contact.addEventListener(MouseEvent.CLICK,buttons);
It works great when I am on the home page, but stops working once I navigate to any of the other pages. I have an Actions layer and that layer extends the full length of all pages/frames of the timeline.
I have the frames labeled as such: home, services, about, and contact. (All are "Type:Name")
each button is named as such: home/ instance of "home", services/instance of "services", etc.
View 1 Replies
Jun 30, 2004
i always see some fancy/complex/elements got random motion: flash home page navigation, such as [URL] I just wondering is it very complex/hard to make one? & How can a newbi, like me get started to make one? does it involve complex/advanced actionscript?
View 1 Replies
Mar 11, 2009
I want the simple movie to load the URL(home page) after it's finished. so i tried to add
getURL("[URL]" , "_blank"); at the end of movie, but i keep getting errors.. this is the website that i'm working on LINK It's a very simple. i'm not even going to dare to make it fancier. I just want the movie to be over and go straight to the home page without any clicks.. i tried to put the geturl thingy at the last movie clip(Imagine tomorrow) and i tried to put it at the end of the keyline.. neither seem to work. i'm sure it's very easy one, but it just doesn't work.
View 14 Replies
Jun 30, 2004
i always see some fancy/complex/elements got random motion: flash home page navigation, such asI just wondering is it very complex/hard to make one? & How can a newbi, like me get started to make one? does it involve complex/advanced actionscript?
View 1 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
Feb 3, 2011
How do i display the flash banner first and then the home page details using javascript.I need load the flash first and then display the home page
View 1 Replies
Apr 22, 2009
The form is done and works. I set it up to send an email when the "submit" button is pressed. The problem is that after the form is submitted the home page pops up in a new window. I need it to send the email without a new window popping up. Here is the code.
var address:String = "/gdform.php";
var url:URLRequest;
var variables:URLVariables = new URLVariables();
[Code].....
View 6 Replies
Oct 7, 2007
I have been asked to recreate the animated navigation on the home page at [URL] but I don't have a clue where to start.
View 1 Replies
Mar 17, 2009
I'm looking for a (simple) way to make the vidplayer to stop playing when moving from one page to another one (on the same timeline hey). As it is right now if you start to watch a video and don't push the stop button before going to another page it keeps playing - hence you still hear the sound playing in the background while you're actually looking at another page. And that's not good.
View 3 Replies
Mar 11, 2009
I am having trouble by loading my homepage after my flash intro ends.Does anybody knows the ActionScript for this move?
View 5 Replies
Jul 29, 2011
I'm building a site in flash using as3. I implemented an xml slideshow on the home page but it wont disappear when changing pages. Anyone could tell me how to remove it on other pages?
[Code]...
View 2 Replies
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
Mar 29, 2010
I have a website which im designing exclusively in flash. The project size is 1000x500. The video which im using is 320x150. On the stage ive set the player to 320x150. The stage size is 1000x500 (thats the size and span of the website). When the page works from the internet. It expands to fill the screen of the viewing computer. Which is what i want anyway since Ive set my publish settings to get this. But the video player gets scaled along with the page that scales to occupy the viewing screen. So when the player becomes a little larger than its orginal size the video looks low quality. Is there a way that the player alone could be set to maintain its orginal size of 320x150 and not scale because this is causing the video to get distorted and pixellated ?
View 1 Replies
Apr 29, 2008
I have a streaming MP3 player that i'm going to incorporate into my site. Below is the AS for the player. At the moment the player starts automatically when the page loads up. Can someone tell me what i'd need to change so the player doesn't start streaming on page load....?
Code:
stop();
playlist = new XML();
[code].....
View 1 Replies
Dec 2, 2009
Im using flash4 with action script 3.0, for a website promoting the xbox games Ive worked on.
[URL]
as you will see the videos wont stop playing when I change pages, and I cant work it out at all, Im more than willing to give you a mention on my site . Im more than willing to supply you with the flash file...
View 3 Replies
Mar 8, 2009
I decided to try and build a site with AS3 and am regretting it. What used to be simple in AS2 confounds me in AS3. I have an embedded .flv on a page and when I navigate to another page, the video continues to play and in fact will duplicate and triplicate etc. if I go back and forth between pages. What is the code to shut the video off when I navigate to new
View 19 Replies
Jan 26, 2009
i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,
function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....
View 0 Replies
Jun 25, 2009
I have an animated logo swf file that loads and runs once on the home page every time the page loads. The logo has been updated to appear in three different colour schemes. I want one scheme to load and when the page is refreshed or revisited, one of the other colour schemes to load in its place. They can appear in any random order, just a different one to the one that played before reloading.Can someone point me to an answer or tell me how to do it? I have found a way in JavaScript but this only works on plain images, not swf files.
View 6 Replies
Dec 8, 2010
I am trying to create a flash headline gallery animation for a web site and I am having a bit of trouble. I am trying to get something similar to what you see on many websites today. Example 49er website ( [URL].. Typically the animation starts with one headline for a story "Click here to learn more" . After 7 seconds or so it goes to the next.I want mine to utilize the horizontal sliding effect between stories. underneath the stories are several buttons for navigating to a specific headline.
Many example sites i've seen use javascript or something else, but i was attempting to use Flash. I borrowed some code from a tutorial and I have some of it done. I have the button nav working, and the headlines slide horizontally when clicked. What i can't seem to add to this is the auto-play, wait 7 seconds then go to the next.
View 1 Replies