| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Member
Join Date: Jun 2007
Posts: 51
|
hi all how to make a flash file(.swf) as a link(href) in a html..
|
|
|
|
|
|
#2 |
|
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
|
First frame of your movie...
this.onMouseDown = function(){ getURL("http://www.google.com/", "_self"); } |
|
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2007
Posts: 51
|
sorry, i need not to put a URL in a .swf
i have created a flash movie(.swf).. can i use that in a html link(<href>) to link a website.. sorry... if im confusing you... |
|
|
|
|
|
#4 |
|
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
|
Sure... Type some text... If it's static text, hilight the word(s) that'll be the link. In the textfield's properties, in the URL box (chain icon at the bottom...) type in the url... Voila!
If it's dynamic text, select the html tab (<>) and set the url in the same manner. |
|
|
|
|
|
#5 |
|
Flash Adventurer
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
|
I think kumaravel wants to be able to reuse the SWF for multiple URLs, and specify them in the HTML. However, this is not possible.
|
|
|
|
|
|
#6 |
|
Registered User
Join Date: Jul 2007
Posts: 5
|
do you mean like a clicktag? where the .swf acts as a link but the link is provided by an html code?
make a transparent box ontop of your movie. add into actions: on (release) { getURL(_root.clickTag, "_blank"); } its all case sensitive. make an html file <embed src="yourfilehere.swf?clickTag=http://www.link.to.whatever.com" /> make sure clickTag is case sensitive on both ends. |
|
|
|
|
|
#7 |
|
Flash Adventurer
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
|
Interesting idea. Note that this is the Flash 9 forum, so in ActionScript 3 you would use:
ActionScript Code:
|
|
|
|
|
|
#8 |
|
Member
Join Date: Jun 2007
Posts: 51
|
Ya.. great idea.. its working...
but i experienced a problem during the click.. a alert came during the click... (Cannot find the 'file://hard_disk_location'. make sure the path or internet address is correct....) i used.... Flash: on (release) { getURL(_root.clickTag, "_blank"); } html <embed src="hai.swf" clickTag="http://www.yahoo.com" /> i think this is correct as per ur code.. thank you.. |
|
|
|
|
|
#9 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
Try this...
HTML Code:
<embed src="hai.swf?clickTag=http://www.yahoo.com" />
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| adding a link in flash | timx1981 | ActionScript 1.0 (and below) | 5 | 10-17-2008 06:06 AM |
| Link to open swf in Flash player | daveh113 | Components | 5 | 09-28-2005 09:37 PM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 12:13 PM |
| scrollBar on Flash Exchange | cdeg | Components | 5 | 05-03-2004 08:13 PM |
| Open Flash from asp link that passes query string | drliebs | ActionScript 1.0 (and below) | 2 | 03-03-2004 10:07 AM |