ActionScript 3.0 :: Play MP3 Then Load New Webpage In Same Window?
Jan 13, 2011
I am trying to set it up so that when someone goes to a page on this site, it plays the audio MP3 and then when that MP3 is completed, refreshes the current browser window with the new page. What I have so far in Actionscript 3 is that it works, but loads new page in a new browser window while the MP3 is still playing.Here is the code I have so far, all in a single KeyFrame.
Code:
var url:String = "url2file/preroll.mp3";
var urlRequest2:URLRequest = new URLRequest(url);
A rudimentary question from a neophyte. I just want to play some music as part of my swf file and at the end of the song, automatically retrieve a web page. I'm finding a lot of answers for very complex questions, but nothing quite so basic.
I have two swfs on a web page but need them to start playing at the same time. Problem is that one file size is bigger than the other, so one loads before the other and starts playing earlier.
Is there any code that can make a movie wait until the other one has loaded, then start playing in sync?
I want to make the menu page load in the same window.Right now, if you click on the index page, it will open the menupage in a new window. I know I need to use _self, or _parent. But Icouldn't figure out where to insert it.
I have a small Flash movie that is embedded on a site. At the end of the movie, there is a call to action to click to another page on that site. However, it appears the only action in the Code Snippets panel is for an action that opens a new browser window. I miss the basic actions panel! Am I missing something here? How do I accomplish what I need to? I tried changing the code to "_self" instead of "_blank" but that doesn't work
Here's the code:
button_5.addEventListener(MouseEvent.CLICK,fl_ClickToGoToWebPage_9); function fl_ClickToGoToWebPage_9(event:MouseEvent):void { navigateToURL(new URLRequest("purchase.html"), "_blank"); }
Right now I have everything set up and linked correctly except when you click the button it opens up a new tab rather than just going straight to the suggested URLHere is the code I have now...
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage); function fl_ClickToGoToWebPage(event:MouseEvent):void {
When working in flash I can control size of my web like so (and other alignments):some_background.width = stage.stageWidth;some_background.height = stage.stageHeight;And with resize and fullscreen functions web is always going to populate size of a flash window.And lets say I make 1280x1024 web, when I publish it, it is going to be that size in a browser window.But how do I make it fir browser windows completely whatever the size of it?
I want to play the music file in flash player (which is embedded obviously) by clicking the play button which is in the web page (not in flash player).
I have an FLV file embeded in a SWF. The file plays when directly opened by Firefox or Internet Explorer. However, it doesn't play when embedded in an HTML page.
I have a webpage that I have a video linked to play when a user clicks on it - simple enough. With flv (v9 and below) videos, I have no issues serving it up to the user and them viewing it - with a f4v file this is a different animal, nothing happens, the web page player sits there spinning like it is going to do something and never does, like it cannot read or understand the video file.
how to make f4v videos play in a web page? My flv's are working fine, but cannot seem to get the better compressed f4v's to work right. I do not have DW CS4 or I would have tried to see how the code worked there. I created these videos in Premier Pro and exported via the Adobe Encoder in CS4. The video is beautiful for the same size and quality compared to the hazy flv's, so I really want to use the f4v's, I just cannot seem to get it to work.
I'm trying to play an external .flv in a .swf and embed in a webpage. I feel like I'm doing everything correctly and everytime I create it, it works offline. When I upload all the files online, nothing shows up. When I right click on the live webpage where the file should be playing it sees the swf, it's just playing and/or displaying anything.
I have a website that has two flash items on it. I have a swf that calls mp3s that plays on the page load, and I have a FLV that plays on page load. What I would like to happen is: on page load the FLV plays when the FLV Finishes the swf starts to play the mp3s. What already happens is that the pages load in _blank pages so they are in new windows. This is good because while you navigate the site, the music from the homepage is still cycling through the swf's mp3 playlist. The problem comes in when you navigate back to the homepage from a new window, and the homepage is still open within the first window. That means that the video plays over, while the music is playing, and the music doubles up. Now the video playing isn't bad, it's that music is doubling up. Can't it sense itself playing a 2nd instance of itself on another webpage and stop it?
I have a mov file that's 157 megabytes. I try running it on my page within a javascript scroller animation and the animation is very choppy and in fact I used css to simulate a mask but the thing doesn't get masked, probably do to the sluggishness of whole page, the page never fully loads, and the movie file makes it nearly impossible to scroll through the page. The file is just too huge. I currently have it embedded as such:
1) Should I convert the mov to swf - that is, is swf a more compatible and appropriate format for seamless integration in html web page?
2) Whichever I choose, how do I reduce the file size - like on youtube where the videos run seamlessly? I plan on using javascript to scroll through a gallery of videos, so I need the videos to not bog down the page.
3) Also, a lot of sites with galleries of videos have an icon that indicates "click to play". Is that part of the video itself or can I just create an image and then when clicked on, the video plays?
I do have Adobe Flash CS4 Professional, if that matters. And if mov file is more suitable, then how can I reduce its file size?
I have an mp4 that is wrapped (or published) by an swf. I have successfully embedded the swf in a web page but when I play the video from the web page the quaility is significantly degraded. Unfortunately I have no control over the internals of the swf so what I would prefer to do is to embed the mp4 rather than the swf. I understand Adobe Flash Player supports mp4 since version 9, but I haven't been able to figure out the html to make this happen. Here is the code I am currently using with the swf.[code]...
I am trying to insert and SWF into my webpage. How do I tell the movie to stop at the end, and insert a "play again" button? What do I need to do to insert that into my webpage.
I have a Flash slideshow that will only play in a browser if I click File > Open and open the .swf file locally and directly (not in a web page). It has never played in a webpage, remotely on the web server or locally on the Wamp server. It plays correctly in Flash when I test it.I have tried uploading the HTML page that Flash generates (without any changes), and it won't even play in that file. I have also tried using Dreamweaver's "Insert Flash" feature, and that was no good either.Here is the direct link to the .swf:
http:[url].....Here is the page that Flash generated:
In my scenario, a user visits my webpage and is prompted to select a Music folder on her local filesystem. The web app crawls the folder and indexes it, reading all the metadata from the songs.After a few moments, the index is presented in the page's HTML and the user chooses a song to play.I can't expect to do this with pure Javascript, can I? I imagine I'll have to rely on a heavyweight object (an embedded Flash movie, a Java Web Start, an AIR app, or a Silverlight app) to scan the files and play them.
I feel confident that I could do this with a clunky Java Web Start; but is it possible with an embedded Flash movie? I'm trying to make the process as clean and streamlined as possible for the user.How should I proceed?Which framework can make this dream a reality?And how many permissions screens will the user be forced to wade through?
I've recently uploaded my source files to my host and everything is running fine...except for one of my SWF files and I dont know whats wrong. It works when I run it on dreamweavers preview yet since I've uploaded it, it doesn't work. The file paths correct, the files are in the right folder yet still nothing. The address is doneanddone.co.nz . I already have a SWF that plays sound and that works but the video above the done and done text does not.
I'm editing a web page to access it only after login, so now it's a php page with an inital <?php session_start(); ?> and in the body of the page I test the value of a session variable.All works fine but in the header there is flash animation that don't load background picture.In the old version of the page this picture was loaded fine but not now.The address of old version of the page is this and new versione is this this.
I'm editing a web page to access it only after login, so now it's a php page with an inital <?php session_start(); ?> and in the body of the page I test the value of a session variable.All works fine but in the header there is flash animation that don't load background picture.In the old version of the page this picture was loaded fine but not now.
I work with 3d animation. Im have a problem with a personal website Im doing, I have a link in a button inside a flash movie to open a new window and play a youtube movie:
on (release) { var jscommand:String = "window.open('http://www.youtube.com/v/b0L4XLODhAA&hl=en&fs=1&','win','height=344,width=4 25,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);"); }
This works fine in Firefox but in IE it doesnt work, I then change the /v/ in the youtube link with /p.swf?video_id= and now I have the window open showing the small youtube thumbnail of my video but once a click play, nothing happens, I check it and is not loading anything.
I want to load the text on this page into flash, how would I go about doing that? And then after that, how would I load that text to the end of link? How do I make a text box?
I have got a game swf file and I am trying to load the file into my main webpage. However, the website works fine until I try and play the external game.
I can move the character around the screen but when I press the space bar on the keyboard it jumps to the website and the game is still playing in the background layers behind.[code]...
I've seen this done on many sites (it even happens on here when attaching links), where the screen darkens and an image gallery or form loads.
My question is, can this be done through Flash, but more importantly how to load a swf file this way. I noticed that the new Nike Running site has done it for their login functionality, where it loads the login box on a darkend screen, not sure whether the actual login is Flash but it's opened from within Flash.