ActionScript 3.0 :: Sound Will Keep Playing In Next Frames / Fullscreen Error

Sep 8, 2009

I got this video player in frame 3

i got this code

video_player.addEventListener(Event.REMOVED_FROM_S TAGE, stopMovie);
function stopMovie(e:Event=null) {
video_player.stop();
}

to make the player invisible when the user goes to other frame

but video player stays on the frame when the user used fullscreen function and goes back to the next frame.

View 4 Replies


Similar Posts:


Actionscript 3.0 :: If Press Play Button While The Sound Is Already Playing It Has The Same Song Playing In The Background

Nov 13, 2010

I have a sound clip that I'm loading externally into my flash file. The code I'm using looks like this and is placed in the as layer on the first frame,

var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
var lastPosition:Number = 0;
mySound.load(new URLRequest("introaudio.mp3"));
myChannel = mySound.play();
[Code]....

View 14 Replies

ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?

Apr 10, 2011

I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
 
This is the code that creates one of the sound objects

[Code]...

View 3 Replies

Stop The Playing Sound And Start Playing The Button?

Oct 3, 2009

So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;

Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.

View 2 Replies

Flash :: Playing Sound From Data Acquired From Sound.extract()?

Aug 1, 2011

I'm trying to play a sound using a technique found here (play the sound by sampling raw sound data gathered from the original with extract()), with the difference that the mp3 sound is embedded in the swf, not loaded externally. This is my code:

var soundBytes:ByteArray = new ByteArray();
var mp3sound:Sound = Sound(new Sound1_design()); // this is the embedded sound
mp3sound.extract(soundBytes, int.MAX_VALUE);

[Code]....

This works, in a way, except that the resulting sound is distorted (it has a kind of a metallic ring).

View 1 Replies

ActionScript 2.0 :: [FMX] LoadSound - Sound To Keep Playing While The Rollovers Load Sound

Jun 22, 2003

I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok. however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano. This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.

But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top. this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there's actually 13 little sounds.

[Code]...

View 3 Replies

Professional :: Stop A Sound From Playing If It Is Playing Already

Dec 6, 2011

ok so i have a button that plays an animation for fire when held down. and when realsed goes to and stops and frame one. when it reaches the end of the time line it goes to and plays at frame 10 and goes back to the end of the timeline. I have a sound for the fire animation that plays for the effect. The problem is the sound keeps going untill its over even if the button isnt held down. and when the playhead reaches the end of the timeline it goes to and plays and frame 10 and it replays the sound. if i hold it down it will just keep playing the sound over and over from start to finish. what i want it to do it when i hold the button down i want it to play the sound and when released it stops the sound where ever it is at. I also dont the sound to play again if there is a sound already going to stop it from playing 20 sounds at one time it gets loud and you need asprin after about 5 seconds of that.

View 2 Replies

ActionScript 3.0 :: Assign A Sound To A Soundchannel Without Playing The Sound?

May 4, 2011

The thing I don't understand is how to assign a sound to a soundchannel without playing the sound. All the examples I've seen do this.

Code:
_SoundChannel = _sound.play();
_SoundChannel.stop();

And how can I set a SoundChannel volume to zero before allocating a sound to it?

View 2 Replies

IDE :: Fullscreen Playing Video Only?

Oct 20, 2009

I'm using the normal

Code:
stage.displayState = StageDisplayState.FULL_SCREEN;

and it's just fullscreening the video part of my swf, not the entire swf.

View 6 Replies

Force Playing A Video In Fullscreen?

Mar 18, 2011

I need to know how it's possible to force playing a video in fullscreen mode?

Fullscreen is in most of the cases a function by ActionScript and is triggerd with a user action, like mouse click or double click.

The other way is to force playing a video in the mobile devices native player, like youtube does. I have no clue how this approach is realized.

View 1 Replies

ActionScript 3.0 :: Video Playing Fullscreen Instead Of Stage

Nov 23, 2009

I'm developing a kiosk-type projector file to play fullscreen & I'm encountering a strange problem. There's a video on the stage (720 x 480) and the stage is 1280 x 768. When the projector switches to fullscreen mode, the video expands to fill the height of the screen instead of the stage filling the screen. It's acting like the fullscreen mode is telling the video to play fullscreen.

View 6 Replies

ActionScript 3.0 :: Going Fullscreen And Playing In Order Not Random?

