ActionScript 2.0 :: Stopping Flash Audio When Link Is Clicked?

Aug 20, 2010

This is really confusing (the title of this thread probably doesn't make any sense at this point), and I'm not actually quite sure what I'm trying to do is possible, but I figured I'd throw it out there.

Basically, I have created a speaker-looking button (speakerON_btn) that plays the audio in Flash. It works fine -- starts automatically and stops when it's at the end or when somebody clicks on it.

Then, I put this Flash file into an HTML... works good. However, on this HTML page, I also have a PDF link (that links to what the audio is discussing). I have been asked to stop the audio when the user clicks on the PDF to open it. I don't want the PDF to open in the same window, so I can't use that as a method to stop the audio.

Is there any ActionScript I can add to the Audio Flash file that will tell it to stop when a user clicks on a link outside of Flash?

Also, if the above is impossible, would it be possible to add ActionScript to stop the audio if I were to build the entire HTML page as a Flash file? If that's a possibility, what ActionScript would need to be added to the my speakerON_btn?

View 1 Replies


Similar Posts:


ActionScript 1/2 :: Last Clicked Link Highlight In Flash?

Nov 22, 2009

what i want is that if we check on say product A then on product C in flash menu then when in product C page ,product A should be highlighted with different color

View 15 Replies

ActionScript 2.0 :: Flash - Sliding Effect When Link Is Clicked

Dec 2, 2009

[URL]there are 5 links on the right side homepage, about us, our coffee, services, contacts my question is about the sliding effect when any of these 5 links are clicked. when any of these links are clicked whatever page content is currently visible, that content slides away to the right and then the content of the link that has been clicked slides from the left and this page content appears, how is this created.

i am guessing that the rectangular area where the content for all the 5 pages appears can be a containing movie clip, and when any of the 5 links are clicked on each of those links in the action script code for on release code will be written to display the appropriate page however how can i get that sliding effect of pushing the existing content away to the right and display the links content which would slide from the left, how to go about doing this i am guessing it would be an action script code.

View 1 Replies

Actionscript 3 :: Link In TextField Of Flash Cannot Be Clicked If It Is Embedded In Different Domain

Sep 29, 2011

I wrote a flash (ActionScript3) based radio streaming player, there is a link in the player for users to click. It's is a "a" tag in TextField. The code looks like this

textField.htmlText = '<u><a href="' + url +'">' + htmlEscape(text) + '</a></u>';

It works fine if I put my flash player in same domain of web-page, however, if the domain of web-page is different from the location of flash player, then the link is not clickable.

For example:

A radio example page

You can see there is a link in the title bar of radio player, I hosted the flash player on CDN, its domain is different from the web-page, therefore, the link is not clickable.

Why the link cannot be clicked if it is embedded in a cross-domain page? It doesn't make any sense. I did set the crossdomain.xml file properly, but it appears that it doesn't work. I want to make the link clickable everywhere, no matter what domain the web-page is located.

View 1 Replies

ActionScript 3.0 :: Stopping Audio On A FLV?

Nov 26, 2010

Im currently making a website but ive run into a problem. i imported a flv onto the stage, all was fine. i tested it and when i navigate onto the page it starts automatically. when i navigate away from the page the audio keeps playing. is there anyway i can stop it playing automatically and have it halt after i navigate away from the page.

View 1 Replies

ActionScript 2.0 :: One Swf Is Stopping Another Sfw's Audio

Nov 14, 2007

I have a game that has sounds for specific user actions. The second that the first sound is activated, sounds in all other flash movies stops. For example, mp3 streaming swf's or video streaming swf's from youtube, will halt, the very second the user clicks in my game. What's going on and how can I patch this?

View 2 Replies

ActionScript 3.0 :: Stopping Stage.MOUSE_DOWN When Other Button Is Clicked?

Jan 26, 2010

I've got an MOUSE_DOWN listener on the stage (it's a rough drawing tool thing) and I've also got a bunch of other buttons on the stage with MouseEvent.CLICKs on them. The problem is that the stage.MOUSE_DOWN still gets called when the buttons are pressed. Is there a simple way to stop that happening or do I just have to deal with having a boolean set and unset that blocks the code in the stage.MOUSE_DOWN event function?

View 3 Replies

Professional :: Flash / Flash Player Will Not Open Link To Web Page When Clicked

Mar 19, 2010

I am testing a FLASH animation ad that has links to a website.When I click on the links, it opens firefox but it doesn't go to the link!I have added the links and the file names in the Adobe Flash Settings Manager, restarted several times, restarted in Safe Mode and it still does not work!I cannot find any information on this. My coworker also tried it and it does not work for him on IE on Windows.HOWEVER, If I have SAFARI open it works fine, and If I drag and drop the .swf file into either browser and then click on the links it goes to the web page.

View 3 Replies

Professional :: Stopping Audio On A New Scene?

Apr 8, 2011

