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

Director hyperlinks problem

Status
Not open for further replies.

frnani

Programmer
Jul 20, 2010
3
0
0
PT
Hello, I´ve a problem with a hyperlink behavior…
I´ve a text member with several hyperlinks to open xls external files, and an attach handler with this code:

on hyperlinkClicked me, whereTo

-- 101
if whereTo="tab_101" then
baOpenFile(the moviePath&"\tabelas\Tab_101_N2.xls","maximised")
end if

-- 102
if whereTo="tab_102" then
baOpenFile(the moviePath&"\tabelas\Tab_102_N2.xls","maximised")
end if

(…)
End

When opening the files by the sequence of the links in the text (tab_101, tab_102... tab_n) it works perfectly.
But if I try to open the 1st file and after open the 3rd , this link doesn’t work, and the 4th link acquires the parameter whereTo=tab_101, opening the wrong file.
On debugging, I conclude it has nothing to do with the use of the buddy api function, is a problem related with the hyperlinks only. If removing the line breaks in the text member, the bug disappears, but unfortunately I´ve to have a hyperlink in each line… ?

Can anyone give me a hand?… I´m kind of lost in this problem
Thanks
 
It was a Director 11 bug... in the version 11.5 it performs perfectly.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top