How to href the swf file?

05-01-04, 03:49 AM
|
|
New Member
|
|
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
How to href the swf file?
Hello,,
I have a flash (swf) file,, and it is not clickable,,
How to make it clickable using html or javascript? like <img> tag, when you add (href) attribute, it became clickable.
Any help please.
Last edited by engrkhalid; 05-01-04 at 03:54 AM.
|

05-01-04, 05:39 AM
|
 |
Newbie Coder
|
|
Join Date: Apr 2004
Location: Serbia
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I dont understand what you mean 'not clickable' explain more specific, please
you mean that when you click onto flash thing then you go to some place else?
if so you need to draw a square all over the work area in Flash and then select this square (or what ever shape that can be depends on what shape have your flash file) press F8 and select Button. Double click on it and on hint (its the last field in button area) field move that square you draw into hint field leaving those three empty (double click on grey area to go back), as a result you'll get some kind of blue shape that presents button all over your flash file. Don't worry it's not visible in run time. if you want to add an action to this button right click on some kind of blue color and select action, try to locate GetURL, I can remeber where is it exacly and just put URL you desire.
hope this is it...
Last edited by kasic; 05-01-04 at 05:45 AM.
|

05-01-04, 07:51 AM
|
|
New Member
|
|
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Mr. kasic for your reply,,
Yes,, that what I ment..
But, I need to do it from the HTML or javaScript.. Can that happen?
|

05-01-04, 09:11 AM
|
 |
Newbie Coder
|
|
Join Date: Apr 2004
Location: Serbia
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I don't think so... maybe, but I'm not sure... if I find out I will tell you...
|

05-02-04, 05:51 AM
|
|
New Member
|
|
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank Mr. kasic ....
and if any one knows how... tell us please..
|

06-22-06, 07:08 PM
|
|
New Member
|
|
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have same problem. Please some one can help!!!
Thanks a lot.
|

06-23-06, 02:35 AM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
if you can access the fla file, or decompile the swf file, you could place this code in your flash file:
this code assumes you have a background image, on which you can click, cause flash requires an object to click on, you can't just use the application itself. replace "myimage" by the name of the background image
_blank is the same as in html: opens a new window with the page in it.
you could use html as well:
this should work as well
Greetz,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|

06-23-06, 02:37 PM
|
|
Newbie Coder
|
|
Join Date: Jun 2006
Location: Barrie, Ontario, Canada
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I always wondered how to do this too... Always settled for adding an invisible button over top of the movie with this code snippet
|

06-23-06, 03:22 PM
|
|
New Member
|
|
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
<object> tag does word in <a href >
Quote:
|
Originally Posted by UnrealEd
if you can access the fla file, or decompile the swf file, you could place this code in your flash file:
this code assumes you have a background image, on which you can click, cause flash requires an object to click on, you can't just use the application itself. replace "myimage" by the name of the background image
_blank is the same as in html: opens a new window with the page in it.
you could use html as well:
this should work as well
Greetz,
UnrealEd
|
Thanks. But the key is swf file does not clickable. I do not know how to decompile swf file. Is any way to modify html or asp code to let this code clickable:
or let code: works
Thanks a lot.
Last edited by Christian; 06-23-06 at 05:47 PM.
Reason: Added [CODE] tags.
|

06-24-06, 02:25 PM
|
 |
Community Liaison
|
|
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
|
|
here are some links toswf decompilers:
http://www.eltima.com/products/flashdecompiler/
http://www.swftools.com/tools-detail...ool=7672718848
you could download one of them, and convert your swf to an fla
than you can use a flash editor to add the getURL method
the sollution losse gave will work as well. create a new button, with transparent background and convert it to symbol (button) and name it. then place this code in the layer where the button is located:
this should work. if you don't know how to edit and write actionscript, here are some tutorials:
http://www.actionscripts.org/tutorials.shtml
http://www.adobe.com/support/flash/a...ript_tutorial/
http://www.webdevelopersnotes.com/tu...use_drags.php3
if you search google, you'll find many more. if you need extra help, post it in the flash actionscript forum
Good Luck,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|