Answered
Imported SWF actionscript not working in _root movie...
Hello.
I will tell you below what I want to accomplish, then I'll tell you what I have done (that didn't work). I'm hoping that someone here can tell me where I went wrong, and also how to fix it and pull off what I'm trying to do. Thanks!...
WHAT I WANT TO DO:
I want to have a Captivate SWF loaded into the bottom half of a main Flash "shell" SWF, and then when the Captivate SWF is done playing, a text field on the main "shell" SWF puts the word "DONE!" in it.
WHAT I HAVE DONE (that didn't work):
I have a Flash SWF that loads a Captivate3 SWF in its bottom half (that works fine). The top half of the main Flash movie has a dynamic text field on it called "doneText_txt".
I then made another SWF that is just 10x10px and all that is on it is ActionScript on the first frame that says:
_root.doneText_txt.text = "DONE!";
I then went on the last slide/frame of my Captivate project (in Captivate) and did an "Insert-->Animation" to insert that small 10x10 SWF onto that final slide.
When I load that main "shell" and then the Captivate project loads at the bottom and finishes playing, nothing is displayed in the "doneText_txt" text box.
THINGS I NOTICED:
When I imported the SWF into Captivate, it was transparent (didn't show up). I adjusted the transparency on it (in Captivate) to both 0% and 100%, and it still didn't show up. I thought that it may be just because it had nothing on it (just the default white background), so I went back into Flash and re-exported the 10x10 SWF after filling it with black. I re-imported it into Captivate, and still it didn't show up. Like, I figured you'd see a black square on the slide. It was on the timeline, and I could move it around on the slide, but it was just a clear transparent box. This made me think that the reason the "DONE!" text wasn't getting passed was because there was a problem with the SWF even being on the slide in the first place.
Any ideas???? Or, if there's another way to pull off what I'm trying to do, that would be fine with me as well. Thanks!!!
I will tell you below what I want to accomplish, then I'll tell you what I have done (that didn't work). I'm hoping that someone here can tell me where I went wrong, and also how to fix it and pull off what I'm trying to do. Thanks!...
WHAT I WANT TO DO:
I want to have a Captivate SWF loaded into the bottom half of a main Flash "shell" SWF, and then when the Captivate SWF is done playing, a text field on the main "shell" SWF puts the word "DONE!" in it.
WHAT I HAVE DONE (that didn't work):
I have a Flash SWF that loads a Captivate3 SWF in its bottom half (that works fine). The top half of the main Flash movie has a dynamic text field on it called "doneText_txt".
I then made another SWF that is just 10x10px and all that is on it is ActionScript on the first frame that says:
_root.doneText_txt.text = "DONE!";
I then went on the last slide/frame of my Captivate project (in Captivate) and did an "Insert-->Animation" to insert that small 10x10 SWF onto that final slide.
When I load that main "shell" and then the Captivate project loads at the bottom and finishes playing, nothing is displayed in the "doneText_txt" text box.
THINGS I NOTICED:
When I imported the SWF into Captivate, it was transparent (didn't show up). I adjusted the transparency on it (in Captivate) to both 0% and 100%, and it still didn't show up. I thought that it may be just because it had nothing on it (just the default white background), so I went back into Flash and re-exported the 10x10 SWF after filling it with black. I re-imported it into Captivate, and still it didn't show up. Like, I figured you'd see a black square on the slide. It was on the timeline, and I could move it around on the slide, but it was just a clear transparent box. This made me think that the reason the "DONE!" text wasn't getting passed was because there was a problem with the SWF even being on the slide in the first place.
Any ideas???? Or, if there's another way to pull off what I'm trying to do, that would be fine with me as well. Thanks!!!