Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

morpeh text as hyperlink?

Status
Not open for further replies.

Bob2

Programmer
Jul 3, 2000
228
SE
Hi

I have created a text that morph into another shape, I wonder if is possible to make that text a hyperlink, like an area map on a simple image in html?


Regards


M
 
On a mouse click?

Put the tween in a movie clip, give the clip an instance name, say "tween_mc" and define an onRelease handler on the main timeline, where the tween_mc is present...
Code:
_root.tween_mc.onRelease = function(){
    getURL("[URL unfurl="true"]http://www.google.com/",[/URL] "_blank");
}

Regards,

cubalibre2.gif
 
how do I put the tween in a movie clip?
 
This is a bit basic...

Try selecting a frame in your shape tween. Right-click it and hit Select All. Right-click it again and hit Copy Frames. Next create a new symbol... Under Insert->Create New Symbol. Give it a name "tween_mc" and give a movie clip behavior. Click the empty first frame, then right-click it and this time select Paste Frames.
You shape tween movie clip has been created. You'll find it in the Library with the name tween_mc. Check it.

Next you should go back to your main scene, and delete the tween you had on the main timeline. You can now drag your movie clip on the timeline and give it an instance name of "tween_mc", and use the code I posted above to assign the hyperlink to it.

Regards,

cubalibre2.gif
 
Hi



I can't get it to work so I tryed another approch. I added a button in a new layer and assigned this script to it...

my_btn.onKeyUp = {
getURL(" "_blank");
}

But nothing happends when I press the button in IE!?



Regards


M
 
If you want to e-mail me your .fla, I'll set it up for you.
Hit my handle for my e-mail. Use the second one.
Fla should be zipped up and in MX only format.

Regards,

cubalibre2.gif
 
Hi


I finnaly got it to work, I downloaded an example file and followed that one, and now it's working :-D


Thanks for your time


Regards


M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top