Skip navigation
zak_flash
Currently Being Moderated

Publish for Flash Player 11, video events not working

Sep 14, 2012 8:38 AM

I have a Flash project that I'm publishing in Flash Player 11 in hopes having better animation results with Flash Player 11's better rendering capabilites.

 

However, my AS3 Video Events are now throwing errors. These two Event listeners throw the error.

 

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

"Access of possibly undefined property PLAYING_STATE_ENTERED through a reference with static type Class."

 

 

 

videoOverlay_mc.video_mc.addEventListener(VideoEvent.COMPLETE, fnc_endOfVideo)

 

videoOverlay_mc.video_mc.addEventListener(VideoEvent.PLAYING_STATE_ENT ERED, fnc_videoStart);

 

 

If I publish as Flash Player 10.x the events & listeners work fine.

 

I've been trying to find documentation on Flash Player 11 and what video events to use. Does anyone know where I can find this?

 

The API's still shows the videoEvents, http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/ video/VideoEvent.html

 

Thanks in advance for your reply,

Zak

 
Replies
  • kglad
    63,093 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 14, 2012 8:54 AM   in reply to zak_flash

    try using Event.COMPLETE or using the entire path:

     

    fl.video.VideoEvent.COMPLETE

     
    |
    Mark as:
  • kglad
    63,093 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 14, 2012 9:00 AM   in reply to zak_flash

    use the complete class path, then.

     
    |
    Mark as:
  • kglad
    63,093 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 14, 2012 9:29 AM   in reply to zak_flash

    you're welcome.

     

    p.s.  please mark helpful/correct responses.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points