FORUMS: list search recent posts

Specify dynamic url in htmlText

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Josh Gage
Specify dynamic url in htmlText
on Apr 6, 2011 at 4:56:36 pm

Hi, I am new to COW and looking for some help.

I am populating a dynamic text box with some information that comes from an xml.

function callInfoWindowQuery(){

//make it visible in case its not
infoBox.alpha=1;
infoBox.mouseEnabled=true;
infoBox.visible=true;

//create the temp variables
var calledMarkerIndex=pntxml.row[pointindex].ID;
var calledMarkerDate=pntxml.row[pointindex].DATE;
var calledMarkerDescription=pntxml.row[pointindex].DESC;
var calledMarkerContent=pntxml.row[pointindex].URL_OF_CONTENT;

//fill in the text
infoBox.informationText.htmlText=
""+calledMarkerIndex+
"n"+calledMarkerDate+
"<img src="'calledMarkerContent'/" />"+
"nnnnnnnnnnnnnnnnn"+calledMarkerDescription+function callInfoWindowQuery(){

//make it visible in case its not
infoBox.alpha=1;
infoBox.mouseEnabled=true;
infoBox.visible=true;

//create the temp variables
var calledMarkerIndex=pntxml.row[pointindex].ID;
var calledMarkerDate=pntxml.row[pointindex].DATE;
var calledMarkerDescription=pntxml.row[pointindex].DESC;
var calledMarkerContent=pntxml.row[pointindex].URL_OF_CONTENT;

//fill in the text
infoBox.informationText.htmlText=
""+calledMarkerIndex+
"n"+calledMarkerDate+
"<img src="'calledMarkerContent'/" />"+
"nnnnnnnnnnnnnnnnn";


I am also placing an image in the text box which you can see from the url above.

I would like this url to be dynamic just like the other variables that are filling in the text box calledMarkerIndex, calledMarkerDate, calledMarkerDescription.

I have another variable which specifies the url I'd like named calledMarkerContent

I've tried simply replacing the url with the dynamic variable which specifies the image's location but that does not work.

I feel like maybe I am just making a scripting error. Or maybe I cannot use a dynamic variable in this place. Anyone have ideas?

thanks in advance,

josh


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]