المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to Linking to External Files, Websites and Emails in Flash



bahattab
04-12-2008, 03:13 AM
http://www.atyafonline.com/vb/imgcache/900.png Linking to External Files, Websites and Emails in Flash


Learn how to link to web pages, external websites, frames and email addresses in Flash using text links or buttons using the GetURL function in actionscript.
Please Note : The tutorial is explained using Flash 8.0.
There are different ways that you can link to websites and emails in Flash

Text Links

The first way is very simple. You can link to a website via a simple text link.
Type in the text using the A tool and in the properties inspector you can enter the full http path of the website or you can enter a web page name if you want to link to a page within the same folder. You can also set the target as _blank if you want the website to open in a new browser window (as seen below).

http://www.atyafonline.com/vb/imgcache/901.png

To link to an email address, all you need to do is enter mailto: followed by the email address (See below)

http://www.atyafonline.com/vb/imgcache/902.png


You can also link to content in a frame, by specifying the html file and frame name (See below).

http://www.atyafonline.com/vb/imgcache/903.png

You can also link to an image or a pdf file by entering the file name and specifying "_blank" to open the file in a new browser window.


Button Links

You can also link to websites, web pages and emails from buttons using the GetURL function in actionscript.
All you need to do is choose the button and in the actionscript panel, enter the following script :

on (release)
{
getURL("http://www.entheosweb.com", "_blank");
}
http://www.atyafonline.com/vb/imgcache/904.png

You can link to an email address the same way, prefixing it with mailto: (see below).

http://www.atyafonline.com/vb/imgcache/905.png

You can also link to particular frame by giving the content.html file and frame name. Flash will open the content file in the frame name you specify. See example given below.

http://www.atyafonline.com/vb/imgcache/906.png

You can also link to an image or a pdf file by entering the name of the image or pdf file and opening it in a new browser window by specifying "_blank".

http://www.atyafonline.com/vb/imgcache/907.png



http://www.entheosweb.com/Flash/external_links.asp