PDA

View Full Version : Question about video possibilities!



wafze
July 31st, 2007, 09:23 AM
Hi guys and girls,

im currently working on a new website and i would like to include some video footage in the header of this flash website! What would be the best approach to do this! Cause i know videofiles can get big and need some time to load!

For this i have made some video stuff in After Effects and combustion

Following things i would like to implement, dont know if this is possible

- i would like to have 3 videos size (headersize) smth like 400x70/80, that change everytime the side is loaded

- they need to stream from another server

- the transition between the flash design and the videofiles playing should be smooth
( like if youre blending two layers in photoshop)

IS this possible?

Would be great if you could hint me in the right direction

thx a lot

greetings to all :beer:

GrndMasterFlash
July 31st, 2007, 01:15 PM
//Load a vid
function clickbox(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("movie.swf"));

}


//Transparent transition
function onEnterFrame(Event):void {
loadit.alpha -= . 05
if(loadit.alpha <.01){
//load another movie
}

//add ya listna
rect_1.addEventListener(MouseEvent.MOUSE_DOWN, clickbox);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
//if your woundering rect_1 is a MC you click to load a movie, this could be //done by a number of methods


would any of this help you?:sure:

wafze
July 31st, 2007, 01:57 PM
//Load a vid
function clickbox(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("movie.swf"));

}


//Transparent transition
function onEnterFrame(Event):void {
loadit.alpha -= . 05
if(loadit.alpha <.01){
//load another movie
}

//add ya listna
rect_1.addEventListener(MouseEvent.MOUSE_DOWN, clickbox);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
//if your woundering rect_1 is a MC you click to load a movie, this could be //done by a number of methods


would any of this help you?:sure:


thx a lot gmf, first of great tha tyou took your time to answer me :crazy:

i trying to get behind the code ;-)

im fairly new to actionscript , so as i see you loading the movies from a seperate swf file?
am i right?

and they are alpha transitions happening between the movies

one question , what does this trace(you clicked me)statement mean?

hope im not asking stupid questions ? have mercy with me :blush:

GrndMasterFlash
July 31st, 2007, 02:06 PM
thx a lot gmf, first of great tha tyou took your time to answer me :crazy:

i trying to get behind the code ;-)

im fairly new to actionscript , so as i see you loading the movies from a seperate swf file?
am i right?

and they are alpha transitions happening between the movies

one question , what does this trace(you clicked me)statement mean?

hope im not asking stupid questions ? have mercy with me :blush:

hey, i still ask questions all of the time, when it comes to AS3 were kinda newbs since its a new language.

yeah, the load is calling external videos in the same folder

a trace helps you in testing, it displays the contents of your trace in the output window, so when you click on that MC, a message will appear in your output that says "you clicked me", so you know the click part is working, you can also trace var and Objects ex:

count = 50
trace(count)
//50 will be displayed in your output window

never be afraid to ask, thats how we learn, ;)

wafze
July 31st, 2007, 02:52 PM
hey, i still ask questions all of the time, when it comes to AS3 were kinda newbs since its a new language.

yeah, the load is calling external videos in the same folder

a trace helps you in testing, it displays the contents of your trace in the output window, so when you click on that MC, a message will appear in your output that says "you clicked me", so you know the click part is working, you can also trace var and Objects ex:

count = 50
trace(count)
//50 will be displayed in your output window

never be afraid to ask, thats how we learn, ;)

thx gmf,

i really appreciate your help :-)

so if i got it right i need to make my videos swfs? like i have 3 videos , so i need 3 swf that are in a seperate folder and that are called from the main timeline ( hope in not talking to complicated) 8-]

ok , i think i will try the easier thing first i only try to load one video in the header, the important thing for me is the transition, perhaps i should give you a hint what i want to achieve,

currently i have an image with clouds ( like stormy clouds) but its a still image, i want to have moving clouds ( composed video file from after effects) that is looping.

i would like to have this movie (clouds) as a symbol that i can place in the header , apart from that i would like to have text on a upper layer above the clouds too ( or another symbol ) i hope this wasnt to confusing :wasted::wt: :thumb2:

GrndMasterFlash
July 31st, 2007, 03:01 PM
you just make 3 movie clips on 3 different layers. then take your 3 .swf files and put them in, like your clouds would be on the top layer, forgound, then background.

if you put your .swf in a different file you need to state the file
ex:

movies/myvid.swf
//would get the myvid.swf file from the movies folder, file location is relative
//to the location of the .swf you are calling from:p:

wafze
July 31st, 2007, 03:17 PM
you just make 3 movie clips on 3 different layers. then take your 3 .swf files and put them in, like your clouds would be on the top layer, forgound, then background.

if you put your .swf in a different file you need to state the file
ex:

movies/myvid.swf
//would get the myvid.swf file from the movies folder, file location is relative
//to the location of the .swf you are calling from:p:

ok ill try that first and will get back to you if im out of ideas :b:


---------------------
gmf, do you have an example swf file that is showing the first script or a video animation/ loading , if not, no problem only if you have some spare time!
----------------------
many greetings :)