How do you add a url link to a movie clip type in Adobe Flash

I have a Movie Clip type that I want to add a url to so that when a person clicks on the link, it goes to a certain destination.  How do I add a url to the movie clip type object in Adobe Flash?
VBBRettAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Manikandan1986Commented:
Linking a URL to a flash movie clip button with rollover and rollout.

on (rollOver) {_root.home.gotoAndPlay(2)

}

on (rollOut) {_root.home.gotoAndPlay(1)

}
 
on(release){
getURL("http://www.adobe.com");
}

URL: http://www.creativecow.net/interstitial.php?url=http%3A%2F%2Fforums.creativecow.net%2Fthread%2F190%2F867875&id=0
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VBBRettAuthor Commented:
Manikandan1986, what you suggested did not work.  I got a compiler error and a statement that said that the link could not be used on the movie type and that it should be used for buttons.  I don't know what to do now.  And dgofman, I don't understand what you are trying to say.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

dgofmanCommented:
You don't need to write any ActionScript code. Select your TextField component.
Press Ctrl+F3 or Windows->Properties. On the right side you will see Properties Panel.
Scroll down in that dialog and you will find "Options" session (by default is expand but if collapse you can expand manually)
And there you will find Text Field "Link:" you can add URL there such as "http://www.google.com"
Now click on "Target:" drop down component and pick "_blank" target ( in this case when you will click on you TextField it will redirect to new Tab or Window.

You can customize you Text by apply Blue color and underline to bring user attention this is a link.
0
VBBRettAuthor Commented:
Unfortunately it is still not going to my desired url after I click on the image.  Is there another way of doing this?
0
MohfathCommented:
If you are using Actionscript 3,

open Actions panel in the scene and type these:

ps: I supposed you named your object mySymbol


mySymbol.addEventListener(MouseEvent.CLICK,openPage);
mySymbol.buttonMode=true;	//this part is to make mouse pointer a hand when over this object

function openPage(evt:MouseEvent) {
	var request:URLRequest=new URLRequest("http://www.google.com");
	navigateToURL(request, "_blank");
}

Open in new window

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.