-
how to convert as2 to as3
import flash.events.Event;
addEventListener(Event.ENTER_FRAME,myEnterFrame);
function myEnterFrame(event:Event)
{
if (localFlag != null && drm_flag != null)
{
if (localFlag != undefined && drm_flag != undefined)
{
if (drm_flag == localFlag)
{
myEnterFrame.removeEventListener(Event.ENTER_FRAME ,myEnterFrame);
MovieClip(this.root).play();
}
else
{
MovieClip(this.root).gotoAndPlay(1);
if (MovieClip(this.root).currentFrame == 1)
{
MovieClip(this.root).gotoAndPlay(2);
}
}
}
else
{
MovieClip(this.root).gotoAndStop(1);
if (MovieClip(this.root).currentFrame == 1)
{
MovieClip(this.root).gotoAndPlay(2);
}
}
}
else
{
MovieClip(this.root).gotoAndStop(1);
if (MovieClip(this.root).currentFrame == 1)
{
MovieClip(this.root).gotoAndPlay(2);
}
}
}
stop();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|