I hope I can get some help with this issue I’m having. (Or make that issues. ><)
I’m making a flash animation where there’s a FLV video playing, with animations created in flash occurring in the background.I have the video playing correctly and I have the animations playing.
My problem is that I created control buttons from the “Components” that Flash offers, and the buttons control the FLV video, but not the animations in the background. I’ve tried adding stop(); and play(); actions to them, but it doesn’t work.
I had it half-working by using this code:
function playPause(event:MouseEvent):void
{
if(isPlaying==5){
isPlaying==6;
this.stop();
} else {
isPlaying==5;
this.play();
}
}
It would pause the animations, but not restart them.
I have a rewind button that works correctly:
function rewindMovie(event:MouseEvent):void
{
this.gotoAndPlay(2);
}
I’m also having an issue creating a URL link button. The button is near the end of the video. I tried using the following code:
contact.onRelease=function(){
getURL(“http://www.tutorial5.com/”, “_blank”);
}
but that gives me this message:
1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton.