Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > Projectors and CDs

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-15-2010, 01:56 PM   #1
pfwork
Registered User
 
Join Date: Feb 2010
Posts: 1
Default [AS3] create a projector that will open my movie full screen and use it on a touch sc

Hi,
I am a Flash newbie and I'm trying to create a simple application similar to a video dvd. I know there's an "export to flash" function in Encore dvd but it's limited and I would like to do it by myself and create a projector that will open my movie full screen and use it on a touch screen.

I am doing like this:

Frame 1: - labeled "menu"

I have two buttons on the stage and this actionscript code:

ActionScript Code:
fscommand("fullscreen", "true"); stop(); btn_1.addEventListener (MouseEvent.CLICK, function () { gotoAndStop ("Movie1");}) btn_2.addEventListener (MouseEvent.CLICK, function () { gotoAndStop ("Movie2");})


Frame 2 - labeled "Movie1"

I have an empty movieclip on the stage, and a button (menu_btn) to go back to the main menu

My actionscript code is:

ActionScript Code:
/* VIDEO LOADER */ import fl.video.*; var myVideo:FLVPlayback = new FLVPlayback(); myVideo.source = "video.flv"; myVideo.addEventListener(VideoEvent.COMPLETE, completePlay); function completePlay(e:VideoEvent):void { movie1_mc.removeChild(myVideo); gotoAndStop("menu"); trace ("end movie"); } /* MENU LOADER */ menu_btn.addEventListener (MouseEvent.CLICK, function () { gotoAndStop ("menu");}) movie1_mc.addChild(myVideo);

The swf movie works fine in Flash but when I export it to a projector I get two main issues:

- The FLV movie playback is full screen and it hides the "menu_bnt"
- the action "gotoAndStop" called by the function completePlay doesn't work

How can I solve the problem? Sorry but I'm very new to flash and I'm trying to learn.

Thank you!
pfwork is offline   Reply With Quote
Old 02-15-2010, 02:29 PM   #2
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,679
Send a message via Skype™ to henke37
Default

The component defaults to using hardware acceleration to only show itself when in fullscreen. Tell it not to.
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is online now   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:11 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.