View Full Version : Pop-Up script just can't be found...
ds.pixeled
06-05-2005, 10:54 PM
yeah this annoys me because no matter where i look i can't figure out how to do this... i'm serious i've looked through the forums everywhere! what i eventually decided on was to use the tutorial in the beginner's section but change the on(release){ script to onLoadFrame = function(){. the script is right it just doesn't want to go. i don't know why! this is the one i'm on about: http://actionscript.org/tutorials/beginner/spawn_browser/index.shtml anyone know what i might be doing wrong?
Boskic.com
06-06-2005, 01:23 PM
Write here how do you call spawnWindow function.
ds.pixeled
06-06-2005, 02:42 PM
Well first I put this script just after the <head> tag.
<script language="JavaScript">
<!--
function spawnWindow(URL,Name,features) {
window.open(URL,Name,features);
}
//-->
</script>
then in my flash file where it says to put this code on a button:
on (release) {
getURL ("spawnWindow('http://www.dougstewartdesign.com/parent.html','Doug Stewart Design','toolbar=no,location=no,status=no,menubar= no,scrollbars=no,resizable=no,width=800,height=500 ')");
}
i put this code on the first frame.
this.onEnterFrame = function(){
getURL ("spawnWindow('http://www.dougstewartdesign.com/parent.html','Doug Stewart Design','toolbar=no,location=no,status=no,menubar= no,scrollbars=no,resizable=no,width=800,height=500 ')");
}
i haven't tried it with a button but i doubt there'd be a difference...
Boskic.com
06-06-2005, 03:33 PM
getURL("javascript:spawnWindow(\'http://www.dougstewartdesign.com/parent.html\',\'Doug Stewart Design\',\'toolbar=no,location=no,status=no,menuba r=no,scrollbars=no,resizable=no,width=800,height=5 00\');void(0)");
ds.pixeled
06-13-2005, 01:10 PM
hey. sorry it's taken so long for me to reply but i had comp. trouble. the pop-up doesn't work. on safari it says it can't do it. it does nothing on firefox so does anyone have any html or javascript solutions? i'm a beginner on both of those so i wouldn't know where to begin.
Boskic.com
06-13-2005, 01:34 PM
Did you put getURL onpress button event or in onEnterFrame function?
ds.pixeled
06-13-2005, 06:17 PM
i eventually gave up and did with javascript haha. found a web page that gave me the code. worked rather well but thank you guys anyway :D
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.