I was wondering how do I stop my audio when I enter a new scene?

View 3 Replies

ActionScript 2.0 :: Stopping Loaded Audio?

Feb 20, 2004

I have scene that loops over and over if the user clicks on the wrong button. The audio is loaded at about half way through the scene.when the scene loops around again, and the user clicks the right button I want the audio to stop. BUT it doesn't and I'm using the same code as I've used before (it works normally)Is it becuase the second time round, at the time the user clicks the button the audio hasn't actually loaded and started playing. All you're listening to is what's left playing from the first loop?

View 3 Replies

ActionScript 2.0 :: Turning Off Flash Audio From Html Link

Jun 13, 2008

I have an audio player in a popup window and I would like to be able to turn it off with this command radioStop(); from an html link on the main page.

View 3 Replies

ActionScript 3.0 :: Stopping Audio In An External Swf File?

Nov 18, 2008

I managed to use a loader to load an swf that has a video/audio track encapsulated within it. It starts and plays fine. Because of property rights considerations, I must use the provided swf with the video within it rather than converting it to an FLV.

And using the unload command I get the video portion to stop, but not the audio.

I know that I need some kind of audio stop to stop the audio, but haven't been able to figure out exactly how.

The parent swf is pretty simple, no buttons, it just plays 6 external swfs under control of another program that starts it and stops it with no other interaction.

View 6 Replies

ActionScript 2.0 :: Starting And Stopping Audio Files?

Jan 10, 2007

I have 4 sets of 2 buttons (on and off):

Each set of buttons I want to trigger and stop a different audio file. (4 audio files in total)

I would like for the sound files to be saved within the .fla file.

I have done lots of searching but I still haven't been able to get this to work.

View 1 Replies

ActionScript 3.0 :: Stopping Audio Streaming Inside A Layer?

Oct 8, 2009

Sometimes I get ahead of myself and have to stop and say how the hell did I do this before?'m referring to a simple stop button I need to put in a flash animation. I know how to code calling a sound from the library, starting and stopping. But how do I stop audio that is streaming inside a layer from a button ?

d(new URLRequest("yoursoundfile.mp3"));var my_channel:SoundChannel = new SoundChannel();//2.play_btn.addEventListener(MouseEvent.CLICK, playSound);stop_btn.addEventListener(MouseEvent.CLICK, stopSound);//3.function

[code].....

View 3 Replies

ActionScript 3.0 :: Stopping UILoader Loaded Audio Of A .swf Video?

Jan 21, 2010

I have 3 buttons (and 3 .swf videos).Each button makes the main timeline go to a specific frame and stop.Each Frame tells the UILoader to load a different assigned .swf video (source parameter).

Problem: when playing the project's .swf in the Flash Player, "VISUALLY" the videos properly switch,but the Audio continues, so the Audio for all 3 videos are playing simultaneously.How do I get the current video's Audio to stop when the new video is loaded ?I experimented with enabled = false;"(and other methods) between the changing videos .

