Linking flash buttons to htm pages

Reply

Join Date: Nov 2004
Posts: 66
Reputation: GR Web FX is an unknown quantity at this point 
Solved Threads: 0
GR Web FX's Avatar
GR Web FX GR Web FX is offline Offline
Junior Poster in Training

Linking flash buttons to htm pages

 
0
  #1
Sep 26th, 2006
Hey People

I have a flash question which is probably pretty simple but it is driving me mad!

I cant remember how to jump to a .htm file through a flash button when the .htm file I want to get to is in a different folder???

I have the file index.htm right under my htdocs folder on the web which has a swf file in it. I have a folder called ‘Video’ under the htdocs folder with a file in that called video1.htm.

When i click on the button in the swf file which is in index.htm, i want it to take me through to video1.htm which is in the folder 'Video'. If that makes sense!!


My actionscript reads;

on(release){
getURL("Video/video1.htm");
}



How come it isn’t working?? Just sends me to a page that says ‘page cannot be displayed’!!!

Thanks for any help

GR Web FX :rolleyes:
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 95
Reputation: ManicCW is an unknown quantity at this point 
Solved Threads: 11
ManicCW's Avatar
ManicCW ManicCW is offline Offline
Junior Poster in Training

Re: Linking flash buttons to htm pages

 
0
  #2
Sep 28th, 2006
Where is your swf file placed? Use getUrl path relative to swf file.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Linking flash buttons to htm pages

 
0
  #3
Oct 18th, 2006
yeah every link link in flash is relative to the swf file directory
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 154
Reputation: katarey is an unknown quantity at this point 
Solved Threads: 20
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Re: Linking flash buttons to htm pages

 
0
  #4
Oct 24th, 2006
Hi

if still facing the problem so,

just add "/" in the file path

now AS should looks like:

actionscript reads;

on(release){
getURL("/Video/video1.htm");
}

this will work for you

thanks
Rahul
Last edited by katarey; Oct 24th, 2006 at 6:36 pm.
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 3
Reputation: Psychoticus is an unknown quantity at this point 
Solved Threads: 0
Psychoticus Psychoticus is offline Offline
Newbie Poster

Re: Linking flash buttons to htm pages

 
0
  #5
May 9th, 2007
i'm using actionscript 2.0 and i have linked my flash to another page using the following code:

submit_btn.onRelease = function (){
if (password_txt.text == myPassword) {
gotoAndStop(9);
getURL("http://csusap.csu.edu.au/~jsmit125/", "_self",);

and when i test it, it will run fine but when i embed in my webpage using strict XHTML compliant code it wont open the new page, can anyone tell me why and how to fix it? Any help would be greatly appriciated. The code i used to embed the movie is:

<p>
<object type="application/x-shockwave-flash"
data="site.swf?path=site.swf"
width="900" height="650">
<param name="movie"
value="site.swf?path=site.swf" />
<param name="allowScriptAcess" value="never" />
<img src="noflash.gif"
width="200" height="100" alt="" />
</object>
</p>
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 30
Reputation: azzu5 is an unknown quantity at this point 
Solved Threads: 2
azzu5 azzu5 is offline Offline
Light Poster

Re: Linking flash buttons to htm pages

 
0
  #6
May 9th, 2007
Originally Posted by Psychoticus View Post
getURL("http://csusap.csu.edu.au/~jsmit125/", "_self",);

and when i test it, it will run fine but when i embed in my webpage using strict XHTML compliant code it wont open the new page, can anyone tell me why and how to fix it? Any help would be greatly appriciated. The code i used to embed the movie is:
try this getURL("http://csusap.csu.edu.au/~jsmit125/", "_blank",);

_self = this will open in same window

_blank = this will open in new window
Looking at my own code of Life and thinking what the hell is this....
------------------------------------
Middle East B2B Marketplace
Dubai Web Design
Dubai SEO
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 3
Reputation: Psychoticus is an unknown quantity at this point 
Solved Threads: 0
Psychoticus Psychoticus is offline Offline
Newbie Poster

Re: Linking flash buttons to htm pages

 
0
  #7
May 9th, 2007
Originally Posted by azzu5 View Post
try this getURL("http://csusap.csu.edu.au/~jsmit125/", "_blank",);

_self = this will open in same window

_blank = this will open in new window
Yeah i'm fairly competent in html and that was one of my first thoughts but still nothing happens. I have even tried just having text in the flash movie to link but it wont either???
Last edited by Psychoticus; May 9th, 2007 at 10:46 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 2
Reputation: oliverwynn is an unknown quantity at this point 
Solved Threads: 0
oliverwynn oliverwynn is offline Offline
Newbie Poster

Re: Linking flash buttons to htm pages

 
0
  #8
Jun 20th, 2007
I am also having the same problem. I have built some animated buttons and put the correct actionscript inside them but the links won't work. Nothing happens, just a dead click on the button. Its really strange? It works when testing the movie in flash 8, but not when i publish it to a webpage?

desperately need some help

Oli
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 3
Reputation: Psychoticus is an unknown quantity at this point 
Solved Threads: 0
Psychoticus Psychoticus is offline Offline
Newbie Poster

Re: Linking flash buttons to htm pages

 
0
  #9
Jun 20th, 2007
i found that it was becuase i was testing it out locally, try uploading it to your server then see if it's still a dead click.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 2
Reputation: oliverwynn is an unknown quantity at this point 
Solved Threads: 0
oliverwynn oliverwynn is offline Offline
Newbie Poster

Re: Linking flash buttons to htm pages

 
0
  #10
Jun 20th, 2007
IT WORKS!!!!! thats awesome thanks so much!!!!!

oli
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Graphics and Multimedia Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC