TwelvestoneFlash

missing FLVPlayback.enterFullScreenDisplayState() ?


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
baron ruhstoff
 
2009-04-23

Anyone know why the enterFullScreenDisplay method might be missing? It is listed in the documentation) but does not appear at compile time, thus throwing an error.

Don't believe me? Observe...

1061: Call to a possibly undefined method enterFullScreenDisplayState through a reference with static type fl.video:FLVPlayback.

So what is the embarrassingly obvious and simple solution to which I am blind? :(

JLM
 
2009-04-23

Are you calling it on the class or an instance of the class?

lithium
 
2009-04-23

That didn't come in until flash player 9 update 3.

a way to get around it while you're developing (which is a bit hacky), is to use:

player"enterFullScreenDisplay";

This may throw an error in your IDE, but will work for anyone using the correct version of the player in the browser.

baron ruhstoff
 
2009-04-23

Originally posted by: JLM Are you calling it on the class or an instance of the class?

Instance.

Originally posted by: lithium

player"enterFullScreenDisplay";

Ah yes. Will give that a shot.

Thanks, all!

baron ruhstoff
 
2009-04-24

My next question: Why might it be that my particular compiler does not recognize the method? More importantly, what can I do to fix it?

A few notes... - CS3 v9.0 on OSX 10.5.6 - enterFullScreenDisplayState is not present in FLVPlaybackAS3.swc > video > FLVPlayback - referencing the function name with a string throws a runtime error not only in the IDE (as promised) but in the browser as well (FP 10)

baron ruhstoff
 
2009-04-24

The plot thickens...

Following an upgrade to CS4, enterFullScreenDisplayState is now present in FLVPlaybackAS3.swc > video > FLVPlayback. HOWEVER... the method remains unavailable at compilation.

In case I'm missing anything, here are the relevant (albeit abbreviated) bits:

    import fl.video.*;

    public var flvPlayback:FLVPlayback;

    public function VideoSexy() {
        addEventListener(Event.ADDED_TO_STAGE, init);
    }

    private function init(e : Event = null) : void {
        removeEventListener(Event.ADDED_TO_STAGE, init);
        checkFlashVars()
        setControls();
        flvPlayback.registrationY = 0;
        flvPlayback.align = VideoAlign.TOP;
        flvPlayback.getVideoPlayer(flvPlayback.activeVideoPlayerIndex).smoothing = true;
        **flvPlayback.enterFullScreenDisplayState();**  
    }

Yes, flvPlayback is onstage in the IDE.

Both FP9 and FP10 throw a reference error.

:(

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

missing FLVPlayback.enterFullScreenDisplayState() ?