|
-
skip intro drom inside preloader - please HELP ME!!! going mad here..... MY BRAIN
Hi there,
I've been sitting here for aaaages, seems like a lifetime - trying ot figure this out...... please... anyone... save my sanity!
I'm trying to set up a skip intro button inside the preloader of a splahs page - I've done this a million times before but never had to launch an URL... - I have a feeling something is clashing somewhere - just don't know where...
If I bring the button only on when everything is loaded - it works fine... and I just don't know what it is......
quick break down:
?preloader in 1st frame (animation in frame2)
AS on mc:
onClipEvent (enterFrame) {
site_total = _root.getBytesTotal();
site_loaded = _root.getBytesLoaded();
site_percent = Math.round((site_loaded/site_total)*100);
display = "percent loaded: "+site_percent+"%";
_root.preload.progress._xscale = site_percent;
if (site_percent == 100) {
_root.play();
}
}
?skip intro button on root
button calls Javascript in head tag of html swf is in:
getURL("javascript:NewWindow('http://www.graphiceyedea.co.uk/venol/nicolerenee/site.html','name','760','435','no','no','no','no', 'no','no','center')");
?javascript:
<script language="javascript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,menubar,toolbar ,location,status,resizable,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math .floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(scr een.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',m
enubar='+menubar+',toolbar='+toolbar+',location='+ location+',status='+status+',resizable='+resizable
+',directories=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
sorry about the length of this - but all you guys out there who find it easy being a script genius... might make more sense of this than me....
Thanks for listening...
Hoping to keep my sanity.....
Prisca
___carpe_diem___ 
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
|