Skip navigation
Currently Being Moderated

Flash CS5.5 Compiler Errors

Jun 2, 2011 12:22 PM

Just upgraded from CS5 to CS5.5

Code that worked in CS5 now gives compiler errors:

Symbol 'VideoPlayerMC', Layer 'Layer 2', Frame 1, Line 21     1119: Access  of possibly undefined property state through a reference with static  type flash.events:VideoEvent.

Symbol 'VideoPlayerMC', Layer 'Layer 2', Frame 1, Line 42     1119: Access  of possibly undefined property PLAYHEAD_UPDATE through a reference with  static type Class.

etc....


Problem only seems to happen if I publish to Flash Player 10.2
or to Air for IOS

 
Replies
  • kglad
    72,212 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 5, 2011 11:11 AM   in reply to jafproductions

    stagevideo is a class used to allow hardware acceleration of video.   but it has particular restrictions (like it's not in the display list and will appear below everything in the display list).

     

    the older video classes have not been removed.  and, in particular, stagevideo is not a substitute for a previous video class.

     

    the videoevent class has been changed.  if you don't need to use stagevideo or any of the 10.2 updates, publish for fp10 so you can use your code.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2011 2:19 AM   in reply to jafproductions

    Get the video flv component from the components panel and drag it on the stage and delete it. Then publish it once.

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2012 3:34 AM   in reply to relaxatraja

    An older thread but if you want to solve this and not really need Player 10.2 - just publish back on Flash player 9 and it will work again

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 3:22 AM   in reply to jafproductions

    this bug will be solved if you type the original string value of the actual event instead of the original

     

    from ex:

     

    - FlvPlayBack.addEventListener(VideoEvent.PLAYHEAD_UPDATE , updateProgress);

     

    becomes

     

    - FlvPlayBack.addEventListener('playheadUpdate' , updateProgress)

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 3:00 AM   in reply to _hadi

    one could also use following ( works in FP 11.2 and probably in air2.5+ ):

     

    flvPlayback.addEventListener( fl.video.VideoEvent.PLAYHEAD_UPDATE, videoEventHandler, false, 0, true);

     

    function videoEventHandler( v:fl.video.VideoEvent ):void

    {

        switch ( v.type )

        {

            case fl.video.VideoEvent.PLAYHEAD_UPDATE:

                trace ( v.playheadTime );

                break;

        }

    }

     

     

    Its probably conflicting with flash.events.VideoEvent.

     

    Code formating

     
    |
    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