How To? - When FLV Stops, Go To Another Frame..
Hi-I have a FLV coming into a FLVPlayback component. This component is on placed on frame 1.When it stops, I would like the timeline to advance to frame 2 (where I have new content).However, this doesnt happen and the video hangs and stops on the last frame of the FLV.I've added a cue point on the last frame of the FLV called "end". I thought the following code would work by detecting the cue point and going to frame 2, but it doesn't? Can anyone help me? Code: stop();var listenerObject:Object = new Object();listenerObject.cuePoint = function(eventObject:Object):Void {var cuePtName = eventObject.info.name;if (cuePtName == "end") {gotoAndStop(2);}}; Also, should I be setting up some type of preloader on the FLV or the entire timeline? I'd like the video to start playing immediately (as I've chosen no component skin), but I want to avoid glitchy stop/start playback. Is there a way to be loading new content somehow while the first part of the movie starts playing?Thanks so much. I really need help with this.
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 08-26-2008, 03:56 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Stops At A Frame
Upon my page loading, I am trying to play a particular movie clip. The first frame in the movie clip is a stop command, so I can call upon it to clear out when another mc is loaded. In any case, I try to tell target to frame 2 of the move clip, and want it to play all the way to frame 20. However, it gets to frame 2 and stops. I can goto and play any particular frame e.g. 3, 4, 5...and it just stops.
Can someone tell me how to get it so it will play frame 2 through 20 on one pass. There are no stop commands or anything else blocking it. Any other ideas I can look for? Your help would be greatly appreciated!
Movie Stops A Frame 1
Hi,
I've got a movie with actions in different frames. On frame 1 there are just a few simple actions for example this one:
loadVariables("zoeken.php", "", "POST");
Somehow the movie doesn't go any further then frame one in the browser (localhost), it goes to frame 2 in the player while testing.
Any idea why this could be?
Thanks in advance, Danielle.
Preloading Stops At Frame 0?
I have a small problem with Flash MX 2004 Prof.
I am using two Scenes - one contains a preloader script and a simple loadbar graphic. The other scene contains a rought interface for a media player.
My problem is this. If I import sounds to the library and put on the timeline, the preloader works as it should. But if I try to link my sound with Export for ActionScript I get a problem.
When I am testing the download with the Bandwith Profiler, I notice the loading of the file stays put on Frame 0, loads the entire file and then moves on to play the scenes. This of course, messes up my preloader. If I remove the "Export to ActionScript" linkage, the preloader runs as it should again.
Does anyone have any idea what my problem might be due to?
/crippe
16001 <- Movie Stops At This Frame... WHY?
I've got a radio.. since no one seems to want to help me with it I tried the old fashioned method of just dragging out all of the tracks on one huge timeline... but the problem is that it just stops at the frame 16001... or around there, and I cannot figure out why. There isn't any actions or scripts anywhere near there.. its on a "labels" layer... and the layer beneath it contains the music. The music keeps playing but it just stops that that point. Can somone help me with this? I've got a tight deadline and I need this finished for.. I really need help with this
--Metalguy
Goto Frame After Movie Stops
I'd like to have my scene advance to a certain frame after a movie in a single frame finishes playing. For example. I have a movie clip that is 15 frames long. Instead of actually placing 15 frames in my scene i'd like to have one frame and once the movie clip in that frame finishes, without any user interaction, it continues to a frame called "portfolio". I need to use this more than once within the same scene. Thanks for all the help!
Looping A Frame After The Animation Stops?
I've created a flash movie that stops, but one frame needs to loop continuously. I think this is a simple fix, but I've tried everything I know (which isn't a lot when it comes to actionscript) and can't get the frame to loop, while stopping the rest of the animation. Any help is appreciated!
Can A Loaded Swf Be Unloaded When It Stops On Last Frame?
Hi!
I'm having a problem, apparently not very hard to solve, but... I'm creating a file with some animations and a few stops on the timeline; on each stop I want to load a swf...
The idea is to make the main timeline "wait" for the swf to stop when it arrives to the las frame and then, make it to unload and continue playing until the next stop...
This is an application to work local (not on the web).
So, I want the swf to unload without any click; just by itself.
Please, can somebody help me on this *@X of as3?
Thanks!
Goto Frame After .flv Videoplayback Stops
Hi,
Is't possible to go to a frame after a .flv video ends. since flv have no "frames"...
need this couse it starts/ends diffrent on diffrent connections, so it impossible to
know where it ends in the timeline.
Thanks in advance
Henric
Random Frame Stops Working When Images Are Used
Hello,
I have built a movie (Flash MX 2004 Porfessional) with the objective of going to a different frame each time the page loads. The movie works fine when I only have text in any of the frames. As soon as I add an image to any of the frames the ramdomization quits working. On top of that, the behavior is Opera/Netscape and IE is different.
In IE, the movie always displaysframe 1 (no content, just the actionscript).
In Opera/Netscape the movie always displays frame 2 (the first frame with content).
The code:
code:
var randomFrame; // Stores the randomly picked frame number
var numFrames; // Stores the total number of frames on the timeline
numFrames = _totalframes; // Assign _totalframes property to numFrames
// Pick a random frame
randomFrame = Math.floor(Math.random( ) * numFrames + 2);
gotoAndStop(randomFrame); // Send playhead to chosen random frame
I have attahed the file for convenience sake.
You can also see the behavior by going to the following two links:
with images (not working)
http://www.prophegy.com/temp/flash.html
w/o images (working):
http://www.prophegy.com/temp/flash2.html
Any insight into why this happens is greatly appreciated!!
John
[F8] Preloader Works But Movie Stops At Frame 3
I have got my preloader working but after loading the movie doesn't play...it just stops at frame 3. Here's my ActionScript for the preloader...I'm very new at this....did I screw it up?
stop();
function onEnterFrame(){
var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
loadText.text = Math.round(amountLoaded * 100) + "%";
var theframe = Math.round(_root.getBytesLoaded()/_root.getBytesTotal() * 100);
preloader.gotoAndStop(theframe);
if(_root.getBytesLoaded() == _root.getBytesTotal() ) {
gotoAndPlay(3);
}
}
Here's my .fla:
http://www.lmlyp.com/may24.fla
Button Inside MC Stops Working When Frame Actions Are Applied To MC
I have a simple rollover button inside an animated movie clip. The button works just fine at this point. But then I attached some frame actions to the movie clip so it only animates when you mouse over it. When I did this, the button rollovers stopped working. I guess it's because the whole movie clip is acting as a button now, so it's ignoring the nested button because it's part of the movie clip.
What I'm ultimately trying to do is create a menu pane that slides out when you mouse over it, and it will have a list of textual menu items on it that change colors when you mouse over them. It seems like each text item should be a Button symbol and they should all sit on the menu pane graphic, and all of that should be contained in a movie clip that slides out when you mouse over it. Where am I going wrong?
Strange Happenings... Play Head Stops On Frame For No Reason....
Hello - I'm making a header for a website. I have actionscript on the first section to make an image appear, some text to scroll across, the image disappears and it jumps the playhead to the next section. The next section works the same and does just what it's supposed to do. When it goes to the 3rd section which is a series of bitmap images placed on the timeline in sequence to create a blur effect, the playhead will only go to the first frame of the 3rd section and it stalls. There are no actionscripts on the frame. None on any of the movie clips and all the actionscript prior to the point at which it stops is correct... I don't understand what is happening. Pulling my hair out - it should be so simple. Someone please make me feel stupid...
the fla is attached below...
thnx
tony
[F8] Need Script Assist: Variable To Determine Frame Number MC Stops On...
Fellas,
I want to use a variable set at root to determine the frame that a movie clip stops on.
variable='langue'
values of 'langue'= 0,1,2,3,4,5,6,7,8,9 &10 etc (numerical)
frame labels correspond to values
so: tell the movie clip 'x' using onLoad to go to the frame no. corresponding with the value of 'langue'.
Any takers?
Yours faithfully,
A.Designer
Symbol Stops Playing When The Movie Stops
Kindof a newbie question.
I have a flash movie, (it will be a flash banner for a website).
I created animated logo sumbol (which wil perform a litle animation every once in a while) and dropped into the main scene, which also has an animated intro.
So once the scene is built out, I put stop() in the last frame, so it doesn't start from the beginning. But the problem is that animation in my symbol also stops playing.
Am I doing something wrong?
Thanks for any feedback!
Previous Frame Overlay..... Frame By Frame By Frame By Frame By Frame By.....
Hello there.
I am trying to create a small animation just as a little bit of fun. I would like to do it frame by frame.
I have a simple question to ask about frame by frame animation.
When drawing frame by frame, you would usually have a transparent overlay that you can compare with the next frame. Is there a way to do this in flash without having to copy the previous keyframe into a new keyframe on a new layer?
Thanks Emdiesse
Trying To Make Movie Play Frame X To Frame Y Then Switch To Frame Z..
Hello,
I was hoping someone could help me out with an issue I'm having. 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"){
gotoAndPlay("Home2",1);
}
}
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".
Thank you in advance for all your replies.
Too Many Stops?
Ok, I am using Flash 5. I have a drop down animated type menu, sound etc. All are in different Movie Clips. When I test the final product, My dropdown starts my music, visa versa etc. etc. What have I done worng here? The key tag in all conflicting clips is the stop tag!
Lastly, call my ignorant . . . I can't get the links to work when I am trying to send the users to a new page (which is actually just a different mc) Again, what the hell's wrong with my coding here? I will upload the site to:
http:www.Purple-Sky.net/trinity
Hopefully someone can help me . . .
Thank You,
briggs
It ALWAYS Stops At A 100% :(
Hi, and happy new year!
I have put up a site at http://home.no.net/djooprod
The preloader doesn't work correctly. It refuses to go on to the next scene. However, loading the .swf locally works fine. The code inside the preloader is as follows:
in frame 2:
if (_root.getBytesLoaded()!=_root.getBytesTotal()){
gotoAndPlay(1);
}
in frame 3:
nextScene();
The movie consists of the preload scene and the main scene.
The movie also utilizes some php-scripts, but I can't imagine how that could be relevant for my problem.
Could it be that I should try uploading my .swf from another computer? We're talking UNIX server here.
A big thankyou in advance to all of you who might help me with my problem.
90 % , 91% And STOPS
I don't know what's going on! I'm mading a cool (this IMHO) mixed website (half html half flash) and i'm using flashMX to produce the swf but i'm publishing it on flash 5.
Nothing wrongs when debugging, testing, re-testing in my computer... it loads perfectly with the "show streaming" test, but when i put the swf on my testing server- (wich is a "free server" that i use before sending the finished files to the pay server) some of the files (swf) i send loads till 90% maybe 91% and then they STOP! I've beeing testing...it NEVER ends loading.
My questions are:
1- It could be a server problem?
or
2- It could be a FlashMX files published in Flash 5 problem?
more
3- It's my computers problem? (i don't think so, because i see a LOT of sites in flash, only MY files got stuck on the 90%)
Maybe it's a problem that i don't know yet...so... what you say... can you help me? I'll apreciate.
[F8] Using Stops.
I made a flash movie that has a mask in it (example of what kind is here: http://www.entheosweb.com/Flash/masking.asp)
there are several other layers besides the one with the masking in it. On the last layer, I put a stop in so that the movie doesn't keep repeating itself. the problem I'm having is that putting in the stop has stopped the masking from going from left to right and back, like it was when I didn't have the stop--it just goes from left to right, but doesn't go back and forth again. How do I fix this?
Stops Being Ignored
Hey all, hope this makes sense.
I have a timeline based portfolio website that uses LoadMovie scripts to bring up animations and illustrations as swfs. I also have a preloader with each swf. The problem is, if a user clicks on one button that has a LoadMovie, and then clicks on another before the first one (swf) loads, the new button with swf clicked continually flashes after loading as if ignoring the stop script. And, if they click on anything else the entire timeline plays ignoring all stops.
Any ideas? Is it my preloader? Do I need to use a clearInterval at some point?
GotoAndPlay Just Stops
onClipEvent (enterFrame) {
if (_root.choice == 1) {
this.gotoAndPlay(22);
You would think with the above code, that if _root.choice == 1, the movie would go to frame 22 and play from there...
but the playhead stops at frame 22.
What's the deal with that?
One Action Stops Another?
Hi all
This is my first flash website so bare with me! www.sixfeetunder.dk
My problem is that when you use the menu links to see the clothes the bouncing squares stop bouncing??
Is there a way around this? I would like the bouncing squares to keep bouncing true the entire movie
I am gratefull for any help or leads you can give me
I cant upload the flash file because its 388kb zipped
thanks
bmbc
SWF Sound Stops On CD-ROM
Hi,
I have created a (*.swf) file (which has button sounds) which I have burnt to CD.
When first using my (*.swf) file on CD, everything is ok but once the CD stops spinning I loose all sound, even after the CD starts again when reading more information. I have tried converting the (*.swf) to a projector but with no luck.
Any ideas
Kind regards
Clive
Music Stops?
I imported one musc file in my flash video and about halfway through the song it stops.... I cant figure it out im really stumped. I just have it play in the start of the movie...thats all i want it to do, I have never had this problem before.
Any Ideas?
When Sound Stops
i have a presentation and attached a sound to each frame, and i want to find out when the sound stops in the current frame so i can highlight the NEXT button on the stage. So i placed an action on the first frame that says if the sound1.position == sound1.duration then light up the button, but it doesn't light up, i think because the if statement is only read when it first enters the frame?? any suggestions on what to do?
thanks in advance!
GotoAndPlay Just Stops....
Anyone ever have this problem? When you tell a movieclip something like
movieClip.gotoAndPlay (5);
It goes and Stops at frame 5 instead of starting play. Since this happens only some of the time, it has cost me tons of wasted time trying to find out why my movieClip isn't listening. It only seems to happen if you tell a movie clip with a stop(); command in the first frame to do this. The only solution I have found to use when this happens is to instead of using a stop(); command in the first frame of the movie clip, instead issue a gotoAndPlay (1); in frame 2 so the movie continues to loop playback until something else tells it to gotoAndPlay another frame. Am I the only one with this problem, and is there a reason/solution for this?
-Shawn
Everything Stops Responding
Hi, I'm having a big problem with my project. I'm doing a Flash game with server interaction, using PHP. I open the game window normally, the game starts, I play it for a little while and suddenly all "getURL" and "loadVariables" commands does not work anymore. If I try to refresh the window that opened the game (the game is inside of a popup), it doesn't work too. It's like the IIS is busy with something. But the weird part is this: if I close all the windows and open them again, everything is fine, until I start to play the game again and then... it all stops again.
I thought that it was some problem with IIS, but when I open normal PHP or ASP files, without Flash, and they never hang themselves.
I'm using WinXP SP2 (firewalls disabled), PHP 4, Flash MX 2004. At my work, the same problem occurs, and I run Win2000 there.
My game is going great, but I'm now stuck with this problem. Thank you!
GotoAndPlay Goes To And Stops
ive attached a movie clip to the root timeline and when i tell it to gotoAndPlay from the root timeline it goes to and stops
heres the fla
http://petoria.thedrunkenclam.com/portfolio.fla
any ideas?
OnEnterFrame Stops
Hey guys,
onPress of one of my buttons I run two functions. The first function uses .onEnterFrame to slide an object on the stage... the second function loads an external photo in _root.content_mc
The problem is that as soon as the image is loaded in _root.content_mc the .onEnterFrame of the slide function STOPS!!!
Any ideas?
edit: Okay.. I noticed that it stops NOT when the second function loads, but when the the second function starts to fade in the photo with its own .onEnterFrame
can you have have two .onEnterFrames running at the same time?
Why My Animation Does Not Stops?
Hi everybody!
I have an animation in a mc with more than 30 layers in it. Only 5 are active at the same time. The objects move from the right side of the stage to the left. If I rollover one of this objects they set a variable gMyName to a name. When the animation is over a frame I evaluate the gMyName variable and if it equals the value then the animation should stops.
This is the code in an Actions layer:
if(gMyName == "N01")
{
stop();
}
else
{
play();
}
The mc does not stops. Why is doing this?
Thank you in advance.
Stops Animation
in my project i want an animation of an object to be played when i press the needed keys:
onClipEvent(enterFrame){
if (Key.isDown(Key.LEFT)){
this.gotoAndStop(2)
}
else if (Key.isDown(Key.RIGHT)){
this.gotoAndStop(3)
} else
gotoAndStop(1)
}
but when i release the key the animation stops be fore it ends.
hod do i make the animation play to the end and only then make it stop?
GotoAndPlay Goes To And Stops
this isnt the first time i have encountered this problem.
I know your first response is 'you probably have a stop() command somewhere' but the same code when pointed at any frame does the same thing. furthermore gotoAndPlay() somewhere else works. The same thing happens when using frame numbers and labels. It is going to the right frame but its like I'm using gotoAndStop(). Any insight?
Flash Stops Just Before The End
I've got a 10-minute long Flash movie that I've been working on for several months. It's been approximately this length for the whole time I've been working on it, but recently it started acting strange in two ways, which I don't think are related, but here they are:
1) It takes a very long time to publish -- 15 minutes or so
2) This is more serious: when I play the swf (doesn't matter if it's within a browser or not) it stops just before the end, both the image and sound.
I made a separate .fla and .swf of just the last section, and it doesn't cut off. Is there some kind of limit to the length of a Flash movie? I've certainly made larger Flash files than this -- the .fla is 44 mgs and the .swf is 4.
Swf Compileing Stops
i helped out a friend by editing a template so allmost all the text on the site is in an external .txt and some of the images where external
my friend now has a new web designer (cuz im to busy right now) and he changed a few things on the fla and he is saying that the fla wont compile to a swf it will go half way then stop. he waited 3hrs but it didnt move at all.
does any body know how to fix this or what went wrong?
thanks
Timeline Stops
hi, when i click around randomly in my flashcs3 projector file some of the movies timelines stop and audio goes of.
I cant find anything online about this has anyone else encountered this problem?
Preloader Stops
I have a loader.swf that contains the preloader and a movieclip on the stage that loads the external movie. And here's the problem. Preloader stops randomly somewhere between 100% and 60%. Stays there for few seconds and then displays the movie. So whats wrong?
This is the first time I try to preload movie this way. Til now I've always included the preloader to the movie thats been loaded and it always worked fine.
I hope someone can help me. And sorry about the language skills.
Flv Playback Stops
Using progressive download, along with MediaDisplay and MediaController. The flv plays back perfectly on many machines, but for 3 of the 11 computers I have tested playback on on, the flv stops after 5 seconds. The flv is recognized and the loadBar shows that the full video is downloaded and you can even drag the scrubber farther down the video, but playback does not resume. This also occurs on other examples of progressive flv files I have found on the internet for these machines, so I'm relatively sure it is not my particular swf or flv files which are causing the issues.
Flv Stops Playing
Hi,
I have encoded a 20 minute .wmv file to a .flv file for progressive download using the encoder in Flash 8 Professional. I save the .swf, and embed it in an html file. The video plays fine, except for some people. The .flv is being hosted on a server in New York. There are people in Australia and Singapore who tell me that it stops half way through the video. I have set the bufferTime parameter to 45 seconds, but the video still stops for these people. Is this just a case of the network conjestion between New York and Australia, for example, is so busy that the progressive download can not keep up with the playing of the video? Or is there something else I can/should do to prevent this problem? Also, even if it does stop, shouldn't it continue again automatically after it buffers some more of the video? Thanks for any help!
Bob
Animation Stops On PC But Not On MAC
Hello everyone,
Guess what, we need some help here. I have made a very simple animation in Flash8
and set it up in the Publish Settings as it should stop and not loop at the end.
Unfortunately it works on PC's computer only not on Mac!!!
Can someone tell me the reason and if there is another way to make it stop looping.
Thank you very much for your help.
FLV Stops At First Cue Point
Anyone have any idea why an FLV would stop at the first cue piont? I've switched the cue point to event AND navigation and it stops every time... can't figure it out.
My Site Never Stops
I'm very new to Flash. I followed this tutorial: http://www.oman3d.com/tutorials/flash/simple_website/
to create my first flash website. The problem is, it keeps looping over and over and never stops. I put in all the actions in the correct frames. is there something I'm missing?
GotoAndPlay Instead Stops
Hello,
I have a script within a frame that initiates a stop, a time delay, and then a gotoAndPlay () - See attached code. That all works great! However, when I gotoAndPlay (2) it just stops in frame 2 rather than playing from that point. In fact I can nicely go to any Frame I want - as long as I want to just stop there. There are no other scripts or hidden stop () commands lurking anywhere. Its a very clean and open timeline. Whats the deal?
Any help - greatly appreciated.
Steve
Attach Code
stop();
timeDelay = getTimer()+2000;
onEnterFrame = function(){
if (this.timeDelay <= getTimer()){
gotoAndPlay(2);
}
}
FMS Service STOPS
Hello,
This is pissing me off actually, the service is automatically stopping!
FMS version is 2.0.1, i am using windows XP. I am having this problem since today only! i thought that it might be services conflict issue, so i stopped most of the services that are not by MICROSOFT, and still the FMS stops after exactly 4 seconds or sometimes less.
I am using the Developer edition. is there any limitation for that edition such as expiring after 3 or 4 weeks? i guess not!
PLease help...
and yeah, i tried to reinstall the FMS, did not work out.
Flash Com 1.5 Stops
My application runs ok with flash com server 1.5 but no longer than 5 minutes every time..
I have to restart the server where flash com is located every 5 minutes.
Is there a special reason why my application does not run continuously.
I do not understand where the problem stands exactly. Is it due to flash com or my server.
Is there something to do with the server i am using. Is it my firewall or the protection I am using.
It is unfortunatelly impossible for me to hold people on line.
I would very much appreciate any advice or any explanation.
Thanks very much.
GotoAndPlay Just Stops
I am using gotoAndPlay in a function with ENTER_FRAME event. I believe that it goes to the frame (used trace) but it just stops and won't play. I have been working on this for a couple of hours and the closest thing I could find to an answer was this post
"gotoAndPlay won't work with the enterFrame event.
for example in the '_parent.gotoAndPlay(45)' , the playhead will keep going to that frame 45 and will never get further.
You'll need to workaround that (using variables + a loop in the _parent for instance). "
Could someone explain this and give me some type of work around. My code is below
Attach Code
stage.addEventListener(Event.ENTER_FRAME, inFrame);
function inFrame(e:Event) {
gotoAndPlay("energyStart");
}
GotoAndPlay Just Stops
I am using gotoAndPlay in a function with ENTER_FRAME event. I believe that it goes to the frame (used trace) but it just stops and won't play. I have been working on this for a couple of hours and the closest thing I could find to an answer was this post
"gotoAndPlay won't work with the enterFrame event.
for example in the '_parent.gotoAndPlay(45)' , the playhead will keep going to that frame 45 and will never get further.
You'll need to workaround that (using variables + a loop in the _parent for instance). "
Could someone explain this and give me some type of work around. My code is below
Attach Code
stage.addEventListener(Event.ENTER_FRAME, inFrame);
function inFrame(e:Event) {
gotoAndPlay("energyStart");
}
Playhead Never Stops
Hello! I have a bit of an AS problem.
I did this gallery:
http://www.kirupa.com/developer/mx20...otogallery.htm
and it works pretty nice. But when i load it as a swf into another movie, the playhead of the main timeline doesnt stop... it keeps going back to frame 1!!!
I put a stop action in the last frame, where also the gallery is loaded and it just goes back... never never stops. this is the code i use in the last frame of my root movie:
stop();
loadMovie("slide.swf", "mycontainer");
and i can see that the gallery loads into the root movie, but it cant do nothing, cause.. you know.. it goes to frame 1
thanks a lot
|