View Full Version : SWF not loading html file
Techy
01-20-2009, 01:50 PM
Hi everyone, I created a very simple flash intro and inserted in an html file susing Dreamweaver CS3. I just need the swf file to go to index2a.html after the animation. Here is the link http://thinkprint.at/maunz - I'm using Flash CS3. How do I make this work? PLEASE HELP.
kalpaitch
01-20-2009, 01:54 PM
Use GetURL and place it on the last frame of your animation:
onEnterFrame(){
getURL(http://thinkprint.at/maunz/index2a.html, "_self");
}
This is assuming of course that http://thinkprint.at/maunz is your _root directory.
Techy
01-20-2009, 03:25 PM
Hi kalpaitch - I tried your suggestion, but I'm still getting the same error message "undefined". Basically the swf file is inserted within the index.html file. What suppose to happen is that, after the short animation, it should load index2a.html - Do you have any other suggestions?
RefreshGFX
01-21-2009, 05:26 PM
kalpaitch is right on target there. he just forgot the quotes around the URL ...
getURL("http://thinkprint.at/maunz/index2a.html", "_blank")
- alternatively ... -
If your swf intro file and index.html and index2a.html are ALL in the SAME directory on your web server - you could use a relative path instead of an absolute path (makes updating easier - in the event you change your domain name - or the folder "maunz" ... so, that would be ...
this.onenterframe = function() {
geturl("index2a.html", "_self");
// you could always add a trace(); command to see if this function is firing...
trace("End of Animation - Now, I will send you to index2a.html - Muhahaha");
}
stop();
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.