Jun 11, 2011

I'm working on an AS 3 file but I can't make it go to fullscreen. The other problem is that it plays a list of youtube video's, but I want it to be just looping the list, not playing them randomly.

ActionScript Code:
package 
{
import flash.display.*;
import flash.display.MovieClip;

[code].....

View 3 Replies

ActionScript 2.0 :: Fullscreen Video Playing At The Background?

Oct 19, 2010

i have a fullscreen video playing at the background.


Code:
//makes loader visible on initial load
bufferClip._visible=true;
//create NetConnection for playing video

[Code]....

and upon clicking a button, i want to goto a frame and will need to remove the video from that background mc (or rather make the video stop or disable the background sound.)

View 1 Replies

ActionScript 3.0 :: Sound Error #2044: IOErrorEvent No Controlado - Text=Error #2032: Error De Secuencia

Apr 8, 2010

I get this error message but all the code for the sound seems to be in order. It is only played after it is loaded. Error #2044: IOErrorEvent no controlado:

[code]...

View 5 Replies

CS3 Sound Control - No Sound Playing?

Apr 16, 2010

I am trying to embed some sound controls, and have hit a dead end. I made my play and stop buttons, imported my mp3,, assigned it proper linkage, and inserted this AS2 :

[Code]...

The buttons are named "play_btn" and "stop_btn" respectively. When I export it or preview it, hitting the play button does not do anything.... I hear no sound. What could be up with this?

View 4 Replies

ActionScript 3.0 :: Playing Specific Frames?

Apr 18, 2011

I am building a menu.. When I rollover the mouse over the menu, it opens sub menu Something like that...

(when rollover btn1)
(open submenu1)
(when rollover btn2)

[code].....

View 3 Replies

ActionScript 2.0 :: Playing Frames Backwards?

Jan 14, 2003

I remember reading one time that you can play frames backwards. I have this ball going along this line, and when it reaches the end I want it to go back exactly the same. Isnt there some kinda code to play the frames backwards? Also, the line is curved, so I cant just move it straight across real easy like. I had to do a lot of tweening.

View 7 Replies

ActionScript 2.0 :: Playing Backwards Through Frames?

Jun 23, 2007

I'm having a bit of a problem with getting the timeline to play backwards through frames.I've tried doing something like the following and thought it should've worked but it didn't,with this plz:

function onEnterFrame() {
gotoAndPlay(lastframe);
lastframe = _currentframe--;

[code]....

View 14 Replies

ActionScript 2.0 :: Playing Frames Only When Certain Criteria Are Met?

Jul 30, 2004

First, here's the movie in question: [URL]

the fla is here: [URL]

The concept is, you have this big picture and when you hover over a label the picture zooms in and you get a detail.

Problem is, say you're hovering over "Operations" then you just move your mouse down to "Customers". The movie sorta stutters over from Operations to Customers. What I would LIKE it to do is act as if I had removed my mouse from the button, THEN hovered over the next item.

Ie:

1. User sees big picture

2. User hovers over "Operations"

3. Movie Zooms In to Operations.

4. User hovers over "Customers"

key -->5. Movie zooms all the way back out, THEN zooms into "Customers"

so on...

So far I've tried to put a switch into the frames where the movie is zoomed all the way out. something saying "ok, we're ready to zoom in" then have the buttons say "if the frame says "we're ok" then we can zoom in". But that didn't work for me.

View 10 Replies

Actionscript :: Flash - Load Frames While Playing?

Feb 12, 2011

I have a question about flash is it possible to load first 2-3 frames of a a clip and while those are playing to load the rest?

Also if the answer is affirmative at the first question id it possible to change the loading order considering what happened in the first part?

View 2 Replies

ActionScript 2.0 :: Playing Loaded Swf For There Full Frames

Aug 12, 2009

I'm trying to work out the best practices to determine a loaded swfs (via loadMovie()) total frames, then tell the swf file (parent) that has loaded the mentioned swf (child) to play that swf for its total frames. The reason being is that I want to make sure the loaded swfs (children) are played properly all the way through regardless of lag, processor slow down etc. I've got this working but using a setInterval loop which relys on a millisecond variable in an xml file. I want to replace this with an function that does the above.

View 0 Replies

ActionScript 3.0 :: Movieclips On Frames Playing Sequentially?

May 18, 2011

How do I play a series of frames sequentially... (each one has a movie clip on it), and I don't want the next frame to start until the nested movie clip has finished playing?

View 1 Replies

ActionScript 2.0 :: Playing Sounds From ExternalSound.swf On Frames

Mar 13, 2010

I have an animated flash site with lots of small mp3s placed directly on frames to match the animations.URL...Placing sounds on the frames added to the overall file size but was fine till I tried to create a sound off/on button - it seems that to manipulate ALL sounds they need to be placed into a movieclip.After followind a Kenny Bellows sound tutorial I placed all the little mp3's in an external file externalSoundObjects.swf.[code]I can place the mp3's back on the animation's timeline if anyone knows how I can get a sound on/off button to stop ALL sounds (incl. in child.swf's).Otherwise if anyone knows how to get the external sounds working I think I can then create a sound on/off myself

View 7 Replies

Character ANiamtion In Multiple Frames Not Playing In The Game?

Mar 28, 2009

So I have a MC character and have him moving with the arrows. Now there are multiple(5) frames inside of this MC. Walk Animation(which is the first frame in the MC), Standing Animation, etc. So when I hit left arrow he walks and the walk animation cycles. BUT!!! When I crouch, etc. It doesn't loop the animation it just sits on a still image (as if I did not have an animation on that frame). What am I doing wrong?The code i'm using after my if statement is gotoAndStop(frame)Within each MC there are more MC's and so on, I don't know if this screws with it.Here is an FLA, the code is partly me but ultimately from disastamaans tutorial(on the kongregate website) for basic platforming. I'm just trying to learn right now.Forgot to add that currently I have a total of five frames.1 Animated-walk2 Animated-stand3 Animated-jump4 Animated-crouch5 Animated-crouch walkThose are my five frames, and 1,2, and 3 work fine, only 4 and 5 won't animate?

View 4 Replies

Flash8 :: Playing Movie Clips On Different Frames From A Button?

Apr 9, 2010

I have a button which when pressed I need it to play a frame on the main timeline which contains a movie clip. I also want the same button to play another frame with another movie clip after the previous frame has finished playing. I have attached a sample file of what I am looking to d

View 18 Replies

ActionScript 1/2 :: GotoAndPlay Playing Two Frames When Reaching A Certain Frame?

Jan 29, 2011

Basically I have a MC called 'plane3.' Inside that MC is another MC called 'plane2.' Inside 'plane2' is an animation on frame 5.(inside the MC 'plane3' the MC 'plane2' is on a classic tween going side-to-side from frame 1 to 99, once it gets to frame 99 the code gotoAndPlay(1); makes it go on loop back to the beginning)My question is how would I go about: when you click 'plane3' it lets the tween continue playing until frame 10, then on frame 10, it gotoAndPlay (100); in the same MC and ALSO plays frame 5 from inside 'plane2'

View 5 Replies

ActionScript 3.0 :: Playing Frames Forwards And Reverse Via Button

Jul 9, 2009

I have a image gallery where you can click a foward button or a backwards one. I have each image on every 15th frame. So when the person clicks the next button it plays from 1-15 where it stops if they click back it will go to 15-1 etc. I got it working with the 2 images so I can go between them but when I add a third it won't do anything. I execpt it's something to do with removing the event listener, but I'm not sure.

Code:
stop();
var bRewind:Boolean = false;
this.back_mc.addEventListener(MouseEvent.CLICK, onMouseOver);
this.forward_mc.addEventListener(MouseEvent.CLICK, onMouseOut);
function fireEvent(event:Event):void{
[Code] .....

View 4 Replies

ActionScript 3.0 :: Stop A Video Playing When Frames Changed?

Dec 30, 2011

I have a website.fla and when i change page i want the video to stop playing because at the moment it continues to play in the background even when on a different page.

View 5 Replies

ActionScript 3.0 :: Playing Audio And Moving Frames In Time?

Sep 14, 2009

What I'm looking to happen is that on frame 2 I want audio track 1 to play and:

after 1 min 45s move to frame 3
after 1 min 51s move to frame 4
after 2 min 47s move to frame 5
after 3 min 15s move to frame 6

How would I code this or what would be the easiest way to do it??

View 6 Replies

IDE :: Stop Sound With Frames?

Apr 20, 2009

I am using a sound on frames and when I am stopping the frame the sound continuous playing but the frame stops.

View 3 Replies







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