ok. i will start with my script:
i use php to send the data to flash. everything works well.
what i want to add is an image for every item that has a flyer (if (eventFlyer != "" condition). i thought of using attachMovie but i can't seem to find a way to attache it in place (for example at the beginning of every line that has a flyer).
another thing is that i would like to use an href with a javascript to define the new page to open the flyer in (something like
).
any ideas? i'm really stuck...
thanks (-:
Code:
sTextA = "loading...";
newTextA = "<font face=\"Verdana, Helvetica, Arial\" size=\"-1\">";
for (i = 0; i < numEvents; i++) {
eventTitle = this["eventTitle"+i];
eventCountry = this["eventCountry"+i];
eventDate = this["eventDate"+i];
eventFlyer = this["eventFlyer"+i];
newTextA += "<b>"+ eventDate +"</b>";
newTextA += " @ ";
if (eventFlyer != "") {
newTextA += "<u><a href=\""+ imagesDir +"/"+ eventFlyer +"\">";
}
newTextA += eventTitle;
if (eventFlyer != "") {
newTextA += "</a></u>";
}
newTextA += " [" + eventCountry + "]";
newTextA += "<br>";
}
newTextA += "</font>";
sTextA = newTextA;
what i want to add is an image for every item that has a flyer (if (eventFlyer != "" condition). i thought of using attachMovie but i can't seem to find a way to attache it in place (for example at the beginning of every line that has a flyer).
another thing is that i would like to use an href with a javascript to define the new page to open the flyer in (something like
Code:
<a href=\"javascript:open("+ eventFlyer +", 'flyer', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=400')\">"+ eventTitle +"</a>
any ideas? i'm really stuck...
thanks (-: