I've been trying to animate skins in the map editor on RollOver and RollOut. I've managed to connect the setup between AS3 and the OpenSpace map:
Code: Select all
trace("onSkinInteraction " + trigger + " trigger: " + evt.target + evt.currentTarget + evt.params.skin);
onSkinInteraction Trigger rollOver (target: 'enabledDoor'; params: '') trigger: [object OpenSpace][object OpenSpace][object door01]
And I see there's examples of how the skins can be played as MovieClips:
Code: Select all
else if (trigger.target == "rocking") // Make rocking chair rock
{
(skin as MovieClip).gotoAndPlay("rock")
}
However where I'm struggling is how to activate the animation in Flash. Where do you create the animation in Flash for it to be played in the map? Is it an animation within the MovieClip in the library? Within a instance of a MovieClip in the scene? If you're able to use a tween inside a MovieClip in the library? How does it work?
Any help appreciated! I'm almost there!