return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
Flash help plz
View this Thread in Original format
lücid
ok, so i'm working on an intro page for a site that basically just has their logo, commercial, and "Skip Intro" button on it. the commercial video is an FLV file, and i can't figure out for the life of me how to get it to redirect to the homepage after the video is done playing.

i'm sort of a n00b when it comes to Flash, and i tried searching for tutorials on how to do this, but couldn't find anything.

any ideas?
Boomer187
try here
LeopoldStotch
don't know much Flash, but if you want a quick out,

define an 'id' for your flash object on the page, create a script, and have it continuosly listen to the flash object until the readystate == complete. when complete, have the page redirect to the 2nd page?

there should be a better way to do this. this is just a quick out. :)
AnomalyConcept
ActionScript to replace the document location.

(maybe that's what the previous link was, I didn't check.)

HTH. Personally, I don't like using Flash on websites, but I can see why a Flash intro would be helpful.
LeopoldStotch
^^that could work too ..

or

code:
Script LANGUAGE="VBScript" Sub [name of object]_OnReadyState(lReadyState) 'check for complete, if so, then redirect End Sub /SCRIPT


haven't tried to see if it works.
pvdAngel
Man, I really need to get back into ActionScripting. Only got up to Lesson 2 in 'Training From The Source'. :o
Boomer187
or a dirty sleezy bad way of doing it is using header redirect. You might know how long the movie is, so use this to redirect them after that amount of time is over hehe

code:
< HEAD> < META HTTP-EQUIV="refresh" CONTENT="15;URL=http://www.thewebsite.com"> < /HEAD>




that redirects after 15 seconds.
LeopoldStotch
quote:
Originally posted by Boomer187
or a dirty sleezy bad way of doing it is using header redirect. You might know how long the movie is, so use this to redirect them after that amount of time is over hehe

code:
< HEAD> < META HTTP-EQUIV="refresh" CONTENT="15;URL=http://www.thewebsite.com"> < /HEAD>




that redirects after 15 seconds.


that's the homeless man's way out of this. :o :D
Boomer187
quote:
Originally posted by LeopoldStotch
that's the homeless man's way out of this. :o :D




i know, I lol'd when I thought of it. hehe
PEZ68
If you're using AS2 & NetStream class:

code:
var netConn:NetConnection = new NetConnection(); netConn.connect(null); var netStream:NetStream = new NetStream(netConn); netStream.onStatus = function(infoObject) { if (infoObject.code == "NetStream.Buffer.Empty") { //end of video, redirect here } }; maVideo.attachVideo(netStream); netStream.setBufferTime(2); netStream.play("yourvideo.flv");
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement