-
redirection
i have a flash webpage and then a flash intro to that website...i want the flash intro on a sepreate HTML page then the flash website. the problem is i dont have the .fla for the intro b/c my friend made it...is there a HTML code that will redirect it to another page when the flash movie completes?
www.hydroproductions.com
www.mikecox.tk
www.hydromix.tk
www.avixdesign.com
-
Senior Member
Why don't you just get the .fla from your friend?
Really, with no communication between Flash and the page, it will be a b*tch.
This is a little script I jacked from another forum, and I haven't tested it but give it a go, nonetheless:
PHP Code:
<body onLoad=preLoad();>
then in your <head> tags you'd have this:
PHP Code:
<script language="JavaScript1.2" type="text/javascript">
function preLoad() {
splash = new Image();
splash.src = "splash.swf";
splash.onLoad = setTimeout("location.href='http://www.whatever.com/whatever.html'",XXXXX);
}
</script>
where XXXXX is the number of milliseconds after the load that the page will re-direct (remember: 1000ms = 1s)
If that doesn't work you could stick a button on the page with a caption that says "Click here to skip intro". That seems kind of amateur, though.
I still say the best thing to do is get the .fla from your friend.
-Tim
-
You could also load your intro.swf into a new movie and monitor it's current frame and knowing it's total frames, just override the re-direction with your's on a previous frame on which the present re-direction now occurs.
-
i tried to load it into a new movei adn do that..but the audio doesnt load with it
www.hydroproductions.com
www.mikecox.tk
www.hydromix.tk
www.avixdesign.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|