ActionScript 2.0 :: Make A "continue" Button Appears After Movie(flv) Stop
Feb 10, 2009My work need me create this flash:
When movie(flv) stop, one "continue" button appears, so you can click on it to go to next page.
My work need me create this flash:
When movie(flv) stop, one "continue" button appears, so you can click on it to go to next page.
I am a novice and have just completed my first animated movie. The movie is currently looped and I have created and invisible button the size of the frame with the intention that a user can click on the movie image to stop it and on second click continue the movie from where it stopped. I have used the AS event handler method to stop the movie. I have tested it and it works. But I cannot figure suitable code to restart the movie.
Two questions;
1. Am I going about the task the right way? (should I use two buttons, one stop, one start)?
2. If my approach is feasible, can anyone give me the correct AS to re-start the movie and put me out of my misery please?
How do you make a flash movie where you press a button and a number (lts say three) appears in a text field?
View 6 RepliesHow do you make a flash movie where you press a button and a number (lts say three) appears in a text field?
View 6 Repliesi am working on a survey form in MX-04 Pro. I have the main .swf file embedded in an HTML page. The document's width is longer than the viewable screen so the person taking the survey has to scroll down to answer the remaing questions and hit the "continue" button to proceed to the next page/frame in the movie. When the user hits the "continue" button the next frame in the movie appears but the HTML page is still scrolled to the bottom. Is there any ActionScript I can inclued in the frame or continue button to make the movie/survey appear at the top of the html page when the user hits the "continue" button?#2
Is it possible to make the items in a List component sort randmoly? or maybe alternate between "ASC" & "DESC" order? Furthermore, there would be an "Other" option included in my list but I would like that to remain at the bottom of the list while the other items in the list were sorted randomly?
Why is it that when i have button in a movie clip and that movie clip is a draggable object the button becomes inactive? How can i have both the button and the movie clip draggable and the button continue to function. below is the script i have for the draggable movie clip, which has the button contained within that:
[Code]....
I want to make one button to play & stop my movie! what is the code?
View 14 RepliesIs it possible to make a MC in flash and then randomise where it appears within the movie?
View 7 Replieshow to do more AS than tweens.I have this script on my MC on frame one
Code:
onClipEvent(enterFrame) {
speed = 17;
this._x -= speed;
}
i have a MC moving across the stage, i tried stopping it with a delete onenterFrame but it will jump and not stop.. my second quesiton is, after i get it to stop, how do i continue the timeline and not repeat frame one,
I created a flash site with four pages with music playing in the backround. on one page I want the music to stop and continue once you leave that page.
View 2 RepliesI made a webiste with bg sound home, portfolio, gallery, contcts. This are the links. when click portfolio, which contain a flv file, when clicking the flv file bg music stop and video will play smoothly.But if i navigate to other links the sound from the flv remains their and my bg music not playing also.. one code SoundMixer.stopAll(); i got this code b4, it vil stop all sounds... i dnt need to stop the background music, i need to stop only my flv video sound.. there's a bg music playing, when entering to the portfolio section thers a flv video vth sound. i can stop all other sounds ven playing this flv video but i cant stop this sound ven navigating to other sections and i need to continue the bg sound ven navigating to other sections...
View 1 RepliesWhile it comes close the following AS appears to often stop the video when there is about a second left. You can tell because the audio is not cut off & continues to play.[code]
View 6 RepliesSorry for the lack of a better title. This is a clear as I can postulate the question, so forgive me lack of coding background. The situation is this: inside a MC there are frames with a pause script as such...
[Code]...
want that everytime someone has wrong a letter, a frame of my movieclip appears and stop there until there's another error. I did it this why, but appears all the movieclip in the very first error. Here's the code.
public function entradaTexto (event:KeyboardEvent){
var charpress:String=(String.fromCharCode(event.charCo de));
var trouve:Boolean;
[code].....
give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck
View 2 RepliesI want to make a button open a new scene,I have that working but it keeps looping,How to make the whole movie stop at the end of scene 2,Ive tried putting stop(); but that brings errors,I want to stop the whole movie, How would i do this?
View 1 RepliesI've downloaded a template from [url]..... but i cant make it stop.So i cant use it in my intro because it is always playing again and again..This is the code:
ActionScript Code:
import fl.transitions.Tween;import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.text.Font;[code].................
PS: this is an exersice for my university that's not going to be published.
What code makes my movie only play once?stop() ; <-- Not sure if thats even code
View 1 Repliesfor (i = 0; i < _root.myArray.length; i++) { _root.searchAndDestroy(); }
how do i make the for loop continue only after _root.searchAndDestroy(); has finished it's task?
I want to see a command (or function) That pauses the script for a X amount of time and then after the time passes, the script will continue normallyHere's what I'm talking about:
View 4 RepliesI have a button that I only want it to work when certain conditions are met, and if not, then this button will not work.
homeMC.gotoSleep_butt.addEventListener(MouseEvent.CLICK, toSleep);
function toSleep(evt:MouseEvent):void{ dayChange_MC.gotoAndStop("1"); day += 1;//add 1 to var day stat_day.text = String(day);}
[code].....
i have created my flash document in CS4 using AS3 and everything is done apart from the two links i need to add on two buttons i have created and i need to write the script to make the movie stop instead of looping.
View 6 Repliesim making a flash animation with a background two sets of text an invisible button and a song. im trying to make the the animation start when the mouse rolls over and have it stop and reset to the beginning when it rolls out. on my invisible button (first layer) i have
on (rollOver) {
play();
}
[code].....
I am trying to duplicate this effect here [URL]
In particular how you hover your mouse over a section and a group of images slide left or right, but the move quickly to begin with and then slow down....
This is my movie here [URL]
I have the button areas working correctly..I just want them to slow down when its time to stop?
In AS2 I use an interval function to make the movie stop in a specific frame for x second and they play again Example:I add this code on a specific frame 1:
var count:Number = 0;
var maxCount:Number = 35;
useHandCursor = false;
[code].....
Basically I have a flash swf file (main.fla/main.swf) with 4 different movie clips.I figured out how to make the movie clip stop on rollover but now I am stuck on trying to load some xml content in my flash swf file.I have loaded xml in flash before but for some reason I cannot figure this one out. I have included my flash source file for anyone that can help.You can download it here:
[url]
Also Included is a file called "main-1-visual.gif" in a the folder called "What it should look like". I numbered the xml variables that need to be loaded:
1. The logo at the top
2. The title
3. The subtitle
4. The content text
5. Another title
6. Related links (This needs to link to specific URL links)
What I am trying to accomplish is this:
When you rollover one of the molecules (balls) that specific movie clip pauses (This works fines right now). BUT I also need to have a xml file specific to that molecule (ball) to load on the right side (see image "main-1-visual.gif") in it's appropriate movie clip. I also need the loaded xml to stay active until you rollover a different molecule (ball).
I have a movie clip called Lion Beginning_mc, inside of it I have 3 Key Frames and Inside each and one of them I have different shapes.
For example:
Key Frame number 01 - Dog
Key Frame number 02 - Cat
Key Frame number 03 - Mouse
I want to move this movie clip "Lion Beginning_mc" form Key frame number 1 to Key frame number 20.I want the Dog,Cat and a mouse to change between each other only once while moving from Key Frame number 1 to 20.And then when the movie clip "Lion Beginning_mc" reaches his goal another movie clip or a frame (with a shape) will start.
I am working on doing a clickable menu in flash cs4 and i have made my movie clips that animate each menu item on rollover (I did this by putting the movie clip into the "over" state inside the button which resides on my main scene)When I test it that all works fine each movie clip plays on rollover. But when I roll off the button it cuts the animation short.
What I want it to do is continue the movie clip after I take my mouse off the button and hold in that end frame until I have rolled over another button. But still I want it to play through the movie clip if I roll off one button and onto another. So if someone rolls over all the menu buttons they each play all the way through but will disappear after end frame and only the last button that i have rolled over will remain at last frame of its animation.
i want to continue my program after user click on a button.
ex: when click on group1 button assign groupVal = 1 and continue the program.
I found this code online. it is for a image gallery that fades in and out as it transition from one image to the next.. the images are load through an array command... it loads the first image, etc.... what I wanted to know is where should i put a Math.floor(Math.random()*this.pic_arr.length); in the string of code... to make the gallery start randomly in the array and then continue onto the next image... also, for some reason, there is not a common directory for all the images, like this script:
[Code]...