ActionScript 3.0 :: Slider_mc To Move On Y When Each Sound Finishes?

Feb 2, 2009

I've got a movieclip (slider_mc) -- it's two 800x150 rectangles spaced 450 pxls apart on y. (Stage is 800x600).I load in the sounds, then when each sound is finished playing it launches a function that plays the next sound, this works fine. I'd like slider_mc to move on y when each sound finishes. The first tween works like it should, but nothing happens when playSound_02 is launched -- the sound plays but the tween doesn't work.Here's my code:

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

[code]......

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Move To Another Frame After FLV File Finishes Playing?

Dec 7, 2009

I have several FLV files that play via the FLV playback component dragged onto the stage. The user presses a button and the appropriate FLV plays.

After it plays I what to move to another frame so the FLV is no longer on the stage and makes way for the next one the user selects.

View 1 Replies

ActionScript 2.0 :: Load 1 Swf Per Frame: Move Down TL As Each Swf Finishes Playing?

Jan 22, 2008

I have about 30 very simple external swfs--each contain an image with tweened fades and rollover-to-pause/rollout-to-resume actions. They're loaded onto the main timeline one after another as a slideshow. It's an auto-play and loop: each image swf loads the next one on to the empty movie clip after it is done playing. (i.e., swf1's last frame loads swf2, and so on.)

This set up was fine until I realized that I should have a place-marker--something that indicates where you are in the slideshow. No other functions (go to next/previous) for the marker. I just need to show graphically that you're seeing the 5th of 30 images. The graphic is 30 dark dots that get filled in as you progress.

To do this, I figured it would be easiest if I designate 1 frame per image (=one swf) on the main timeline. So, frame 1 will load 1.swf and when 1.swf finishes, frame 2 will load 2.swf. This will make it easy for me to color in the appropriate dots according to where we are in the slideshow.

What I think I need to figure out is to "pause" at each of the frames on the main timeline until the loaded swf is done playing. They're all different in length--some are 50 frames and some are 90 frames long.

I almost had it figured out from massive googling, but I honestly don't understand it well enough to tweak what I've found to do what I want it to do.

Also, if there is a way that I can easily make the "place marker" work without changing the way it is currently set up (1 frame in main time line; 30 swfs that load one another), that would be even more awesome!

View 10 Replies

IDE :: Canceling Sound Before It Finishes

Mar 20, 2009

I have a character that uses the arrow keys to move. Key_Down sends him 10px left or right per press and when you let go he stops. easy as pie. What I've now added in is that when you press either of those keys it also plays a "walk" sound. In order to stop this walk sound I then added Key_Up and specified that the sound should stop via SndChannel.stop();

At first it was working fine, but there was the issue that if you held down a directional button the sound would spawn multiple times and sound like crap. I added in a boolean to disallow this, making it so that only one instance will play at a time and it will loop. The problem now is, however, that the initial SndChannel.stop(); under the Key_Up listener has stopped working. Instead of stopping the sound immediately on key up, it waits until the sound file has finished and simply stops it from repeating.

View 1 Replies

ActionScript 3.0 :: Replay Streaming Sound After It Finishes

Mar 8, 2010

i am using this code to stream sound [code] i want to know how to replay sound after it finished but without streaming it again

View 3 Replies

ActionScript 2.0 :: Disable Arrow Key Until Sound Finishes Playing?

Mar 10, 2008

I'm trying to make the UP arrow key disabled until a sound has finished playing. Is this possible?This is because other keys also play sounds and I don't want the sounds overlapping each other. Thus I'd also be trying to disable those keys as well whilst a sound is playing.

[code]...

View 1 Replies

ActionScript 3.0 :: Flash To Hold On Frame Till Sound Finishes

Apr 22, 2009

I'd like to know if there's a wait to have flash hold on a frame till a sound finishes playing. I'm guessing that this will require some sort of EventListener but I'm pretty new to AS 3.0 and I'm not sure how to do it. I've searched the forms but cant seem to find anything on how to achieve this either, but I think thats because I'm not sure of the correct terminology.

View 2 Replies

ActionScript 2.0 :: Sound Flash - When The Audio Finishes It Goes To The Next Frame Automatically

Jan 28, 2010

I am trying to make a webinar in flash, I have frames and in those frames I need to insert audio and when the audio finishes it goes to the next frame automatically. but I also have a menu bar and when I click on a button to take me to a frame i get a whole load of audio going on. I just need it to go to that frame and play the audio Just want to be able to have it play though, when the audio finishes it goes to the next frame or if i click a button on the menu it takes me to the frame i need,

View 1 Replies

ActionScript 2.0 :: Applying A Timer To A Slider_mc?

Aug 16, 2008

I have a slider_mc which is currently being controlled by a mouse action

var value = 0;
bar._x = value;
bar.onPress = function(){

[Code]....

how can I apply a timer to automatically move the slider? eg a timer to count from 0 to 100 or alt replace the slider with a timer so that the image gradually changes from grey to color

here is the source [URL]

View 2 Replies

ActionScript 3.0 :: Move An Object With Sound?

Jan 7, 2012

i'm creating an interactive experience and I need to move a bar on screen reacting to the volume of people sreaming at a microphone. Like a CLAP-O-METER... is this possible with ActionScript?

View 1 Replies

ActionScript 2.0 :: Store Sound Level To Move A Mc?

Jun 2, 2008

I'm trying to develop a game that will use sound to move an mc. I want to be able to store where the level of the sound bar is after 3 seconds. Depending on how loud the player shouts the more power they will get.This is what I have so far:

// set up microphone object
_root.createEmptyMovieClip("myAudio", 1001);
_root.myAudio.attachAudio(Microphone.get());[code].....

View 3 Replies

ActionScript 2.0 :: When I Move To The 2nd Scene, The Sound Stop Looping?

Apr 30, 2004

My swf works with scenes. In the 1st scene i build a sound object :

PHP Code:

mysound = new Sound();
mysound.attachSound("thesound.wav");
mysound.start(0,loop);[code].....

but when i move to the 2nd scene, the sound stop looping... I could restart it using _root.mysound.start(0,loop) but it would restart the sound when you move from scene1 to scene2 so cut it up in the middle and restart which isn't so nice..

View 1 Replies

ActionScript 2.0 :: Move Clip - Stop After Sound Has Played Once

Jul 31, 2008

I am trying to play a sound clip using actionscript 2 the code I am using is attached to a button and the code I used is the following.

[Code]...

My problem is that the sound clip loops and I do not want it to do so. I have other animations going on on the stage. I tried to place the stop(); command but I do not seem to be able to make it stop after my sound has played once.

View 2 Replies

ActionScript 2.0 :: [FMX] Dynamic Sound - Move Movie To The Server

Nov 15, 2003

I have this script in the first frame of the first scene of my movie

[Code]...

which works fine when I test the movie locally, but when I c it to the server I get nothing. I tried using a .wav and a .aiff and still get nothing. Does anyone out there know why this is? Is it a server issue...maybe something to do with mime types? I'm at a loss.

View 5 Replies

Professional :: Creating Rollover Sound - Stop Once Move The Mouse

Feb 22, 2012

What I want to create is a group of 13 images and upon rollover each image would make a different sound. I don't want the sound to stop once you move the mouse though because I want a few different sounds playing at the same time. At this point I don't really care whether they play for their whole duration or just for another 15 seconds! I'm doing this for Uni and the guy said it wasn't that hard.

I have some basic knowledge in HTML code, but I am a complete newbie to flash. I've downloaded Flash C5 and that's about as far as I've got! I'm not entirely sure which template if any I would need to use. I can't pay back in knowledge since I don't know anything, but I could bake you cookies?!

View 1 Replies

Professional :: Export To SWF Never Finishes

Mar 12, 2011

I'm working on a 3 minute animation that is 53.7 MB right now. I periodically export the file to swf to see how it looks as I'm working on it.
 
It got the point where it was taking around 30 seconds to export which I'm used to when my animations get longer. However, now it constantly gets stuck at 90% and I get the rainbow wheel cursor. I waited 30 minutes thinking it needed to catch up with itself and nothing changed. I always end up having to force quit out of Flash because it's not responding.

I've tried numerous things to try and get it to export such as quitting and restarting Flash, doing a complete shutdown and starting Flash, and copy pasting all my frames into a new Flash file and saving. No matter what it always stops at 90% and no longer responds.

View 2 Replies

IDE :: GotoAndStop After Tween Finishes?

Jun 12, 2009

how do you use the gotoAndStop after a tween has run?

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;

[Code]....

View 2 Replies

IDE :: Start When Movie Finishes?

Sep 20, 2010

I have a movie that starts as the intro to the site. However, if it doesn't load quick enough, the rest of the site loads and cuts off the movie. How can I make the 2nd part play only after the 1st is completely finished?

View 2 Replies

ActionScript 2.0 :: Hiding SWF After FLV Finishes In HTML

Jan 30, 2009

I am attempting to hide a SWF file that has the AS2 FLV component in it only after the FLV has finished playing. How would I go about this?I've searched google fairly extensively and had no luck.I've found a way to hide the Div the SWF is in using a timed Javascript event that is external to the SWF, but I'd like to find a more elegant solution.

View 4 Replies

ActionScript 2.0 :: SWF File Play After The FLV Finishes In MC?

Aug 13, 2009

how to write script how to get the SWF file to pop up after the FLV video finishes..at the end of the FLV video I only need the SWF to pop up..

View 16 Replies

ActionScript 3.0 :: Loading External SWF When First One Is Finishes?

Jun 23, 2011

The code I have so far is included below. Right now the first swf (first of two loaded into main swf) (intro.swf) loads fine on mouseclick of the "go" button. However I would like the first swf to unLoad and the second swf to load ("europe.swf"). This will be a one frame swf that will link to various others. After multiple tutorials/forums I can't figure out how to get the second swf to load while the first unloads.
 
import flash.display.MovieClip; import flash.display.Loader; import flash.net.URLRequest; go.addEventListener(MouseEvent.CLICK, goIntro); var loaderIntro:Loader  = new Loader(); var contentIntro:MovieClip; function

[Code].....

View 5 Replies

ActionScript 2.0 :: Hiding An SWF After A FLV Finishes In HTML

Jan 30, 2009

I am attempting to hide a SWF file that has the AS2 FLV component in it only after the FLV has finished playing. How would I go about this?

I've found a way to hide the Div the SWF is in using a timed Javascript event that is external to the SWF, but I'd like to find a more elegant solution.

View 4 Replies

ActionScript 3.0 :: Setting X Value After Tween Finishes?

Oct 13, 2009

i'm using the tween class to move a movieClip around the stage, depending on what button the user selects... the movieClip starts in the center of the stage and moves to where I tell it to in the tween. The begin property of the movieclip is its current position (characters_mc.x). This all works until I want to move the movieClip again, and it starts from the center of the stage instead of its newly landed position... So the question is, how can I get the tween to start from where it previously landed, instead of always from the center? Shouldn't the value of the x position of the moved movieclip change as it is moved? Any better way to do this?

ActionScript Code:
var myTween:Tween = new Tween(characters_mc, "x", Regular.easeInOut, characters_mc.x, 95.8, 2, true);

[code]......

View 3 Replies

ActionScript 2.0 :: Getting Swf To Go To Webpage After Movie Finishes?

Oct 24, 2009

I'm kinda new to Actionscript still and I found a code for an external movie (that's in an FLVPlayback component) to play in a container after a preloader - it can be seen here: [URL]..at the end of the intro clip, i want the site to go to another page automatically i'm having trouble because i think i'm supposed to use getURL, but i don't know how to tell it to go there only after the external movie is done. here is the code that controls the external movie:

HTML Code:
import mx.video.*;
stop();
this.attachMovie("FLVPlayback","my_FLVPlybk",{width:815, height:540, x:100, y:100});
my_FLVPlybk.contentPath = "http://www.stillpictureproduction.com/dynamic/stillPic.flv";

View 1 Replies

ActionScript 2.0 :: Button Appear After Movieclip Finishes?

Feb 13, 2010

I need button to appear after movieclip finishes. I was trying to insert code to the last frame of movieclip, _root.myscene.gotoandplay(140)...... and lots of different codes. But then I realised , that you cant control maintimeline from movieclip.

View 9 Replies

Actionscript 3 :: Sound Latency - Set It For Any Silence Before The Actual Sound By Calling The Sound

Apr 16, 2011

I am triggering short sounds dynamically from the library for a game (Specifically Air for Android). When the user clicks a button the sound can take up to 600ms to actually play. I have set it for any silence before the actual sound by calling the sound like so:

[Code]...

All return the same results. I know there are threads here that talk about this but none have offered a real solution that I can find. Is there no way to cache the sound or store it in a buffer?

View 1 Replies

Movie Streams Before Preloader Finishes Loading It?

Jul 11, 2009

I have created a very basic preloader using flash components 'Loader' and 'ProgressBar". It's job is to load an external swf movie clip/file.

Problem: When the preloader has finished doing it's 'thing', i.e. reaches 100%, it loads/or seeming reveals the external movie already underway i.e. not at the first frame.

I've read a few posts from "Whispers", and have concluded that the problem is that the movie is streaming whilst being loaded. And also that i need to be using "init" in regards to 'listener'.

However i really want to be able to apply this to the code i am using it, as i had just kinda gotten to grips with it (the code).

Is anyone able to tell me what a need to alter to get the preloader to finish loading the movie COMPLETELY before it starts to play.

------------
myProgressBar.mode = "manual";
myProgressBar.setProgress(0, 100);
myProgressBar._visible = true;

[Code]....

View 3 Replies

ActionScript 3.0 :: Trigger Function When Loaded Swf Finishes

Oct 7, 2008

I'm making a site that loads external swfs based on which button is clicked. When the swf loads it plays an intro and then stops at a certain point. My goal is that when you click another button the current swf plays an outro before the next one loads.The problem I'm having is making the outgoing movie trigger the function that loads the next.At first I tried just adding loadNextMovie(); to the last frame of the loaded swf. But for some reason this causes the two stops in the file from working so the thing just keeps looping. I have no idea why adding this function call would prevent stop(); from working.Is there another way to have the end of movie trigger the function? Also, why doesn't adding loadNextMovie(); to the last frame of the loaded swf work?

View 4 Replies

ActionScript 1/2 :: GotoAndPlay Next Frame After External FLV Finishes

Jul 31, 2009

The subject title pretty much tells it all. I've got a flash project where a video component plays an external flv file. I've got a different flv file loaded at each keyframe. Right now the flv plays and then it stops and waits for you to click on the next video you want to watch. I want it to automatically go to the next keyframe and start the next video.

View 5 Replies

ActionScript 3.0 :: Movieclip Plays Before The Preloader Finishes

Apr 12, 2010

here is my AS3

[Code]...

I do have stop(); on the 1st frame of the portfoliohome.swf, but It plays the movieclip(my intro) before the loader finishes. Is there a way for me to move the play head to frame 2 while I have the stop() on the frame 1?

View 3 Replies







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