# Android and iOS publishing: VideoEvent.COMPLETE not working?

**URL:** <https://forum.kirupa.com/t/android-and-ios-publishing-videoevent-complete-not-working/322787>\
**Category:** flash\
**Created:** [June 3, 2011, 7:56am UTC](https://forum.kirupa.com/t/android-and-ios-publishing-videoevent-complete-not-working/322787 "2011-06-03T07:56:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Egomet](https://avatars.discourse-cdn.com/v4/letter/e/2acd7d/32.png) [@Egomet](https://forum.kirupa.com/u/Egomet)\
**Post date:** [June 3, 2011, 7:56am UTC](https://forum.kirupa.com/t/android-and-ios-publishing-videoevent-complete-not-working/322787/1 "2011-06-03T07:56:15Z")

</div>

Hello

I have a project that I want to port to mobile platform on Android and iOS.

The project uses a _v.addEventListener(VideoEvent.COMPLETE, completePlay)_ handler to detect when video is finished playing and trigger the next action.

The project is running perfecty when publishing for Air or Flash Player 9 and above.

However when just changing the target player for publishing to Air for Android or iOS the following error occours:

**Access of possibly undefined property COMPLETE through a reference with static type Class.**

Can anyone very kindly advise why this is happening and what I am missing.

Many thanks.
