ActionScript 2.0 :: CS3 Make MC Play After FLV Stops?

Jul 27, 2010

I have a button that goes to a MC. In the MC I have a gotoAndStop to a frame where the FLV is. How can I make this MC go to the beginning after the FLV stops playing?

View 1 Replies


Similar Posts:


IDE :: Play Music File Once Only On Click Of Play Button Until Music Stops

May 1, 2009

Using Macromedia Flash Professional 8.

I have a website banner made in Flash. I have added a music file to it and Play and Stop buttons. I also have a Replay button to replay the banner animation once it stops.

I have put the music on a separate frame so that it will not play automatically when the banner loads. I have made the Play button direct to the frame the music is located at so that when clicked, it will go to that frame and play the music file.

The problem I am currently having is that if I click the Play button more than once, it will play the music file again on top of the current play-through.

So if I click Play, the music will play. Then if I click it again, the music will play again, but on top of the first instance of the music, so two instances of it will now be playing and it sounds horrible.

I would like to make it so that if you click Play when the music is playing, it will not play the music again until the music has stopped.

View 6 Replies

Actionscript 3 :: Sound.play() Stops Animation,?

Feb 13, 2011

I have a working Flash movie, using a couple of AS3 scripts. The main stage has some animation going on. My player.as plays some mp3 clips when I click a button. The problem is, the stage animation stops as soon as the sound starts ie. Sound.play() starts, then animation starts again when the sound ends.

The animation is based on

this.addEventListener(Event.ENTER_FRAME,loop3D);

so I gather something happens to ENTER_FRAME due to Sound.play(). What is weird is everything works perfectly on the Flash Test movie (ctrl+Enter). The animation does NOT stop during sound. What to do to make sure the animation goes on always?

View 1 Replies

ActionScript 3.0 :: Loaded Local Video Stops Play After A Few Seconds?

May 16, 2011

when I use the following function in my doc class to launch a local video, the video "freezes" after a few seconds. This happens no matter what video I am trying to play.