switch(eventMLR.target.name) ...
case "myVideo1MLR_btn":
for (k= 0; k < sndArrayMLR.length; k++){[code]..........

View 1 Replies

Professional :: Playing - Pausing - Stopping Audio In A Timeline

Feb 23, 2010

I don't use Flash that much so the question may sound simple, but how do I pause audio in a timeline? I have added the audio, play and stop button. When I test it works fine, but I can't figure out how to add the pause button, or the play/pause button.

View 2 Replies

ActionScript 2.0 :: Stopping The Audio Loop Without Stop The Entire Animation

Mar 21, 2009

I have a problem with an animation because I want to stop the loop sound without stop the entire animation what can I do to make correctly this action please? I tried to make a movieclip to control individually of the center time line but i dont get good results.

View 4 Replies

ActionScript 3.0 :: Back Button Stopping Audio On A Video Component

May 16, 2010

I am putting together a basic video portfolio and have everything working except when I click the back button to get back to the thumbnail page (contained on frame 1) the audio from the video continues to play.[code]

View 4 Replies

ActionScript 3.0 :: Link To URL Stopping Snow Effect

Oct 11, 2010

I am using the downloaded snow effect from the following link. [URL]. I want to add a link to the movie. I use this:
Code:
var link:URLRequest = new URLRequest ([URL]);
button_mc.addEventListener(MouseEvent.CLICK, gooo);
function gooo(event:MouseEvent):void {
navigateToURL(link);
}
But it stops the snow - and I'm not sure that the links work either.

View 3 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

AS2 :: Get A Small Window To Open When A Link Is Clicked?

Oct 13, 2011

i,m developing a HTML site and used one animated flash button(AS2) I want a small sized window to open when a user clicks on a button. The window will contain information that i want to display.It dosnt require a normal 800x600 window to open. I just want a 1/4 size of 800x600 etc.

View 14 Replies

IDE :: Embed A Link So That It Redirects To Website When Clicked?

May 27, 2011

hey there i have a series of jpegs about 7 with the dimensions of 190width x 500 hieght and i need to make them into a swf to put on a sponsors site which i need to embed a link so that it redirects to my website

View 1 Replies

Professional :: Play SWF Animation When HTML Link Is Clicked?

Jul 20, 2011

How can i play SWF animation when html link is clicked?

View 3 Replies

ActionScript 2.0 :: Clip Unloaded (destroyed) When ANY Other Link Is Clicked?

Feb 23, 2008

i want this clip unloaded (destroyed) when ANY other link is clicked. This clip is an empty container clip that will be generating child clips that will each be loading thumbnails for images. Obviously i need to destroy the parent clip to remove all children without looping, etc.

This movie clip ("TL") is created in a keyframe that is the stopping point of an animation. When a user clicks the Portfolio link from the menu, the menu hides itself, and then goes to a frame label where actionscript awaits. Once there, the AS tells the submenu movie to animate (play). The submenu then plays and stops when it hits a certain frame (the one with the 'stop();' code, lol), and that frame then contains actionscript that generates the Gallery Thumbnails' parent container ("TL"), via:

var TL:MovieClip = createMovieClip("TL",60);

and GT then creates movie clips for thumbnails to be contained in via:

TL.createEmptyMovieClip('Thumb' + i,TL.getDepth() -1);

All this works so far. Now, to get rid of the clip when any other button is clicked, i tell the gallery movie to play again, which alphas it out of sight. So, on the NEXT frame of the timeline AFTER the frame which the TL and children are created is where i need to place the actionscript to unload/remove them. The problem is that there is no method for this! It seems that all the methods for removing / unloading clips only apply to clips that were duplicated or instatiated from loading external files or attaching instances from the library...I need to remove this "TL" clip, and can't figure out how.

Code:
_root.mcMenuGalleryAnimation.attachMovie("thumbsList","TL",60);
TL._x = -300;
TL._y = 0;[code]....

View 7 Replies

ActionScript 2.0 :: Getting Zoom Out Effects For MovieClip When Next Link Clicked

May 13, 2008

How can I get the disappear (I used zoom out) Effect when I click another link I mean I want to get the zoom out effects for the previous movie clip when I click the next movie link.

View 5 Replies

ActionScript 2.0 :: When The Link Is Clicked, It Pops Up A New Window - UNDEFINED At The End?

Jun 25, 2010

When the link is clicked, it pops up a new window with the path of the fla file in the address bar and an UNDEFINED at the end...

Code:
on (release) {
getURL(_root.clickTag, "_blank");
}

With this AS on the button the link does not pop up at all

Code:[code]...

I've used clickTag, clickTAG, ClickTag, and ClickTAG all with the same results... not that it should matter as long as the flash and html match.I've tried to add the clickTag in the html like this

HTML Code:[code].....

And none of that is working so maybe SWFobject would work?

View 1 Replies

ActionScript 3.0 :: Fade Out Banner When Link Clicked From Home Page

Sep 9, 2009

This is what I have so far. [URL]. My problem is trying to code the menu:
I've managed to get the services link to do what I'm after but that is because it is positioned straight after the opening animation in the timeline - that is to have the banner fade out and the bottom line drop down to allow room for the content. From the home page I want each of the links, when clicked, to fade out the banner and drop the banner line down......THEN.......if home is clicked from any of the other pages I want the banner line to move back up and the banner to resume (in my case this is frame 279)

View 0 Replies

ActionScript 2.0 :: Show Image Through Xml Data When Html Link Is Clicked

Oct 25, 2007

I have made an mp3 player where xml data is shown in an dynamic textbox in flash movie. It is correctly showing the html links in text box.

But I want that when user clicks the link of a song, it should open the artist image in an image-holder. How can I do that?

View 5 Replies

ActionScript 2.0 :: Show Image Through Xml Data When Html Link Is Clicked?

Oct 25, 2007

I have made an mp3 player where xml data is shown in an dynamic textbox in flash movie. It is correctly showing the html links in text box. But I want that when user clicks the link of a song, it should open the artist image in an image-holder. How can I do that?

View 5 Replies

ActionScript 2.0 :: Timeline Freaking Out If Link Is Clicked While External .swf Is Loading?

Dec 12, 2008

So I am working on a portfolio site for a friend. She has a few photo galleries. Each one on it's own frame with an empty movieclip that loads an external .swf gallery (has pre-loader bar). There's three Sections so I have three buttons with _root.gotoAndStop("framelablehere"); behaviors on each frame.

What happens is if the external .swf file is loading and you decide to click to another section while the .swf has not finished loading my whole timeline freaks out and plays threw all the frames in my main movie. So it goes threw every section of the entire site! I have multiple stop();'s threw out my main movie. Basically one for each frame in my main movie plus more in the external .swf's.

You can check it out here [URL]- Just go to Projects>Photography and once you see the movie loading click to another section and watch the spasming begine~

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved