ActionScript 2.0 :: CS3 Make MC Play After FLV Stops?
Jul 27, 2010I 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 RepliesI 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 RepliesUsing 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.
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?
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].....
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].....
I'd like to know how could I make the green movieclip rotate right and left until it stops?
View 0 RepliesI 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.
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
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 RepliesI 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]....
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]...
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.
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 Replieswhat 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 RepliesI 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 RepliesI 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.
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 RepliesI'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].......
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]...
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");
}
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 RepliesIm 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.
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!!
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?"
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]....
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 RepliesI 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 RepliesI'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 RepliesI 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.
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