Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-19-2008, 10:57 AM   #1
ben_rees
Registered User
 
Join Date: Jan 2008
Posts: 4
Default next frame after movie

hi, im reletivly new to action script and i am makind=g a website for uni and need to know how to make my movie go to the next frame when it has finished..it is an flv movie dynamicly loaded into flash and i am using it as an intro to my website. ive put a stop comand on the frame the movie loads to so that it will play the movie all the way through but when it finishes it just stops, i want to know how to code it to get it to go to next frame when it has finished playing, if anyone could help me i would be very greatfull, thanks...
ben_rees is offline   Reply With Quote
Old 01-19-2008, 11:26 AM   #2
Paul Ferrie
Scottish and mad fer it!!
 
Paul Ferrie's Avatar
 
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,606
Default

What object are you using to play the flv? Video embed or the flvPlayBack component?
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- InnovativeDesigns - Scotflash - About me
Paul Ferrie is offline   Reply With Quote
Old 01-19-2008, 12:00 PM   #3
ben_rees
Registered User
 
Join Date: Jan 2008
Posts: 4
Default

im using the flvplayback component to play the video in the master flash file
ben_rees is offline   Reply With Quote
Old 01-19-2008, 12:13 PM   #4
Paul Ferrie
Scottish and mad fer it!!
 
Paul Ferrie's Avatar
 
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,606
Default

Code:
var listenerObject:Object = new Object();
listenerObject.stopped = function(eventObject:Object):Void {
    // insert event-handling code here
};
my_FLVplybk.addEventListener("stopped", listenerObject);
It's in the manual
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- InnovativeDesigns - Scotflash - About me
Paul Ferrie is offline   Reply With Quote
Old 01-19-2008, 12:20 PM   #5
ben_rees
Registered User
 
Join Date: Jan 2008
Posts: 4
Default

yeah i tried that testerday and it didnt seem to work is there another way i could do it?
ben_rees is offline   Reply With Quote
Old 01-19-2008, 12:26 PM   #6
Paul Ferrie
Scottish and mad fer it!!
 
Paul Ferrie's Avatar
 
Join Date: Jun 2002
Location: uk/scotland/glasgow
Posts: 3,606
Default

That is the way you do it.
Check the the component instance name matches that in the code my_FLVplybk
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- InnovativeDesigns - Scotflash - About me
Paul Ferrie is offline   Reply With Quote
Old 01-19-2008, 12:27 PM   #7
ben_rees
Registered User
 
Join Date: Jan 2008
Posts: 4
Default

cheers mate
ben_rees is offline   Reply With Quote
Old 09-24-2008, 07:26 PM   #8
janjan32
Registered User
 
Join Date: May 2005
Posts: 37
Red face Next Frame after FLV finishes as3

I need code to get this working for as3. This doesn't work, it just stops and doesn't got to my frame label "alice" anyone have any ideas?
thanks!
Code:
/**
 Requires:
  - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
stop();
//as 2.0
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
_root.gotoAndStop("alice"); 
};
my_FLV1.addEventListener("complete", listenerObject);
my_FLV1.contentPath = "holder.flv";*/

//actionscript 3.0
this.stop();

import fl.video.*;

var flvPlayer:FLVPlayback = new FLVPlayback();
addChild(flvPlayer);

flvPlayer.source = "http://www.helpexamples.com/flash/video/water.flv";

video1.addEventListener(VideoEvent.COMPLETE, onPlaybackComplete);
 
function onPlaybackComplete(ev: VideoEvent):void {
     gotoAndStop("alice");
}
janjan32 is offline   Reply With Quote
Old 09-26-2008, 01:13 AM   #9
webslinger00
Registered User
 
Join Date: Sep 2008
Posts: 3
Smile Play FLV then next Frame

Hi,
I was wondering if an answer was ever given for this? I've looked all over the board and this is the only one that I could find that fits what I am trying to do.

I want to be able to detect the end of the FLV then go to play the next frame.

Can anyone help?

Thank you in advance.

Last edited by webslinger00; 09-26-2008 at 01:16 AM.
webslinger00 is offline   Reply With Quote
Old 09-26-2008, 01:27 AM   #10
pierre23
Registered User
 
Join Date: Apr 2008
Posts: 363
Default

Quote:
Originally Posted by Paul Ferrie View Post
Code:
var listenerObject:Object = new Object();
listenerObject.stopped = function(eventObject:Object):Void {
    // insert event-handling code here
};
my_FLVplybk.addEventListener("stopped", listenerObject);
It's in the manual
It has been answered ^

edit; oh you mean for AS3 question?
pierre23 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Movie and go to specific frame or scene GBTampa ActionScript 1.0 (and below) 15 08-29-2007 09:09 AM
linking from one movie to affect another movie in a seperate frame indierockmedia ActionScript 1.0 (and below) 4 05-06-2005 03:20 AM
load movie specific frame: no solution works jubal44 Other Flash General Questions 1 05-25-2004 03:52 AM
load movie specific frame: no solution works jubal44 ActionScript 2.0 3 05-24-2004 09:59 AM
killing onEnterFrame with stop()? retrotron ActionScript 1.0 (and below) 15 07-02-2003 05:44 PM


All times are GMT. The time now is 11:55 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.