Code:
private function startVideo(e:MouseEvent):void
{

[code].....

View 7 Replies

ActionScript 2.0 :: Make Counter In Flash That Stops At Zero?

Apr 4, 2009

How do I make my counter stop at zero?

I used dynamic text boxes named "day","health", ect.

the first frame's code is

Code:
function run(){
if(!ran){
health = 100;

[Code].....

View 2 Replies

ActionScript 2.0 :: Make Green Movieclip Rotate Right And Left Until It Stops?

Dec 9, 2010

I'd like to know how could I make the green movieclip rotate right and left until it stops?

View 0 Replies

ActionScript 2.0 :: Make A Sliding Gallery That Plays A Certain Amount Of Frames And Stops

Sep 9, 2009

I want to make a sliding gallery that plays a certain amount of frames and stops. I have this script

[Code]....

Instead of play() i have tried putting a counter in like counter 8 but it does not work.
The idea is that if i click the contact button but im on the home page its scrolls over all
other pages and stops on the home page.

View 1 Replies

CS3 Delay - Button To Play Frame 10 To 40 Then After Playing From Frame 10-40 The Movie Stops

Jul 3, 2010

how to code this on a button

onrelease
gotoandplay(10); // i need delay here before activating the next code below//
gotoandplay(80);

the trick is.. i want the button to play frame 10 to 40 then after playing from frame 10-40 the movie stops and then play frame 80 to 100

View 4 Replies

ActionScript 1/2 :: Make Button On Rollover Starts Sound And Rolloff Stops Sound?

Jul 28, 2009

I have several buttons in a movie and I want to be able to rollover an individual button and play the sound for that button and when I rolloff I want the sound for that button to stop.

View 6 Replies

ActionScript 3.0 :: Swf Won't Play - How To Make It Play

Apr 6, 2011

I have added the following code to my website and the swf file plays fine on my firefox browser... not in IE and not on anyone else's browser.

Code:
<DIV style="position: absolute; top:0px; left:825px; width:320px; height:200px"> <script type="text/javascript" src="http://healthyalibaba.com/flashobject.js"></script> <div id="flashcontent" style="width: 320px; height: 180px"></div> <script type="text/javascript"> var fo = new FlashObject("http://healthyalibaba.com/images

[code]....

View 1 Replies

ActionScript 3.0 :: NetStream Choppy - Make A Character Start To Talk When The Sound Starts And Stop Talk When The Sound Stops

Aug 5, 2010

Need to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:

[Code]...

View 2 Replies

How To Make Mc Play Backward

Jan 4, 2011

This is en examle of what i want to make in a.s.: I have mc on stage, it has 20 frames, in frame 1 there is circle in left corner of stage, in 20th frame circle is on the opposite side of frame and there is motion tween between them. There is stop() script in the first and last frame. Now if i put on mc

on(rollOver){
gotoAndPlay(2);
}

it works ok but on rollOut mc rapidly jumps to frame 1, is it possible to make it play backward on rollOut and stop at frame 1.

View 3 Replies

Make The Movie Play Faster?

Aug 17, 2009

On a button click I would like to accelerate at a specific moment the movie (from 24 frames per second to 60) and then slow it down again to 24 frames per second.

View 2 Replies

CS4 To Make A Button Play A Movie?

Sep 6, 2009

what is the script in CS4 to make a button play a movie?I have a button that opens each page as a movie. To align the movie I use a blank movie.I have been using the below....what replaces it in CS4?

View 1 Replies

ActionScript 1/2 :: Make Something Happen After 4 MCs Play?

Dec 9, 2011

I need to have 4 buttons that play 4 different MCs. I want a 5th MC to play after all 4 MCs have been played.

View 1 Replies

Make F4V Files Play In A Webpage?

May 11, 2009

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.

View 7 Replies

Actionscript 3.0 :: Make A Swf Play Off Before The New Swf Is Loaded?

Jun 30, 2009

I want to have a 1.swf load into a container and when the user clicks a main nav button to load a new 2.swf into container I want the first 1.swf to play off and then the new swf to play on so it looks seemless. I have the code to do this with AS2, but it doesn't work with AS3.

View 1 Replies

ActionScript 2.0 :: Can't Make A Movieclip Play?

Dec 14, 2007

I'm really gettin wound up now by this. I have made the navigation for my site, and here's some sample code for making the button animation work;

Code:
on(rollOver) {
if (!(_global.about_a == 1)) {

[code].......

View 5 Replies

IDE :: Make Smooth Reverse Play?

Apr 2, 2009

I am using ActionScript 2 with following code on a button to play in reverse on mouse click:

on (press) {
onEnterFrame=function(){
gotoAndStop(_currentframe - 1);
}

[Code]...

View 4 Replies

ActionScript 2.0 :: How To Make Button That Play MC With Value Associated

Aug 29, 2002

I'm trying to make a button that plays a MC and has a value associated with it, so that when the MC instance plays it has a title that was determined by the button that was clicked. The MC Instance name is "LinkBar". In the MC LinkBar there is a Dynamic text Field which I've given the variable name "LinkName". So on rollOver of the button I set the variable "LinkName" and give it a value, Right?

Right now I have this actionscript on the button:
on (rollOver) {
LinkName = "The Setup";
_root.LinkBar.gotoAndPlay("Down");
} on (rollOut) {
_root.LinkBar.gotoAndPlay("Up");
}

View 3 Replies

Make Animations Play Immediately After A Preloader?

Sep 21, 2009

I'm using actionscript 2, I've got a preloader working, but now I'm struggling to make an alpha animation play immediately after the preloader. My attempts have ended up with the animation playing during the preloader.

View 2 Replies

Make Sound Effect Play On Collision?

Jun 3, 2010

Im an aspiring flash game developer struggling with a bit of code in my upcoming game, I want to play a sound(A "ding") everytime the main character touches a cookie on stage. The main character follows the mouse cursor, and the cookies fall down from the sky.

I have scripted the cookies main class, with this function(which works fine)
private function eFrame(e:Event):void{

Code:
private function eFrame(e:Event):void{
this.y += 3;//move the bell slowly downwards
if(this.hitTestObject(_root.mcMain)){//if this touches the main character
_root.mainJumping = true;//make him jump

[Code].....

And I was hoping it would go into the library and play the sound bit named "bellSound" but it doesnt do this, instead nothing happends, not even any errors under the "Compiler errors" So no im a bit lost, as I do not know how to make this work, so a sound is played when the main character touches the cookie.

View 3 Replies

ActionScript 3.0 :: Make A Button To Play A Sound?

Sep 4, 2008

I've been trying to make a button to play a sound, I've created the button and have a sound in the library, but can't manage to get the button to play the sound!!! I get this error: 1120: Access of undefined property knock_sound.

I think I need to give the sound an instance name but it says I need to use AC2 to do that!!

View 3 Replies

ActionScript 1/2 :: Make A Tween Always Play In Reverse?

Aug 20, 2009

I'm using the native Tween class and have a several tweens which make a button, when clicked, fly up into the corner of the screen. Then some time later yoyo() that tween to bring the button back to where it started.

The problem is that we have a replay button that replays from certain points on the timeline.

I want that if on the "screen" (not flash screens just our term for the range of frames that correspond to the timeline between those certain replay points) the user clicks replay that the button will always play the tween backward, i.e., flyout from the upper corner back to the "start" point.

Since there is no reverse() method or playInReverse() the only choice seems to be yoyo(). And one would think that fforward() followed by a yoyo() would make it always play backward. But I can't make it seem to work.
 
"Is there a way to ensure that a tween, regardless of how it last player or is still playing, can be made to go to the end and then play backwards?"

View 3 Replies

ActionScript 3.0 :: How To Make Flash Continuously Play

Jun 22, 2010

I have a countdown timer and a click counter and I don't want for either of those to reset if the page were closed / refreshed. What I want is that once the timer and click counter start, nothing will interupt them. But the problem is that if i simply go to another page and back it resets everything. Here is my code...

[Code]....

View 11 Replies

ActionScript 3.0 :: Make Sound Play On Click?

Jul 12, 2010

The sound only plays when I hold the mouse button down. I need  it to play when I click it. But it has to stop the sound from  playing twice import flash.media.SoundMixer; this.addEventListener(MouseEvent.MOUSE_UP,f); function f(e:Event):void{ SoundMixer.stopAll(); } here is a link to my swf file [URL]

View 4 Replies

Make A Flash Banner Swf Play Once For Visitor?

Nov 29, 2010

I am new to CS5 and i'm wondering how to make a flash banner play only once for the visitor. My home page has a search engine and every time the search the result will display with the banner playing again. this is the same for navigating through pages. I want the banner to stay on the last frame. its not looping, its just replaying everytime i navigate.

View 1 Replies

ActionScript 1/2 :: Click A Keyboard Key To Make A Mc Play?

Feb 22, 2011

I've been looking for this for years, and a good friend of mine that is a master at AS3 is not well versed in AS2, so I thought I'd ask the pros here.onClipEvent(mouseUp) on(release)I have code like these two examples on a mc (sometimes a button, I only use buttons in AS2) on the root timeline. Usually I use a mouse-click to activate them, but there's this one mc I'd like to have work via a keyboard keypress. What I can do is make the first frame of this mc blank, and the 2nd frame and beyond have elements to expose. So I was thinking I hit the key "v" to play this mc that resembles a volume overlay screen for this UI I'm working on

View 5 Replies

ActionScript 3.0 :: Make A Button Play Sound?

Mar 26, 2011

I have been working on flash in school, and the school upgraded from flash MX to flash CS5, i have then gone to make my project in AS3, however, it is very diffrent from AS2

My problem, is, all i want is a button to play a song from the libray (not from a URL on the internet like the code snippet) and my ICT teachers have no idea how to use AS3. I also need is a play, stop and pause button, and a volume control slider, i CAN do all these on AS2, i infact have it set up (but without a pause button) but, i cannot do this in AS3 and i need it done bady.

View 4 Replies

ActionScript 1/2 :: Make The Music In This File Play Only Once?

May 8, 2011

What action/script do write to make only the music stop looping?[URL]... Im using AS2 . Im kinda new to flash so can you please explain thoroghly.

View 7 Replies







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