|
-
How to make an absolute link ?
Hello, i have a problem.
When i click on my .swf i would like to be redirected on ... for example - www.yoursite.com ... it works for me good, BUT Koolmoves creates a JS file which i have to include with my .swf
I would like to do it WITHOUT this javascript file....
Is there any possibility ?
Thx for answers...
-
Steve R
If you are talking about what I think you are, the javascript file is there to allow active content to work when using Internet Explorer.
If you did not have this you would have to click on a movie to activate it.
As far as I know there is no way round having this.
see http://board.flashkit.com/board/showthread.php?t=694234&highlight=fix
and other threads.
Hope thats what you wanted to know
Steve
-
KoolMoves Moderator
 Originally Posted by svil
Hello, i have a problem.
When i click on my .swf i would like to be redirected on ... for example - www.yoursite.com ... it works for me good, BUT Koolmoves creates a JS file which i have to include with my .swf
I would like to do it WITHOUT this javascript file....
Is there any possibility ?
Thx for answers... 
One has nothing to do with the other! The js file is just there to fix a problem with IE. It has NOTHING to do with linking to another page.
To link to another site just use getURL("http://yoursite.com")
-
Senior Member
I think svil wishes to make the whole of the movie a clickable link...
make a shape to cover the whole movie...make it transparent fill...send to back...convert to a button...add gotoURL action..et voila
regards
mike
ps can anyone fix my keyboard?
-
..
I know how to make a clickable .swf... that´s no problem... BUT when i set there in button menu this - Get http://yoursite.com (_blank) on press ... ( i only set it in menu, no as) ... it doesn´t work for me when i click on it in IE...when i use there a js file it goes ok... but i would like to do it without this js file... i don´t know where the mistake is...
-
KoolMoves Moderator
 Originally Posted by svil
I know how to make a clickable .swf... that´s no problem... BUT when i set there in button menu this - Get http://yoursite.com (_blank) on press ... ( i only set it in menu, no as) ... it doesn´t work for me when i click on it in IE...when i use there a js file it goes ok... but i would like to do it without this js file... i don´t know where the mistake is... 
I going to assume that English is not your native language because I don't understand what you are saying.
I think you are talking about the fact that in IE there has to be the JS fix. And this is true. Without it your flash will work just try clicking it twice. This is entirely a Microsoft IE issue and it is a sad fact of life for ANY ActiveX control not just flash, it includes, QuickTime, Windows Media, RealPlayer, and more.
There are a few other fixes floating around to fix the problem with IE you'll have to do some research on that. In fact my site I used another method.
Still uses JS file but works with all ActiveX not just flash
in header I have
<script type="text/javascript" src="ieupdate.js"></script>
then surrounding each OBJECT I have
<script type="text/javascript">startIeFix();</script>
<object>.......</object>...
<!-- --><script type="text/javascript">endIeFix();</script>
the ieupdate.js is
Code:
var bo_ns_id = 0;
function startIeFix(){
if(isIE()){
document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
}
}
function endIeFix(){
if(isIE()){
document.write('</div>');
var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
var theCode = theObject.innerHTML;
theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))
document.write(theCode);
}
}
function isIE(){
// only for Win IE 6+
// But not in Windows 98, Me, NT 4.0, 2000
var strBrwsr= navigator.userAgent.toLowerCase();
if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){
return false;
}
if(strBrwsr.indexOf("win98") > -1 ||
strBrwsr.indexOf("win 9x 4.90") > -1 ||
strBrwsr.indexOf("winnt4.0") > -1 ||
strBrwsr.indexOf("windows nt 5.0") > -1)
{
return false;
}
return true;
}else{
return false;
}
}
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
|