ActionScript 3.0 :: How To Add Audio To Intro Movie In Game

Feb 26, 2012

I want to put audio on my intro movie [we're currently developing a game]. Once you press start button, a movie clip is being played together with an external sound. As soon as the user hits the skip button, the sound stops and you'll proceed to the main game. I cant make the sound STOP.

Code:
stop();
var introSound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
introSound.load(new URLRequest("intromusic.mp3"));
function intro(e:Event):void{
[Code] .....

If I do this, the audio will play the moment I run it [and I don't want that to happen. the audio must be within the intro movie only].
Code:
stop();
var introSound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
introSound.load(new URLRequest("intromusic.mp3"));
myChannel = introSound.play();

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Get A Skip Intro Link In Movie That When Clicked, Goes To The Last Frame Of The Movie And Plays It?

Jun 15, 2009

I need a skip intro link in my movie that, when clicked, goes to the last frame of the movie and plays it.

View 7 Replies

Professional :: FLV And Skip Intro - Make Note Of The Actual Time Or Keyframe In Which The Intro Completes

Jun 14, 2011

If I have an FLV that I've output as SWF with skin to have embedded into an HTML page, and now a 'skip intro' is needed - though I'd have to make note of the actual time or keyframe in which the intro completes...How is this possible? Clearly, a button would need to be added for that kind of interactivity?

View 3 Replies

ActionScript 3.0 :: Flash Intro (flv Imported) As Intro Page?

Apr 11, 2010

I have a movie clip that I imported into flash, used a skin and have a nice little player for this website intro. I want to proceed to the sites home page upon completion of the movie. Searched but the best I could come up with was;
 
player.addEventListener("complete",function (event:Object) { trace("doneVideo");new URLRequest("my link");});

View 5 Replies

MX Loading Main Movie While Intro Plays?

Nov 26, 2009

i want to make an intro swf which is small and loads quickly but i would like the main swf to start loading while the intro is playing. i'm not worried about the intro finishing once the main movie is loaded but i just want to the main movie to START loading while the intro is playing to cut down on load time.

View 1 Replies

Have A Movie Which Has A Intro Section Which Plays For About 15 Seconds?

Dec 16, 2009

I've managed to create some small and successful movie animations which loop when place on a website.What I'm trying to do is to have a movie which has a intro section which plays for about 15 seconds or so then moves onto the main body of the movie which then loops without showing the intro section again.

View 3 Replies

ActionScript 3.0 :: Movie Clip As Intro Page?

May 10, 2010

I have a movie clip that I uploaded as an .flv (so I could have the sound) as something on the timeline. I set up a button below the video to skip to the website (or welcomePage)However, I cannot get the button to work for some reason. Below is my script, am I missing something? Also, for whatever reason, now my movie clip does not autoload when it did before...I also do realize that I could probably condense the timeline, but I am just working teaching myself, so bare with me.
 
stop();
home_btn.addEventListener(MouseEvent.CLICK, welcomePage);resume_btn.addEventListener(MouseEvent.CLICK, resumePage);reel_btn.addEventListener(MouseEvent.CLICK, reelPage);photos_btn.addEventListener(MouseEvent.CLICK, [code]....

View 3 Replies

ActionScript 3.0 :: Linking Intro Movie For Website

Oct 16, 2009

I have an intro movie for my website, I know how to make it load another URL after it has played but how do I get it to load another swf. I know there is an easy answer that is escaping me.

View 1 Replies

ActionScript 3.0 :: End Intro Movie And Load Menu .swf?

Dec 25, 2009

I have a very simple problem here, I have googled around for awhile but it seems that its impossible to find specific flash subjects. What I have is 2 files, one is the intro movie for my flash project and the other is the menu. I need some action script 3 to end the intro and load the menu in the same box,

View 2 Replies

ActionScript 2.0 :: Build A Movie Which Has An Intro Animation?

May 27, 2004

trying to build a movie which has an intro animation (small one) using a tweening-playground, build a preloader into an mc that innitializes when the intro is done buuuuut it goes kinda weird, i uploaded the mc so if you could take a look at it

[URL]

View 14 Replies

IDE :: Flash Intro To A Movie Text Wont Show Up

Mar 11, 2009

When i make my flash intro to a movie my text wont show up can some one help??

View 8 Replies

ActionScript 2.0 :: Build A Movie Which Has An Intro Animation (small One) Using A Tweening-playground?

May 27, 2004

trying to build a movie which has an intro animation (small one) using a tweening-playground, build a preloader into an mc that innitializes when the intro is done buuuuut it goes kinda weird, i uploaded the mc so if you could take a look at it

View 14 Replies

ActionScript 2.0 :: Flash Intro - Creating Cookie For Specific Frame In Movie

Dec 21, 2009

I have a flash intro on my site and i would like to create a cookie so that if you have already seen it it takes to a specific frame in the movie is this possible?

View 1 Replies

Professional :: Making A Simple Game With Video Stills Matching A Running Audio Track?

Nov 18, 2010

making a simple game with video stills matching a running audio track.my audio is an MP3 i built in GarageBand. all works well in flash, but when rendered to QT, the audio and video go out of sync, and some video drops out too.have put all audios on their own layer and streamed them all too, set settings in Publish to 64, but still have same problem

View 1 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

ActionScript 2.0 :: Action Script To Import Audio Files Into Flash Movie While Movie Is Playing

Jun 10, 2002

Is it possible for action script to import audio files into the flash movie while the movie is playing. (Instead of manually importing a file from within the flash application) Or some way to load an audio file located at a remote url, that is not preloaded, and play it.I've searched through the action script reference guide, but have found nothing to do the job.

View 3 Replies

Actionscript 3 :: Replace A Movie A Movie In Flash - Dress Up Game?

Dec 8, 2010

I have a flash movie instance name "headArea" I want to load a external swf and swop the movie inside the headArea - replacing the head.I have the following code:

clickIt.addEventListener(MouseEvent.MOUSE_DOWN, swopHead);
function swopHead(event:MouseEvent):void {
var loadit = new Loader();

[code].....

View 2 Replies

No Audio When Test Movie?

Sep 7, 2009

when i use the "rest movie" function or even when i try to hear audio from the library - no sound. this problem is only with flash. all other audio programs work ok. i use cs3 for almost a year with audio - this is new problem which started few days ago.

View 1 Replies

CS4 :: Test Part Of Movie / Audio?

Apr 22, 2009

I'm using Adobe Flash CS4 for the first time to try and make an animation set to music (like the opening scene of an anime). I need to listen to specific portions of the song so that I can match the timing of my animations.

I know that you can press Enter and it'll Play, but I don't know how to start listening to the music at the frame I want. I also don't know how to stop the music once it starts playing.

I also know I can do Ctrl+Enter to Test Movie, but that always starts playing my animation from the very beginning.

I want to know how to watch/listen to a specific part of the animation, without having to play it stop to finish.

View 1 Replies

Show Audio Waveform In Flash Movie?

Dec 14, 2009

I'm trying to create a WAV audio player for a website which will display the audio waveform like this site does: [URL]

Is there a way to do this? I've spent hours searching the internet with no luck.

View 2 Replies

ActionScript 2.0 :: Sysnchronizing Audio With Flash Movie

Oct 25, 2004

I designed a flash demo. It works fine when you launch it. When you click on any of the buttons (play,pause,stop,nextscene or previous scene) the movie is no longer synchronise though the buttons functionality is working fine. What could be the problem? The audio is streamed. [settings: speech, 11KHZ][code]

View 3 Replies

Professional :: Possible To Control Timing Of Audio Placed Within Symbol Movie Clips?

Feb 18, 2011

I have created a series of Symbol MovieClips which I load through ActionScript on the first frame of the main timeline so that they play sequentially. I dynamically create each MovieClip, add it to the Stage, and setup an enter frame listener.On the last frame I stop and remove the clip, and repeat the process with the next clip.These animations play sequentially as intended. However each clip has an audio sequence on its timeline.These play simultaneously at the start of the main timeline.I've tried each of the Sound Sync options on the first frames within the Symbol clips.With the Stop setting the audio doesn't play, but Start, Event, and Stream all cause the audio to play at the beginning of the main timeline which seems to contradict the documentation I've looked at.

Is there a straight-forward way to sync the audio to the Symbol clips, or does the audio need to placed on the main timeline?I'd rather not do this as it is much easier to sync up the audio for each symbol clip with the animation when I can work with the smaller audio snippets and not have to test the whole movie.

View 7 Replies

CS3 :: Play Movie Clip Before Game?

Dec 30, 2009

I want to play a short movie clip at the begining of this flash game. I'm not sure what is the best way to go about doing this. I was thinking to create the clip on its own seperate layers and then just move my action script keyframe that contains all the code for the game after all the frames needed for the clip to play. Or do i need to make it a seperate .fla and just import it, i'm not sure how to do it.

View 3 Replies

Actionscript 3 :: Controlling An Embeded SWF Movie(audio/sound) File In Flex?

Jul 29, 2010

So I'm trying to get sound on my flex application. Then tried to load an swf movie with only audio in it.But when it loads on init(), it loops non-stop.Here's a sample code:

[Code]...

View 1 Replies

ActionScript 2.0 :: Flash8 Using On(release) More Than Once In A Movie/game?

Oct 2, 2010

I am making a game in Actionscript 2 where I need to open another "window" by pressing a button. The window is just a movie clip with some stuff on it, and a red X to "X" the window out.It all works out until I "X" out the window, and try to re-open it with the button.This is the actionscript code in my button:

Code:
on(release){
_root.window.gotoAndStop(2)
}

View 2 Replies

ActionScript 2.0 :: Movie Clip Detection In A Game?

Apr 4, 2002

I'm creating a game in which the user gets three wrong answers, and the fourth wrong answer ends the game. Each wrong answer is shown as a child movie clip getting attached to a parent in one of 3 movie clips on the stage.When all 3 movie clips have child clips attached, and a 4th child clip tries to get attached, the game ends. Anybody know how to write a script for this?

View 1 Replies

ActionScript 3.0 :: How To Add Memory To Flash Game Or Movie

Mar 9, 2011

I may be tackling a huge subject here but I was wondering how to make it so that if someone uses one of my flash projects and they close it that it would remember where they left off. For example there are many Flash Games out there with levels, and instead of having to repeat each level over and over, the game remembers the level you left off at.

View 1 Replies

ActionScript 3.0 :: Control The Volume Of Multiple Audio Tracks Embedded Within A Movie Clip?

Jun 9, 2010

What is the script to control the volume of multiple audio tracks embedded within a movie clip?

View 1 Replies

ActionScript 2.0 :: Loaded Movie And Don't Redownload The Whole Game When Parameter Changes

Aug 26, 2004

I am trying to make small games which will be displayed one after the another in sequence in a master flash movie. each game needs some external parameters like game.swf?para1=111¶2=222 Now I dont like that method because browser will redownload the whole game when parameter changes. So I am loading the movie by :

[Code]...

View 11 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

Aug 25, 2009

I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)

Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.

I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.

View 8 Replies







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