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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a link on a swf file

Status
Not open for further replies.

aspro

Programmer
Jan 22, 2003
69
AU
I have a .swf movie clip which has an onrelease.getURl the problem is that I want to change the URL but i cannot figure out an easy way to do it without making the whole thing again.

Please help,
aspro
 
A little more info? You don't have the .fla?
What the exact code?

Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
I have a movie clip but only the swf file....no fla file so there is no code. It is linked already but I want a way to change the link. Even if I put something over it like another transarent layer that has a link or something along those lines. Anything will do.

aspro
 
if you importing this swf into another at run time then try adding this to frame 1 of the main swf

MovieClip.prototype.onRelease = function(){
}

it just may override the code on the clip
 
If Instructor Bill's proposal doesn't work... You can simply load this .swf in a container clip, and add an invisible button over the existing link, with your new link.
If that link is not available throughout the .swf and only some part of it, you could monitor a range of frames (through a control clip), and only set your own invisible button on that range of frames.

Regards,

cubalibre2.gif

I'm Bill Watson's biggest fan!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top