|
Тема |
Re: Kak se pribavia text v textfield? [re: zeit] |
|
Автор | seddass (Нерегистриран) | |
Публикувано | 05.10.03 19:18 |
|
|
function showjpg(paramString) {
// get the individual parameters:
// params[0] = picture file name
// params[1] = caption
var params = paramString.split("#");
picHolder.loadMovie(params[0]);
caption.text = unescape(params[1]);
}
function showContent() {
var i;
content.htmlText = "";
for (i=0; i < this.n; i++) {
if (this["picFile"+i] != "") {
content.htmlText += "<b>" + this["firstName"+i] + " " + this["lastName"+i] + "</b>" + "<a href='asfunction:showjpg," + this["picFile"+i] + "#" + escape(this["caption"+i]) + "'> (<font color='#0000cc'>pic</font>)</a> ";
} else {
content.htmlText += "<b>" + this["firstName"+i] + " " + this["lastName"+i] + "</b> ";
}
content.htmlText += " " + this["phone"+i] + " ";
content.htmlText += " <a href='mailto:" + this["email"+i] + "'>" + this["email"+i] + "</a>
";
}
}
// Create new load vars object c for data transfer
var c = new LoadVars();
c.onLoad = showContent;
// define content and actions for each tab
for (var i=65; i<=67; i++) {
this["tab"+chr(i)].letter.text = chr(i);
// when this tab is clicked
this["tab"+chr(i)].onRelease = function() {
// can't use chr(i) here -- must use mc name
c.thisLetter = this._name.substr(3,1);
bigLetter.text = c.thisLetter;
content.htmlText = "Loading data for " + c.thisLetter;
// scope of this function is main timeline so can refer to c directly
c.sendAndLoad("flashmx_dbPassReturn.php",c,"POST");
}
}
stop();
|
| |
|
|
|