ActionScript 3.0 :: Create A Background Sound In Flash Website?
Oct 26, 2010
I'm trying to create a background sound in flash website. I created play/pause buttons and it works fine, but when the sound is over it stops. What I want is the sound to loop, not to stop. I tried different things but I can;t get it working as I wish. Here's my code:
Code:
var mySound:Sound = new dogg();
var myChannel:SoundChannel = new SoundChannel();
myChannel.addEventListener(Event.SOUND_COMPLETE, whenComplete);
function whenComplete(evt:Event):void
I would like to add background music to my flash website, but i have tried many ways of doing so. currently what i have is one movie clip which consists of two frames - one has the play icon and the other with a pause icon and the sound file. however, after some time and also a few button clicks, the sound repeats and results in the sound playing over the previous sound.
I have a website at [URL] The problem i'm facing is that after the preloader is done the homepage comes but the other menus still takes much time to load and the sound also take atleast 5 min ! :(
How can i make them all bind together so that after the preloader everything comes together at an instant completely !
I've been trying to make a flash website with a video background; I've been trying to use the FLVPlayer with no controls, but theres no loop option nor resize...all of my work is on Flash CS3
I am trying to put a flash background on my website that will loop over and over.I created the file in after effects but understand that it is best to export to flash to keep file size down.I have tried exporting from after affects using F4L, FLV, and XFL and always seem to get a file size of 2-4 MB.My video is only 8 seconds long and I exported at half resolution so I am unsure why it is so largeWhen I import F4L and FLV to flash and then export as an SWF file, the file does not work on my website(nothing shows). It seems to only work when I import as an XFL and then export as an SWF.Also, how do I get the video to loop? Do I do this in flash or in the object tags in my website
I'm making a website at the moment which will all be done in flash (currently 1000px wide x 450px height) - what i want is a background which is consume the entire width of the page regardless of what the users screen resolution is, im not sure if this is a html/css thing or a flash thing.
I've created a flash website at 960X600 pixels.I have a JPG image that I want to use a BG to fill the browser page.I can edit the index.html file. Should it be inserted there? the name of the BG is bg.jpg
I've seen a tutorial for changing the background inside of flash based on buttons to click. However, these colors were palettes and not of backgrounds such as jpeg. What I'd like to do is to create 3 buttons and place them on my flash website. These three buttons allow the user to click on them thus changing the background. So if you're visiting the about page and click one of these buttons, I don't want the user to go back to the home page after clicking.
I have a bit of a problem with sound.. I have a main container animation with background sound that's loaded with soundChannel..I also have an externally loaded SWFs with Movie Clip buttons that have a sound ON ROLLOVER on the timeline..after rolling off - I place the:SoundMixer.stopAll();to stop the button from playing the sound once the mouse is rolled off.. However, the problem I'm running into is that it also stops the sound of the main container movie cli
I am a beginner at AS3 programming. I like to make a flash with background sound (*.mp3 files from *.xml list). Everything works fine, but when I press "onClick" button I got output error.[code]
i want to create a flash website where the whole browser window is filled with a background image/photo which resizes proportionally when the browser window is resized. Has to be using as2.URL...
How do I get a sound to play throughout the entire flash site in the background? Go to [URL] and you will see what I mean. Its a great site by the way! In this "crucial limit" site, he has tunes playing in the background, and they keep playing despite how deep you navigate through the site, no matter what button you press, the song continues to play without stopping. [URL]
I need to have a flash intro for an ambulance that changes models and years while moving down the road ...something simple but can't figure how to get it started. Will be 3 different year/models.
I'm writing a private website.I want to add an animation of a paper (which moves a bit in its conrners).I paln the user to add some text in the text area in that animated paper.My program will read the text and save it.The next time the user comes I'll show him this animated paper with the text he wrote.
1) As a newbie to animation. Should I use flasf? Is there a nice freeware and simple alternative? I saw this site but thought maybe someone can tell from his own experience
2) How can I include text area in an animated paper?
3) How can fill animated paper with the saved data later on ?
There are twelve buttons that onclick go to a certain page labled in the movie clip "pages." I am trying to figure out how to get buttons 9-12 to be on the pages movie so when people click button 2 the pages will display page2 but with button 9 on it and button 9 has an onclick that goes to page9. I have everything working for the 12 buttons on the first page but when i drag the button to the stage of the movie clip "pages" it does go to that page directed to. I had the correct label names down and everything. The buttons work find if they are on the main scene but don't work in the movie clip. To solve this problem i just kept them on the main page, I may try to put them in the mouse over on the main page to solve this problem. Ok first frame is has this code. I know this is probably really easy. [code]...
I've been searching for a way to make a customized AJAX window, functioning so that when you click a link, an informational window pops up and the rest of the page is greyed out
I am a newbie programmer and i dont yet have any idea of the WEB. I wish to start learning a technology that will allow me to build websites( database driven) i dont know which one to choose. I know some actionscript3 and flash. Is it possible to create a database driven website using these alone? Or do i need to learn any other technology? If i do then what should i learn? I know j2se for the desktop and oracle SQL/MySQL
please show me a path. Also wanted to know if there is any technology like Wordpress for J2EE/flash OK so i finally got the feeling that i need to learn PHP anyway along with css and javascript. So it is fine. Also another query. Which CMS should i consider? Wordpress or Joomla?
I'm trying to create a flash menu for my website. Only the menu. I have it so when you roll over a button a new movieclip plays. When you click on the button it takes you to a new page. When you leave the cursor on the button the MC loops.I want to make it so when you roll off of the button the MC stops playing and plays the previously "clicked on" button's MC. Right now when you rolloff the loaded MC continues to loop.For example. I go to the website and click on a new page. A movieclip plays and loops if i go the menu and roll over a new button a new MC plays. And when I roll off of that button the old MC plays.
how to create an area on my flash website that is editable by others? I'd like them to be able to add photos online. So... a photo album type thing?how to achieve this? I'd like to have the uploaded images specified / limited area space (eg.75 pixles x 75 pixles) so the user could see it online after it's been uploaded. I use flash 8.
I was wondering if anyone knows if you can create a flash file with a transparent background. Ultimately i would like to insert my flash file (which is a website) into dreamweaver but i want it to interact with my background image in dreamweaver (which fills the whole browser page edge to egde) so it shows through my flash file which will have an opaque backgorund?
I am not great at flash and am making a website that has a few different tabs for different pages.How do I make different urls for each page?I want to track each page seperately.
I have what I hope is a fairly straight forward question that I hope you can answer if you write code with a Mac or are at least familiar with the process on a Mac? The person I have been working with to create my photography website uses a PC. Here is the problem. I am trying to use my Mac in order to create frames so that I can add 5 more images to a portfolio that presently has 15 images.
The code is in an index.fla file. If I want to create a new frame in the index.fla, let's say LOAD CODE 381 and want to use the same text that is already present in LOAD CODE 380 but with a few edits, I have no trouble going to the Action-Movie Clip and finding LOAD CODE 380 in the left hand column. The problem is, on a Mac, how do I create frame LOAD CODE 381 and then how do I copy and paste the text from LOAD CODE 380 into LOAD CODE 381? It looks like on a PC one can open LOAD CODE 380 in the Action-Movie Clip, highlight the text then right click on the red rectangular box in the timeline. By doing so (on a PC) one sees a drop down menu that gives the option to "copy key frame". What is the equivalent of the "copy key frame" on a Mac? I can see where on the Mac you can go to Edit >copy. Is this the equivalent of "copy key frame" on a PC? If so, once I "copy" the text how do I create the new LOAD CODE 381 so that I can paste the text into the new frame?
I've tried a few different things but mostly all I've been able to do is get the menu to open up pop up windows.
I'm trying to create a Flash Menu for a standard HTML website. I have the buttons all created and the menu all done, but the AS 3 for the links just doesn't seem to work correctly. Plus I can't seem to find a tutorial on here that fits what I'm trying to do.[code]...