Hi all,
I'm very new to Flash, MX to be exact, and am having troubles with something. I've tried to research this, but I haven't found any examples.
What I am doing is loading up a movie clip dynamically with attachMovie. I have the movie's linkage properties set and I can do everything with the movie, such as load it, unload, change its position, and change its alpha. What I can't do is set the dynamic textfields inside the attached movie. I tried finding more about this initObject but haven't been successful. Can someone help?
Here is what I have, sitting on the main timeline:
frontscreen_name and frontscreen_content are the instance names of 2 textfields inside of FrontScreen_mv. They don't show any text, even undefined. I checked the font color to make sure it doesn't match the background. All looks fine. Any and all help is appreciated. Do I need to use the initObject? If so, how?
Mike
I'm very new to Flash, MX to be exact, and am having troubles with something. I've tried to research this, but I haven't found any examples.
What I am doing is loading up a movie clip dynamically with attachMovie. I have the movie's linkage properties set and I can do everything with the movie, such as load it, unload, change its position, and change its alpha. What I can't do is set the dynamic textfields inside the attached movie. I tried finding more about this initObject but haven't been successful. Can someone help?
Here is what I have, sitting on the main timeline:
Code:
on(release){
_root.attachMovie("FrontScreen_mv","homemovie", 1);
homemovie._x = 337;
homemovie._y = 285;
SiteContent1 = new LoadVars();
SiteContent1.onLoad = onText1;
SiteContent1.load("site_content.txt");
function onText1() {
homemovie.frontscreen_name.text = SiteContent1.hometitle;
homemovie.frontscreen_content.text = SiteContent1.home_content;
}
}
frontscreen_name and frontscreen_content are the instance names of 2 textfields inside of FrontScreen_mv. They don't show any text, even undefined. I checked the font color to make sure it doesn't match the background. All looks fine. Any and all help is appreciated. Do I need to use the initObject? If so, how?
Mike