Help - Search - Members - Calendar
Full Version: Flash Links
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
MathiasMindblade
leaf.zxq.net

I'm starting a Naruto fansite, and I want to make my mini swf's into links so I can get back to work on it. I didnt take the formatting from the free templates, I got it from Dreamweaver.
uncled1023
trippy....
MathiasMindblade
Here is my attempt.

<a href="http://leaf.zxq.net">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="150" height="40" title="home">
<param name="movie" value="home.swf" />
<param name="quality" value="high" />
<embed src="home.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="40"></embed>
</object>


</a>



As you can see, I have been trying to use an .swf flash animation as an image for a hyperlink. This method though, does not seem to work. Please help me with this if you can.
bezz
The link should be within the flash applet using actionscript.
http://livedocs.adobe.com/flash/8/main/wwh...e=00001730.html
machine
Ja, like Bezz says, you need to use the getURL command [within your Flash authoring tool itself] to create these hypelinks. So instead of creating just a Flash file, you have to create Flash buttons that you can then embed in your webpage.

Let me give you an example: your script for a typical Flash website navigation button would be something like this:

CODE
on( release ){
    getURL("yourpage.htm")
    }


Replace yourpage.htm with the title of the page you want to load.

Note: getURL is the command you use in Flash MX, it could be different for newer versions of Flash. Check the manual for details.

Cheers!
MathiasMindblade
QUOTE(machine @ Apr 14 2008, 04:46 AM) *
Ja, like Bezz says, you need to use the getURL command [within your Flash authoring tool itself] to create these hypelinks. So instead of creating just a Flash file, you have to create Flash buttons that you can then embed in your webpage.

Let me give you an example: your script for a typical Flash website navigation button would be something like this:

CODE
on( release ){
    getURL("yourpage.htm")
    }


Replace yourpage.htm with the title of the page you want to load.

Note: getURL is the command you use in Flash MX, it could be different for newer versions of Flash. Check the manual for details.

Cheers!



So, are you saying I need Flash MX? I have Flash Professional 8. Btw Bezz, I looked over the site you posted and it hurt my brain...ow. I posted the code I'm using for one of my images and I need to know how to alter it to turn it into a button. I don't know, maybe I just have the wrong software..
bezz
Oh I guess you are brand new to flash. This link might be better:
http://www.trap17.com/index.php/linking-ur...tton_t9225.html
machine
QUOTE
So, are you saying I need Flash MX?


Not at all, you'll do just fine with your version of Flash.

What I meant was that the getURL command may have changed since Flash MX -- I don't know as I use Flash MX.

> In case it has not, the code [posted above] will be perfectly valid and functional.

> And even if it has changed, the code above should still work, since Flash players are backwards-compatible.

The only reason I mentioned that "code-might-have-changed" bit is because it is not good programming practice to use outdated commands. But since you are new to Flash, you can defnitiely go ahead and do what you need to get your page working. Then, once you get the hang of it, you can update your script/code accordingly.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.