| | |
Linking flash buttons to htm pages
Please support our Graphics and Multimedia advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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:
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:
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
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.
•
•
Join Date: May 2007
Posts: 3
Reputation:
Solved Threads: 0
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>
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>
•
•
Join Date: May 2007
Posts: 30
Reputation:
Solved Threads: 2
•
•
•
•
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:
_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
------------------------------------
Middle East B2B Marketplace
Dubai Web Design
Dubai SEO
•
•
Join Date: May 2007
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
try this getURL("http://csusap.csu.edu.au/~jsmit125/", "_blank",);
_self = this will open in same window
_blank = this will open in new window
Last edited by Psychoticus; May 9th, 2007 at 10:46 pm.
•
•
Join Date: Jun 2007
Posts: 2
Reputation:
Solved Threads: 0
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
desperately need some help
Oli
![]() |
Other Threads in the Graphics and Multimedia Forum
- Previous Thread: Photoshop, Paintshop Pro, or GIMP
- Next Thread: where you can get maya modeling tutorials
| Thread Tools | Search this Thread |
3d 10 actionscript3 adobe adobeacrobat adobereader air ajax amazon amf apple button cart childprotection cloud dashboard dell design dojofoundation dreamweaver ebay eclipse ecommerce elasticcomputecloud embed endorsement extra family flash flash-develop flashlite flex free harddrive iamthwee ibm illustrator imflash intel interactivemap javafx javascript laptop legal map micron microsoft mobile monitoringsoftware moonlight multimedia myspace nand news novell panorama pdf pedophiles photoshop photosynth php safety sandisk security shopping silverlight solidstatedrive sproutcore ssd streaming swf table ukmap unload unwanted video vulnerability web white.space xml zend zephyr zeroday






