ActionScript 2.0 :: Monitor End Of Music To Call Get URL?
Jul 4, 2004
I need to write script to call another flash external movie with getURL at the instant the music stops. The initial flash program gives a show on stage with curtains opening and some acts on the stage, and after the show, the curtans close and the stage remains in tact with no futher action on screen until the end of the music. Howver the music continues about 45 seconds after all is done. I need to call another url as soon as the music is done. Is there a way I can begin to monitor the music to call get url when the music is done. This would then load another url.
I can't just time it, and load the next url in 45 seconds as some shows have music longer than others.
I hope there is a loop I can set up to keep checking the music status like we check the loading frame status to see when it is done.
View 1 Replies
Similar Posts:
Oct 11, 2009
I want a site to have background music, but when I attach the music to the file it makes it quite large ...3 meg and the site is slow to load. Is there any way of having the music separate from the flash file and still have start stop music buttons?
View 2 Replies
Apr 30, 2011
I'm working on an animation where I have my "dog" fighting the evil vacuum cleaner. I got most of it to work the way I want it to.
1) I have movie clips entitled pepper_mc (where my dog is supposed to be walking), swirl (where a swirly-type symbol is supposed to spin over the dead vacuum's head), and vacuum_mc (where the evil vacuum is supposed to have a swinging arm (called vacuumarm_mc) that I created using the bone tool). When I add them to the stage and test them, the animations within the movie clips don't happen.
2) I have background music that I'd like to stop playing at the end of the animation, but I'm not sure how to do that. (using the stop(); actionscript doesn't help).Where am I going wrong? I'm using Flash Pro CS5.
Here's the file --> Pepper and the Vacuum of DOOM!
View 1 Replies
Dec 13, 2005
When the movies performs the getURL action, I want the music to continue playing, but the getURL function seems to stop the music at frame 152 (where the getURL action is placed), when I wanted the music to continue to frame 257 (the end of the movie). I hope I've explained this clearly
View 3 Replies
Nov 9, 2010
I am trying to create a music animator. It will have bars that move up and down do the beat of the music. This is like windows media player where the music animations play. I want it to be verticle bars, where some are in sync with like the base and others are in sync with the tempo. Does anyone know of a tutorial for this? I am trying to emplement it within my website so that whatever music I am playing will auto control the bars and sync.
View 5 Replies
Mar 30, 2009
I downloaded a flash template and have modified it to suit our company but there is something that I can't do. When the file loads in the browser, music immediately plays and loops until you click a button to stop the music. On our video page, we have video
that we need to play that has sound in it. How do I get the background music to stop when my video plays without having to go up and stop the music manually. The videos are loaded via an external XML document and there are no buttons in the FLA file to link code to. the website is [URL]
View 4 Replies
Feb 21, 2007
I am streaming music from my site using flash, but after the 3rd music is done, it just stops. Do i have to flush something or create a new music object for each 3 songs?
View 6 Replies
Apr 5, 2005
I have 'Sound On' and 'Sound Off' buttons on mutiple scenes and I am playing the music loop in my flash movie by loading an external swf. When I move to the next scene the sound reloads which I do not want. How do I use an if-statement that checks whether or not the music.swf, that needs to be loaded is found and when it is found, go to a frame?
View 1 Replies
Jun 28, 2011
i have some actionscript that makes a
ExternalInterface.call('someFunction');
call.is it possible to reference the html object that made the call to someFunction directly using the ExternalInterface.call call?
Assume that the object that makes the call also has some Callbacks (via ExternalInterface.addCallback) that are accessible via javascript.
Currently:
Actionscript source
ExternalInterface.call("someFunction");
ExternalInterface.addCallback("someCallback",someASfunction);
[code]....
View 1 Replies
Dec 1, 2011
What is technical difference between buffering and loading ? Say, i have a video, which is showing loader bar in progress. Then what's happening exactly ? Buffering or Loading ?
View 1 Replies
May 1, 2009
Using Macromedia Flash Professional 8.
I have a website banner made in Flash. I have added a music file to it and Play and Stop buttons. I also have a Replay button to replay the banner animation once it stops.
I have put the music on a separate frame so that it will not play automatically when the banner loads. I have made the Play button direct to the frame the music is located at so that when clicked, it will go to that frame and play the music file.
The problem I am currently having is that if I click the Play button more than once, it will play the music file again on top of the current play-through.
So if I click Play, the music will play. Then if I click it again, the music will play again, but on top of the first instance of the music, so two instances of it will now be playing and it sounds horrible.
I would like to make it so that if you click Play when the music is playing, it will not play the music again until the music has stopped.
View 6 Replies
May 27, 2009
I recently installed a new 23 inch Samsung monitor and since then, I get all these lines accros my Flash interface and can't seem to find how to restore the screen. I am attaching a screen shot of the flash interface.
[Code]....
View 7 Replies
May 6, 2010
I m streaming a pal signal over FMS, i can get it over a PC or Mac on a Flash Player.is there anybody who know a hardware ti get it out over SDI?
View 1 Replies
May 14, 2011
is there a way to get this parameter from flash somehow? The Capabilities class can't do it. I'm using the latest Flex SDK and the new Molehill API for FP11, if that matters.
View 6 Replies
Feb 21, 2010
I want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically.there is any way to do that with Flex/Flash directly?or i might program another application in C in order to monitor the USB port and then comunicate with the front-end application with sockets?
View 2 Replies
Dec 31, 2010
I'd like to open a window in my AIR/Flex application on a second monitor if it's available. Don't know how to go about it. Tried this:mySecondWindow.x = Capabilities.screenResolutionX;
But this only gets the size of the first monitor and if I try to assign a greater value, it switches to default 100px offset. Is there a proper approach to this? My native screen is maximized in "preinitialize" and then I open the second window on "applicationComplete".
View 2 Replies
Jul 19, 2011
How to detect the Monitor current resolution in flex.
View 2 Replies
Sep 16, 2011
Is there a mechanism by which an AIR application can manually display in whichever monitor I choose? I can look at the display list in Screen.screens, but I'm unclear on how to actually force the drawing of the app into one of those.
View 1 Replies
Sep 19, 2011
What is the reason Flash Builder 4's Network Monitor does not support applications that were created using pure ActionScript and Library projects? It seems to work only for Flex projects.
View 1 Replies
Jul 31, 2009
I am wondering if there is an easy way of monitoring whether or not an mc is within the boundaries of another mc while it is being dragged. Currently I am using different equations to determine the leftmost, rightmost, topmost and bottommost points of each mc and then when they are being dragged comparing their x,y coordinates. Is there an easier way... I ask because this seems to be quite a lot of code to get through for such a simple operation, especially when the function containing the code is being called each time the mouse moves..
View 1 Replies
May 24, 2010
If there is movie clip playing on the stage is there a way to know if it is done playing. Is there some kind of stage listener or movie clip listener you could build that would monitor the clip that is playing and when it is done have the flash program do something else?[code]...
View 5 Replies
Feb 15, 2011
How can we get monitor's physical height and width ie size?
View 7 Replies
Aug 8, 2011
How do I open a new native window on the second monitor?
View 1 Replies
Feb 3, 2004
But i have one question to it. How can i tell the window to open on a certain part of the monitor?
I know there's something like "screenX/screenY = .. " but can somebody tell me how i can build that into my script?
View 11 Replies
Aug 26, 2008
I have some code that will be generating data into a TextField. However I want to be able to monitor when the TextField is updated, a function is called.
Currently the onChanged command will only work when a user has entered information into the TextField and not when data is inserted via actionscript.
how I can monitor the change to the TextField when using actionscript to input data, but work the same as the onChanged command?
View 1 Replies
Apr 13, 2010
I have a movie clip to display a clock and a datagrid for showing my schedule. I want my flash to alarm with sound when the time from the clock match one time on the schedule. Here is my actionscript:
Code:
clock_mc.onEnterFrame = function() {
if (_root.timer[i]==_root.clock_mc.clock_txt.text.substr(0,5)) {
alertSound = new Sound(alertSoundMc);
[Code]....
As you can see, I use onEnterFrame to listen and check matching between time on clock and schedule but it will check all the time and when it alarmed it produced sound all the time while the time is matched. I would like my flash to alarm only one or few times.
View 3 Replies
Apr 15, 2010
I have create a clock which displaying in TextField named clock_txt. I want flash to do some thing when one more minute is added. Can I monitor this change and how?
View 12 Replies
Oct 1, 2010
I've been asked by a client about playing a Flash .exe file from a hard drive so that it only plays on a second monitor.
View 2 Replies
Sep 13, 2011
My connection at work seems to be a bit rocky. I'd like to make a simple graph using the awesome power of ActionScript to demonstrate the rockiness of work compared to the smoothness at home to my IT guys.Websites like speedtest.net won't cut it as sometimes my connection is great, with sudden cutoffs randomly. Other apps won't work as I can't install software at work.
Any thoughts on how to get started? I'm guessing I download some audio or something at regular intervals or something to test/graph (I can handle the graph part)? I don't need specifics, although I'd be delighted to see examples if any. I really just need some general guidance on where to get started.
View 2 Replies
Dec 6, 2011
I put a lot of work in my flash website that will soon be launch. But now I realize I want it to fit better into the larger wide screen monitors. Is there a way I can make it larger without losing image quality? I know this probably needs to be done in the publishing tool.
View 1 Replies