Categories

How to assign link to text

Ray Taylor May 23, 2011
Rating: 5.0/5. From 1 vote.
Please wait...

First of all you should open source “FLA” file in Adobe Flash editor. To add links to the button symbols in your flash movie do the following. First of all you should locate button symbol you want links be assigned to. Open the library (CTRL+L) and locate pages movie clip. Usually called “pages_all”, “pages”, “pages2”, “content” or “all_content”.

Using the timeline slider, navigate to the page where your text is. Locate the text and click on it to select. Now you should check whether it is a button layer or not. It must be a “Button”. If it is “Movie Clip”, “Graphics” or some other that differs from “Button” you can’t assign links to it in the right way. Don’t change it to the “Button” because it will damage original rollover structure.

As we can see it is not a “Button”.
Double click this symbol to get inside of it. Now, we can see the Button layer. Press “F9 key to open Actions panel. If this button has rollover effect, you will see following script code there:

  on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}

Add there following get URL action script code:

  on (release) {
getURL(“your_url_here”);
}

 

You should type URL button will be linked to as get URL function argument. For example, if you want to link button to your contacts page type the following:

  on (release) {
getURL(“http://mywebsite.com/contacts.html”);
}

Actually, get URL function accepts three arguments: URL, window type and variables send method. Window type argument specifies where new URL will be opened. If this argument is blank the link will be open in the same window. If you want to open it in a new window, use the “_blank” argument. Variables send method should be used if you are parsing some variables through the URL string. The available options are “GET” and “POST”. Next action script example calls products page with “item” variable with “9″ value in the same window using a GET method.

  
on (release) {
getURL(“http://mywebsite.com/products.php?item=9″, “_self”, “GET”);
}

Here is what we have in our particular example:

  on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (release){
getURL("http://template-help.com");
}

 

Publish the .FLA file. You may use(CTRL+ENTER) short key or go to File->Publish Preview-> Flash

Feel free to check the detailed video tutorial below:

how to change Google Map location in WordPress

Best Premium Wordpress Themes
This entry was posted in Working with Flash and tagged AS2.0, assign, flash, link, text. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket