Answered
loading dynamic data into the component
Hi,
Im having an issue with loading text into the component. Untill the new component came along i was loading data from a component called slideshowpro into a dynamic text field. my script looked like this (with the dynamic text field being t_txt):
import net.slideshowpro.slideshowpro.*;
function onImageData(event:SSPDataEvent) {
if (event.type=="imageData") {
t_txt.htmlText=event.data.caption;
}
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onImageData);
- I would like now to load the same data into the text layout component going by the same name (t2_text). How would i go about changing the above script to flow the data into the text layout component rather than the dynamic text field? thx.
Im having an issue with loading text into the component. Untill the new component came along i was loading data from a component called slideshowpro into a dynamic text field. my script looked like this (with the dynamic text field being t_txt):
import net.slideshowpro.slideshowpro.*;
function onImageData(event:SSPDataEvent) {
if (event.type=="imageData") {
t_txt.htmlText=event.data.caption;
}
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onImageData);
- I would like now to load the same data into the text layout component going by the same name (t2_text). How would i go about changing the above script to flow the data into the text layout component rather than the dynamic text field? thx.
