Playing Multiple Movies in Flash

This is a discussion on "Playing Multiple Movies in Flash" within the Flash & Multimedia Forum section. This forum, and the thread "Playing Multiple Movies in Flash are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 6th, 2007, 11:15
New Member
Join Date: Feb 2007
Location: cambridge, UK
Age: 34
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Playing Multiple Movies in Flash

Hi,

This is probably a dumb question as i really don't know flash (i work with css primarily) but i have a series of short avi files that i want to embed on a web page as swfs.
There is a 'main' video that i want to loop that is about 3 secs long, and then a series of different introductions videos that are around 1-1.5secs long.
What i really want to do is get it so that i can load a swf in that will call an introduction to play through once and then loop the 'main' movie afterwards.

Is this feasible to do, and do i need to actionscript it? is there any way i can use the cached 'main' movie (it will load on the page the first time it is opened as a default state) for the loop or will i have to create an swf with each introduction followed by the main movie individually?

Many thanks for any responses, i hope it makes sense!
Reply With Quote

  #2 (permalink)  
Old Feb 6th, 2007, 17:36
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Playing Multiple Movies in Flash

It would be easier for you to buy a video player from somewhere like Tufat.com, and just link it to the video, and tell it to loop....that way you don't have to learn ActionScript.
Reply With Quote
  #3 (permalink)  
Old Feb 7th, 2007, 15:09
New Member
Join Date: Feb 2007
Location: cambridge, UK
Age: 34
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Playing Multiple Movies in Flash

Thanks, but that isn't really feasible for this project, i seem to have found some code that works:
Code: Select all
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var myStream:NetStream = new NetStream(netConn);
my_video.attachVideo(myStream);
myStream.play("intro1.flv");
myStream.onStatus = function(info)
{
trace("info="+info.code);
if (info.code == "NetStream.Play.Stop")
{
stopped=true;
}
if (stopped)
{
myStream.seek(0);
myStream.play("main_loop.flv");
stopped=false;
}
}
Reply With Quote
  #4 (permalink)  
Old Feb 7th, 2007, 16:37
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Playing Multiple Movies in Flash

Great, let us know if you have any other problems!!
Reply With Quote
Reply

Tags
avi, flash, multiple movies, swf

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
movies in flash bagga007 Flash & Multimedia Forum 4 Jan 12th, 2008 21:48
Making Flash Movies magnetica Flash & Multimedia Forum 5 May 3rd, 2007 03:18
playing flash within flash with slow internet connection bejamshi Flash & Multimedia Forum 4 Jan 19th, 2007 02:07
HELP! Clicking flash movies or using spacebar! dbarrie Flash & Multimedia Forum 4 Aug 31st, 2006 10:28
playing sound in flash skyfire400 Flash & Multimedia Forum 2 May 4th, 2006 23:02


All times are GMT. The time now is 04:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43