FORUMS: list search recent posts

How do I write this If/Else

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Matt Abron
How do I write this If/Else
on May 23, 2008 at 7:40:45 pm

Hello all powerful coders, please help this designer with AS3...

Basically, I want to write a conditional statement to have the code look for an instance of the FLV player with the toolbar reset button, if there is no FLV player on that frame_on the stage then for it fire the gotoAndPlay event...

Seems simple but I am having issues...



stop();

edit_btn.addEventListener(MouseEvent.CLICK, navigate1);

function navigate1(event)

if(playerMograph_mc.toolbar.btn_reset)
{
dispatchEvent(new Event("mouseDown"));
}
else
{
gotoAndPlay("editing");

}

This is to stop the Audio from the FLV player when navaigating to another frame, this approach works great but obviously when going through the buttons in order...but when going back from a frame with no player this fails on the forst line and cannot fire the second event.

Thanks



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]