Importing Flash (Actionscript 2) into Captivate 3
- May 1, 2009
- 3 replies
- 1224 views
I recently needed to create some buttons that would show an image when the button is clicked and hide it when you click the button again. Since this capability does not appear possible in Captivate 3, I created a button with the appropriate image in Flash. It works fine when I test the Flash file or run it by itself. However, it does not appear to work properly when I insert it into Captivate as an animation. The up, over, and down posistions work on the button, but the image does not display when the button is pressed. The following code was used in Flash:
(keyframe script)
// when swf is loaded
myMC1.onLoad()
{
myMC1._visible = false;
}
(button script)
//when our button pressed:
on(press)
{
//check if its visible
if (myMC1._visible == true) {
//if it is make them invisible
myMC1._visible = false;
} else {
//otherwise make them visible
myMC1._visible = true;
}
}
Any ideas why it works on its own, but not in Captivate?
Darin