Home > Default > Presentatsion with videos, can't get it working on fullscreen.

Presentatsion with videos, can't get it working on fullscreen.

October 11Hits:0
Advertisement
Hi
Happy new year guys:)
I made a flash presentatsion and because i'm using FlashEff components it has to be in as3. I'm a total newbie in coding, particularly in as3. I have made my presentatsion in as3 before and got everything working fine. This time my presentation contains videos. And this becomes a problem when going on fullscreen mode. My project size is 1024x768, I made a html and use a brauser to open it. I wan't my project to go fullscreen so that there aren't borders.
If the stage goes fullscreen i don't want my movies to go fullscreen. When playing a video on fullscreen mode everything just goes black. Soo finally i figured out that i have to tell the videos not to scale.
My project is set up as follows:
1. MAIN TIMELINE
On the first layer i have all the frames converted to movieclips and inside each movieclip is the content.
On the as layers first frame i have this code. This is for navicating on the presentatsion slides with arrow keys.
stage.addEventListener(KeyboardEvent.KEY_UP, goNextFrame);
function goNextFrame(event:KeyboardEvent):void
if (event.keyCode == Keyboard.UP)
this.nextFrame();
stage.addEventListener(KeyboardEvent.KEY_DOWN, goPrevFrame);
function goPrevFrame(event:KeyboardEvent):void
if (event.keyCode == Keyboard.DOWN)
this.prevFrame();
2. INSIDE THE MOVIECLIP
On each slide there is some content that is called with a mouse click.
//On the fist frame
bg_mc2.addEventListener(MouseEvent.CLICK, playSlide);
bg_mc2.buttonMode = true;
function playSlide(event:Event):void
play();
//On the last frame
stop();
bg_mc2.mouseEnabled = false;
I have tried so many fullscreenmode - don't scale the video codes.
I have tried so many ways but every time i play a video i get the typeerror 1009 Can't access a property of method.
What does this mean?
Is there a

Answers

Hi
Happy new year guys
I managed to get the flvs on fullscreen and running. This code prevents it from taking over the screen: myPlayer.fullScreenTakeOver = false;. But when i try to move this code(keyframe) along with the flv(keyframe) farther, the code doesn't work anymore. Why is that? This is really a problem, beacause i have some animation before the video starts to play.
For going fullscreen i found this toggle on/off button code
function toggleFullScreen(event:MouseEvent):void
if (this.stage.displayState == StageDisplayState.FULL_SCREEN)
this.stage.displayState=StageDisplayState.NORMAL;
else
this.stage.displayState=StageDisplayState.FULL_SCREEN;
myButton.addEventListener(MouseEvent.CLICK, toggleFullScreen);
function onFullScreen(fullScreenEvent:FullScreenEvent):void
  var bFullScreen=fullScreenEvent.fullScreen;
  if (bFullScreen)
  else
  this.textField.text=this.stage.displayState;
myButton.stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullScreen);
But i get this error
TypeError: Error #1010: A term is undefined and has no properties.
    at PRESENTATSIOOn_fla::MainTimeline/onFullScreen()
    at flash.display::Stage/set displayState()
    at PRESENTATSIOOn_fla::MainTimeline/toggleFullScreen()

Read other 8 answers

Tags:

Related Articles

  • Presentatsion with videos, can't get it working on fullscreen.October 11

    Hi Happy new year guys:) I made a flash presentatsion and because i'm using FlashEff components it has to be in as3. I'm a total newbie in coding, particularly in as3. I have made my presentatsion in as3 before and got everything working fine. This t

  • Whenever i watch a video in youtube, if i switch into fullscreen, have to buffer it all over again. any video is like that. need helpNovember 30

    i watch a video in youtube innormal screen (small) ,but when i switch to full screen, it have to buffer it all over again. need helpThis is because when you switch to fullscreen, youtube switches to higher resolution and discards the low-resolution b

  • Apple TV freezes videos stream as soon as it goes fullscreen on youtube...November 30

    Hi, My Apple TV used to work fine until yesterday, it suddenly started to freeze the video stream on airplay mirroring using youtube and other streaming sites (both on tv and on my devices, I've used 2 different Iphones and an Ipad and it's all the s

  • MacBook Pro screen goes black when video is blown up on the second screenOctober 11

    I'm not sure if this is a problem but when I open up a video in fullscreen mode on my second display, the screen on my MacBook goes completely black and I cannot access anything on the my MacBook until I restore the video to windowed mode. Is there a

  • Firefox for Mac: accidentally disabled full screen Flash video for Yahoo. How to reenable??October 11

    I was looking at a video on screen.yahoo.com, and that annoying "Now entering full screen... allow/don't allow" (paraphrasing) dialog came up at the top. I must have inadvertently selected the option to disable, because now when I click the full

  • Inline (non full-screen) video in stageWebView for iPhone (iOS)???November 30

    According to this post (below), all we need in order to allow native inline video for the iPhone is a simple Obj-C property webview.allowsInlineMediaPlayback = YES; in conjunction with adding "allowsInlineMediaPlayback" to the html5 video tag. h

  • Vine videos auto-playing fullscreen in browserNovember 30

    Hi all-    Has anyone else had issues with embedded videos (such as Vine) opening up in fullscreen when visiting a website? There's a blog that I frequently visit (that has a mobile-responsive format) that occasionally posts Vine videos. When the pag

  • Faulty iTunes Video PlaybackNovember 30

    Dear All, I've unfortunately encountered a problem with iTunes video playback after installing iTunes 10 (and now iTunes 10.1) on my new Dell computer. The computer has hardware which should run iTunes with no problems (dedicated video card, 4 GB ram

  • Auto hide video controlsNovember 30

    have not use flash in years, so I am wondering if anybody can help me with a basic questions. I want to make a mock-up kiosk presentation. What would be the best adobe product to use for this, i was thinking towards in design as what i have most expe

  • Video size during full screen show up as half the sizeNovember 30

    I was watching a south park episode and wanted to close it. The option to get out of full screen wasn't working so I right clicked the screen which brought up a menu. Choices were Half screen through full screen and i clicked half screen. Now wheneve

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.750 s.