ActionScript 2.0 :: Playing To A Specific Frame?
Mar 29, 2007
Lets 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.
View 5 Replies
Similar Posts:
Jul 30, 2008
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]....
View 10 Replies
May 5, 2010
I am making a simple application, 4 pages of information with the navigation buttons in a bar along the bottom of all four pages. (easy right!)
My problem is, i won't the information (pics,videos etc) to animate into each page when selected.
I can make them animate in by using the gotoAndPlay () method. BUT when i do this it just loops through all the remaining pages till the end.
gotoAndStop () doesn't play the animations, but the navigation works find.
View 2 Replies
Jun 18, 2011
I am doing a presentation in flash in movie languages I have 7 buttons when some body click button 1 it should go to a new movie called animate frame number 2 when some body click button 2 in movie language it should go to movie animate frame 6 if people click button 3 in language movie it should play movie animate frame 11 like that for all 7 buttons I have used the following code but its always going and stopping at frame number 1 in animate movie
Here is the code:
button 2
on (release) {
unloadMovie
loadMovieNum ("animate.swf", 6);
}
button 3
on (release) {
unloadMovie
loadMovieNum ("animate.swf", 11);
}
View 2 Replies
Jan 19, 2006
I have a movieclip that is comprised of multiple images.These images are used as the backdrops of various different pages of my portfolio.Every image is in a specific order, so if the user decides to go from page 1 to page 4, it will pan through the first three pages quickly before stopping on the 4th page. Simple Enough.The problem is I want them to be able to also do this while manipulating the timeline in reverse. So say if they're on page 4 and want to go back to page 2, it will 'rewind' the timeline and stop on page 2.know there are plenty of tutorials out on how to play a timeline in reverse, however none of which discuss stopping automatically when reaching a certain point that is before the beginning
View 8 Replies
Mar 7, 2004
What I want to have happen is when you mouse down on the button/MC the block_mc will first jump to frame 40 and then it needs to check and stop when the block_mc reaches frame 12. I have attached a simplified version of what I was trying to do
View 5 Replies
Mar 7, 2004
What I want to have happen is when you mouse down on the button/MC the block_mc will first jump to frame 40 and then it needs to check and stop when the block_mc reaches frame 12. I have attached a simplified version of what I was trying to do
View 5 Replies
Nov 28, 2009
when a external swf file gets loaded into main swf file, i need to detect while playing external file reach to end so that i can unload that file and move to another frame on root of main file. I am not getting how to identify external swf play reach to end so that i can unload swf and jump to root specific frame of main swf.
View 1 Replies
Mar 31, 2006
i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?
View 2 Replies
Sep 15, 2010
how do i export specific frames not all frame. ex: if flash has 1 to 200 frames. here i want to export 51 to 150 frames as a movie. if there is any command or plugin to export movie like this.
View 0 Replies
Dec 3, 2009
I have been doing really well figuring everything out up until now.[code]How it stands, what is this link pointing to? Can I make it target a specific frame in a specific movie clip?And if someone would be so kind and explain what this is saying in 3rd grader terms.
View 3 Replies
Sep 21, 2009
Basically once my animation loads I want to pull in an external SWF at a specific frame, basically like the "home page" swf that will display first. Underneath that I will have "About Us, Contact, etc..." and those will each load an external SWF into my movie clip. My movieclip right now is called mcHolder. Here is the code I am currently using for the buttons:
Code:
//About Us Button
function test2(evt:Event):void{
[code].....
View 1 Replies
Sep 1, 2010
I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) { _root.gotoAndPlay("cont"); _root.smallbutton.gotoAndPlay(5);
View 7 Replies
Aug 6, 2009
if its possible, via AS3, to create a frame label in a movieclip on a specific frame.
Obviously I can do it by manually by setting up labels on the timeline within the target movieclip, but I would rather use an array so I can loop through it, creating a label name on a the specific frame each time?
so for example I would end up with:
myLabelOne on frame 10
myLabelTwo on frame 25
myLabelThree on frame 115
etc
View 3 Replies
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
Apr 8, 2010
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 Replies
Sep 16, 2008
I've got the following script working correctly. When button1 is clicked it populates a list with XML driven items. When each list item is selected the description is presented in a text area.
I'm having trouble however, with playing a specific FLV when the item is clicked in the list. I can get it to work by specifying a specific vid.source = ("http......") by I need each item to play a different FLV.
button1.addEventListener(MouseEvent.CLICK,play1);
lb.setStyle("contentPadding", 0);
function play1(e:Event):void {
var loader:URLLoader = new URLLoader();
[Code]....
View 4 Replies
Apr 18, 2011
I am building a menu.. When I rollover the mouse over the menu, it opens sub menu Something like that...
(when rollover btn1)
(open submenu1)
(when rollover btn2)
[code].....
View 3 Replies
Apr 22, 2007
i want to play different movieclips in specific dates for example if the computer (system) date is 1 January i want to play the movieclip named "santa" if the date is 14 february i want to play the movieclip named "valentine"
View 9 Replies
Jan 7, 2009
I 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]......
View 12 Replies
Aug 7, 2010
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?
View 11 Replies
Nov 1, 2004
I am loading a swf into an empty MC with this code:
on(release) {
loadMovie("movie.swf", _root.container);
}
what I want to do is also go to a specific frame or frame label in that loaded movie. I thought I could do it by adding something like this:
_root.containter.gotoAndPlay("frame");
View 9 Replies
Jun 3, 2011
Is there a way to get the frame label on a specific frame, without it being the current frame?
I've tried accessing it through:
this.scenes[0].labels but it doesn't allow me to check a specific point on the timeline.
View 2 Replies
Aug 17, 2005
i want my movie to stay on one frame for 10second and second playing the next frame.
View 3 Replies
Aug 26, 2010
I've compiled an MTS video into MP4 format using FFMPEG. The video is 2 minutes long.
I want to be able to play the video back but start at 0:15 seconds and end at 0:45 seconds. Effectively I want the playback software to only show 30 seconds of playback available. The software must be a Flash-based application for integration into HTML.
View 2 Replies
Aug 18, 2011
I need a Flash player which can start my mp3 file from a specific time based on the embedding properties or on URL or just anything.
View 2 Replies
Jan 2, 2011
i want a thumb image to play an embed video in a specific location
View 1 Replies
Nov 19, 2006
I was thinking that it may be possible to create a primitive, yet usable actionscript based text to speech system for Flash movies (One that is platform independent).
Is it possible to right a series of actionscript commands that would play a collection of certain sound files based on what word or words the user has entered?
For example:
If the user types "Red Pen"
Can actionscript tear apart those two words and play sound files "Arr", "ee", "Dee", "Pee", "ee" and "EN"?
If it is possible, and if someone could help me out on it, then I'll start figuring out what phonetic sounds I'll need to record and program, and see if I can't build a simple text to speech program for flash movies.I have no immediate commercial application for it, and I don't plan on one.So if I can pull it off it'll be free to everyone, source code and all. Of course, it may be in my voice, but it shouldn't be hard to take what I plan to do and use it as a template for anyone else's voice recordings.
View 2 Replies
Sep 26, 2009
I have a button that uses the Load Graphic Behavior for bringing a SWF, but i want the SWF to come in a specific frame instead than starting at frame 1. For examplel; i click the button, the behavior of Load Graphic brings my SWF to stage but i want to start at frame 50, not at frame 1. How can i do that?After i use the Load Graphic Behavior i try using a gotostop frame, but doesn't work.
View 13 Replies
Jun 22, 2009
I have made a menu in flash . I have a frameset on my page . I want the button to open the link in a specific frame (my frames are bannerframe , leftmenu , rightmenu , bodyframe) . The menu is in the "leftmenu" frame. But whenever i use this :
ActionScript Code:
getURL ("xyz.html", "bodyframe")
the page opens in a new window .. ( i have tried in all browsers chrome firefox IE etc. ) ....
View 0 Replies