ActionScript 2.0 :: Stay On One Frame For 10second And Second Playing Next Frame
Aug 17, 2005i want my movie to stay on one frame for 10second and second playing the next frame.
View 3 Repliesi want my movie to stay on one frame for 10second and second playing the next frame.
View 3 RepliesNew to flash here. Is there a way to stay in frames for a length of time WITHOUT creating a timeline animation? Using AS3 to control time in frame.
View 2 Repliesone thing that always annoyed me and that I never sought an answer for is, occasionally, when I want to play a single frame of a symbol, it won't stay on the frame I want. It will automatically default back to whatever frame # it is originally on.I read that it was because it has something to do tweening automatically syncing and snapping and I just have to turn it off. However, I can't figure out how to do that.
View 1 Replieshow 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 four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. The code below shows one of the actionscripts for a movie clip and then the main actionscript in the main movie.[code]...
View 1 RepliesI have an invisible button and only one mc, the mc loops 3x then stops, this is defined with as in mc.
Now i want to play the movie from the invisible button but only loop it once. Which means i would like to play it from frame 1 to frame 215.
And also when u rollout i would like the movie to stop and go to frame 1.
this is my button code so far
Code:
on (rollOver) {
tellTarget ("loader")
{
[Code]......
I have 5 frames in which a different song will be playing, this is the code i used on each frame:
var mySound:Sound = new Sound();mySound.load(new URLRequest("frameone.mp3"));mySound.play();
If im on frame 1 and click on the navigation button to see frame 2, both songs on these frames play simultaniously. how can i stop the background song on frame 1, and have frame 2 playing?
I'm making a banner for a "client" and he wants me to make it like yahoo's news banner. I understand that they're using HTML5 and I haven't learned that yet. Anyways, I did a great job learning the banner in less than a month.
(I'll try to make this short) The banner has a 5sec pause and then it proceeds to the next frame. It also has 6 buttons that will direct the user to a specific banner that he/she wants to click. He wants the banner to stop and stay on a specific frame and not proceed further. I have achieved that, but here's the problem.
[Code]...
Im trying to make these movie clips stay on the hit state when the user clicks. Can someone help me out? This is what I have so far.
View 1 RepliesSo basically i'm trying to allow the movieclip to play and once its played move onto the next frame.
I'm using Actionscript 3.0. and the movie clips around 6-7 seconds long.
I have a stop play button but it freezes play as opposed to what I require which is returning cursor to frame 1 to then await the next button click when an animation would play again.I currently have code for the button as :-
on (release) {stopMovies(this);function stopMovies(mov:MovieClip) {for (movs in mov) {if (typeof (mov[movs]) == "movieclip") {mov[movs].stop();stopMovies(mov[movs]);}}}}
I created a movieclip that follows the mouse up and down with easing, using this code:
onClipEvent (load) {
_y = 400;
speed = 5;
} onClipEvent (enterFrame) {
endY = _root._ymouse;
_y += (endY-_y)/speed;
}
What happens is that when I load the page the movieclip goes to where the mouse is right away, before I even put the mouse over the frame. How do I get the movieclip to stay at the bottom of the frame until I move the mouse over it?
I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.
I'm halfway to accomplishing this.
Here is what i used
Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
[Code]....
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.
Upon clicking the navigation button it plays the above scenes.
However it doesn't change scenes to scene "Home2".
What command do I enter for the movie to rewind to first frame on entering a certain frame / stopping in a frame?It's my first time using Flash, and I'm working on a double menu (second menu has a "close" button, where I want to get back to the first menu).
View 5 RepliesI was wondering if it's possible to set up a listener that is triggered when a movieclip hits a certain frame number.
I was thinking it would go something like this:
myClip.addEventListener(Event.ENTERFRAME, frameListener);
function frameListener(e:event):void {
if(myClip.currentFrame == 26){
[Code].....
A.swf has an empty_mc on it's stage. Loading into the empty_mc is B.swf. B.swf plays C.flv. After the C.flv is done playing I want B.swf to tell A.swf to go to frame 3
View 1 RepliesFlash CS3, and I have an FLV video(40 seconds) and a postcard which I want to show in the video farme after the video is complete. The postcard at the end will a link to a URL I've tried all the codes I could find on the internet, but I couldnt accomplish anything. I must be doing something wrong. Here is what I am doing:I put a FLVPlayback component in the first frame on the stage. Give the FLVPlayback component an instance name.Link the FLVPlayback component to a flv file on my server.Put the postcard in the second frame on the stage
View 12 RepliesIve got a standard flash file with the option to play one of three FLVs and when each flv is clicked it makes the others stop.What I need to do is set an action so that when an flv reaches the end of its duration it goes to a specific frame in the timeline?
ps. here is my code
Code:
stop();
import flash.events.MouseEvent;
import flash.media.SoundMixer;
[code]....
i have a movieclip on stage. it has 3 frames but is stopped with "stop():" so it only shows the first frame on mousedown i want it to play frame 2 for a duration of 1 frame then frame 3.
View 3 RepliesI hope I can ask this correctly. I'll paraphrase.
press_mc.onRelease = function(){
mover2_mc.play()};
This is a snippet of some code I'm working on. Currently I have a mc that you press that plays another mc. That mc that reacts has 5 frames, each frame with stop(); on each frame. I do a normal play code because it lets me play through and cycle back to frame 1 after frame 5 (so if I click the mc it eventually cycles back to the first frame and starts the process over again). If I do a nextframe it stops at frame 5, so that's why I use play.
press_mc click on it and it tells mover2_mc to advance a frame and recycles back to frame one to redo the process.Can I tell press_mc to play and skip a frame or to have it play a list of frames that I tell? I can't do a _currentframe +2 because it'll halt at frame 5.
I am trying to do some scripting in flash. I have some sprites and need them to playing one by one in the main, one in each frame. Then when they are complete let the movie move on to the next frame. how can I do this?
View 1 RepliesHow do I make a flash website begin on a frame other than number 1? I hope there's a way to do this.
View 3 Repliesi have a main page that works perfectly wen i just open my site, in it are buttons that takes me to three other minor pages, there are buttons in the minor pages that takes you back to the main page. when i click on these buttons and get i succesfully get to the mainpage, the codes don't work anymore and i cant click on the buttons to go to the minor pages.this is the code i use:
stop();
buttons.buttonmotion.addEventListener(MouseEvent.CLICK, klk);
function klk(event:MouseEvent):void {
gotoAndPlay("motionreal");
[code]....
So I'm creating a movie clip using flash... Is there any way to start playing the movie from a certain frame (lets say frame 550) which I hit Ctrl + Enter So I don't have to watch the entire movie to test it?gotoAndPlay(550) doesn't work.
View 2 RepliesI want to some how be able to play through time line after a button is clicked and then goto a specific location. Though this location does not stay the same each time.I'm creating a gallery which will have 3 sections and want thumbnails to fade in, then when you click another sections they (play) a fadeout and then goto a specified location (after a button click).If the purpose is not clear, comment and I will try and clarify.
View 1 RepliesLets say i had an animation and i also had four buttons. The animation would have 4 frame labels at different areas of the timeline. For example:
"Label 1" "Label 2" "Label 3" "Label 4"
now if i'm on the "Label 1" frame and i hit button 3. I'd like to have the animation play until it reaches "Label 3". Also if I were at "Label 4" and hit button 1, I would want it to play backwards to "Label 1" OR maybe it could either play through to the end and loop back depending on which way is closer.
I don't know if this is really possible. I know each labeled frame would require a stop() action, but i'm not sure how to make something play until it reaches a specified destination frame.
audio of a movie playing when I exit the frame - it's probably something simple that is yet evading me ...
The FLV works just fine, auto plays when entering the frame and uses a preset skin. The frame it's playing on has AS code stop(); on it.
I am using the following actionscript to load a external swf. I would like to actually start playing that movie at a specific location based on what is already loaded. I am using this tutorial here. what I want but basically lets say I have three swf's. A, B, C.
If I go from A to B I use this AS
Code:
B_bt.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "B"; container.loadMovie("B.swf");
} else if (_root.currMovie != "B") {
[Code]....
Ive got a standard flash file with the option to play one of three FLVs and when each flv is clicked it makes the others stop.
What I need to do is set an action so that when an flv reaches the end of its duration it goes to a specific frame in the timeline?
ps. here is my code
Code:
stop();
import flash.events.MouseEvent;
import flash.media.SoundMixer;
[Code]....
Weird problem going on right now. And I seriously don't know what this is about.
On my main timeline (new document)
I create a text. I convert that text to an image. I drag that image on my main timeline at frame 1.
Then I set opacity to 0%. Create a keyframe at frame 50. Then I Tween it. And at frame 50, I set opactity back to 100%.
When I test the movie (ctrl enter) it just doesnt show the tween AT ALL. It goes straight to the last frame.
When I just go to frame 1, and press enter. It does work like it's supposed to.