inserting a link in fla file

They have: 1 posts

Joined: Nov 2004

I'm completely new to flash and I'm playing around with a script.

I have the fla file open in FlashMX and want to insert a hyperlink inside each of 3 objects

I click on one and it shows me this in the Action part

on (rollOver) {
texts.lab = "TEXT1";
texts.gotoAndPlay(texts.exitframe);
if (mov3._currentframe == 2) {
mov3.gotoAndStop(3);
}
if (mov2._currentframe == 2) {
mov2.gotoAndStop(3);
}
mov1.gotoAndStop(2);
}
on (press) {
if (_root.link1 != undefined) {
getURL(_root.link1, _root.target1);
}
}

Where would I insert the http link and what would an example code line look like for that link?

Virtuoso Net Solutions™...prepare to be virtuotized [click here]
[hosting] [domains] [ssl] [voip] [vps] [shoutcast] [colocation]
30 day money back guarantee. You'll Stay™
Editor's Choice Award 2005/2006: Best VPS | Best Dedicated

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Where did you get that code from? I'm not quite sure what it's supposed to be doing. This is the link code:

getURL(_root.link1, _root.target1);

The _root.link1 would be your http address, the _root.target1 would be the target (new window, same window etc.). I'm not sure if you have to have the _root in there. I don't think you do, but try it with and without and see which one works.

hth,

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.