Full screen in AS3 - Air

Hi I am trying the GET my andoid app displayed full screen. But it does not work.

My internship is 480 x 800

And this is the code that I tried to use:

package

{

import flash.display.MovieClip;

import com.greensock;

com.greensock.easing import. *;

import flash.events.MouseEvent;

import flash.system.Capabilities;

import flash.display.StageDisplayState;

import flash.display.StageScaleMode;

import flash.display.StageAlign;

public class mainclass extends MovieClip

{

private var holder: holder_mc = new holder_mc;

private var btn:BTN = new BTN;

private var side1:side_mc = new side_mc;

private var side2:side_mc = new side_mc;

public void mainclass()

{

Super();

stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

stage.showDefaultContextMenu = false;

stage.scaleMode = StageScaleMode.NO_SCALE;

internship. Align = StageAlign.TOP_LEFT;

Holder.Width = Capabilities.screenResolutionX;

Holder.Height = Capabilities.screenResolutionY;

addChild (holder);

trace (Holder.Width)

trace (stage.stageWidth)

BTN.x = 250;

BTN.y = 300;

holder.addChild (btn);

Side1.width = holder.width / 2;

Side1.height = holder.height;

Side1.x = - side1.width;

Side1.y = 0;

holder.addChild (side1);

Side2. Width = holder.width / 2;

Side2. Height = holder.height;

Side2.x = holder.width + side1.width;

Side2.y = 0;

holder.addChild (side2);

btn.addEventListener (MouseEvent.CLICK, closedoors);

}

private void closedoors(e:MouseEvent):void

{

btn.removeEventListener (MouseEvent.CLICK, closedoors);

TweenLite.to (side1,.8, {x: 0, ease:Bounce.easeOut});})

TweenLite.to (face 2,.8, {x: side2.width, ease:Bounce.easeOut});})

}

private void open (): void

{

TweenLite.to (side1,.8, {x:-side2.width, ease:Bounce.easeOut,delay:.3});})

TweenLite.to (face 2,.8, {x: stage.stageWidth, ease:Bounce.easeOut,delay:.3,onComplete:addList});})

}

private function addList (): void

{

btn.addEventListener (MouseEvent.CLICK, closedoors);

}

}

}

Any help is much appreciated.

THX pavel

You should check the allowFullScreenInteractiveProperty to see if the device of fullscreeninteractive.  If this is the case, go to fullscreeninteractive. If it is not the case, change your ScaleMode (ScaleMode):

public void mainclass()

{

Super();

stage.showDefaultContextMenu = false;

{if (allowFullScreenInteractiveProperty)}

stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

stage.scaleMode = StageScaleMode.NO_SCALE;

} else {}

stage.scaleMode = Stage.ScaleMode.SHOW_ALL

}

Tags: Adobe Animate

Similar Questions

  • Animate CC 2015 Air for iOS full screen problem

    Hello team Adobe,

    I made many applications for iOS and Android. And I am facing 1st time a problem only in the Air for iOS. Air for Android works perfectly well. What I'm dealing with that

    even after using this code:

    internship. Align = StageAlign.TOP_LEFT;

    stage.scaleMode = StageScaleMode.EXACT_FIT;

    I see black bands top & bottom of my application. Then I downloaded the new SDK is Air SDK 21.0 but same problem :/ Please tell me as soon as POSSIBLE, why is that happening?

    Thank you

    Saad

    Hi Saad Aftab,

    I tried with the attached draft you shared.

    If this problem could be solved if you add images to your project.

    Please try the application after giving the images of the launch of the publication. The application will launch in full-screen and there will be no black bands if you have already configured the 'true' parameter in app.xml.

    Please let me know if you face any problem.

    Thank you

    Adobe AIR Team

  • AS3 FLVplayback full screen, I got black screen just

    Hello, I have a problem on FLVPlayback, I use actionscript 3, AdobeFlash CS6, Flash Player 11

    in this case, I have two frames, namely:

    frame 1, I enter the code:

    Stop ();

    fscommand ("fullscreen", "true");

    toframe2.addEventListener (MouseEvent.CLICK, nextonee);

    function nextonee (event: MouseEvent): void {}

    Stop (2);

    }


    On frame 2 is FLVPlayback with a resolution of 1280 x 720, and I resize to 1050 x 590.60 because out of the scene.

    When I publish and I run the file SWF its result is in the success of the frame 1 and be in full screen mode, and when I click on the button to access the section 2, I had was a black screen.

    What's wrong? Please help, thanks

    This is the screenshot:

    1.png

    2.jpg

    delete in the world of your file.

    If you publish a projector file or air, you need to use:

    stage.displayStage = 'fullScreen'.

    If you publish anything else, specify.

  • The use of the Flash CC 2014 - 17 AIR - cannot get IOS app to display full-screen on IOS 8.2

    I tried deployment using AIR 16 and 17.  Last year, I've built an IOS for iPhone and iPad and did not have this problem.  I tried to portray, app full screen, but not matter what I try in the framework it does not work.  Seems to work very well for my android phone. I also tried to simply deploy an image to ensure there is no conflict with any code that I wrote and still get the same problem.  What I'm missing here?  Any help would be greatly appreciated... Thank you!!

    Thanks for your tardy response.

    The project that I am working on is for an iPhone.  But I found the solution to my problem.  Basically, if you have not the launch for the retina ([email protected]) ios image think that the app does not support the new dimensions.

  • Calendar resumes always full screen with black bars at the top and bottom

    Calendar always starts like that. I can reduce and enlarge the window, and the problem disappears when the application is open. But once I leave the app and re - open, I have the black bars and minimize/maximize again to get the calendar view full-screen. Seems to happen on the screen of my Air and when you are connected to an external monitor.

    Thanks in advance

    Hello

    I have the same problem.  I had this bug with 10.11.x for awhile and then he suddenly stopped.

    I don't really know how...  Maybe it was a cleaning with Onyx, but I'm not sure.

    Since the upgrade of 10.11.4 today the bug came back.  I ran Onyx on the system without a bit of luck so far.

    @xryancx: do you have that you have installed a beta version of Mac OS X?  It was my case (El Capitan GM) but I did upgrade to the official, as soon has - it is available on the Mac App Store.

    Some people think that I've noticed is that the bug does not affect view DAILY.

    Step to reproduce:

    1. Calendar launch (you'll get the bug full screen)
    2. Exit full screen
    3. Click on daily view
    4. Return to full screen mode
    5. Calendar of quit smoking
    6. Calendar lunch again (there is no bug with day mode)
  • Shortcut to maximize to full screen?

    Is there a way in which we could open programs using the full screen without having to find the "little green toggle?    It's wonderful to have a shortcut to "minimize", but unfortunately the reverse seems to be impossible to get.

    I use El Capitan 10.11.1 on a MacBook Air - end of 2010 and have recently switched from Windows and I am struggling to adapt.  I can't find software third in the App Store that seems to be good.  Is it possible to assign a "shortcut"?

    Control F goes into full screen mode (at least with many programs).

  • IPAs run full screen on an iphone6 +.

    Tried everything but so far without success. Get the black borders on the sides. Tried all the @x 2, @x 3 stuff I guess. Change the settings of launchScreen, added depentent of files, no luck. Otherwise, everything is correct, functioning on the iphone 6 +.

    For applications to be full screen you must include the right splash screens. This article, while aiming at AIR apps, should help to understand which ones you need:

    http://blogs.Adobe.com/airodynamics/2015/03/09/launch-images-on-iOS-with-Adobe-Air/

  • App starts in mode full screen after Android restarting

    Hello guys,.

    I'm developing and Android application using version 4.6 the kit Flex SDK and AIR 4.0 SDK. Tasks that concern me begins after the operating system starts and being an application full screen.

    The application has the following manifest parameters (among others):


    landscape of < aspectRatio > < / aspectRatio >
    < autoOrients > true < / autoOrients >
    true < fullscreen > < / full screen >


    and:


    < application android: enabled = "true" >
    < activity android: excludeFromRecents = "true" >
    < intent-filter >
    < android:name = "android.intent.action.MAIN action" / > "
    < android:name = "android.intent.category.DEFAULT category" / > "
    < android:name = "android.intent.category.LAUNCHER category" / > "
    < android:name = "android.intent.category.HOME class" / > "
    < / filter-intention >
    < / activity >
    < / application >


    So as you can see, the configuration is intended to launch the application as the application from HOME, using landscape as soon as the appliance starts.

    The application actually does everything it's supposed to, but when the unit starts, the application start mode full screen because you can see the notification/status bar. Then you can see the problem.


    STARTUP PROBLEM.png

    What I have to do is to improve the application to start in full screen when starting the unit. Now, the only way to start full screen mode is to restart the application after that the device upward initialization completed.


    I should add that I've also compiled the application using the AIR 14 SDK, but the problem was still there. Status bar sometimes appears and sometimes it doesn't. I thought he had something to with the WIFI network connection, but it doesn't, because on the two cases, as soon as the query if it has immediate network connection or if it is not, the status bar will be appear sometimes and sometimes not appear.

    I hope you can help me solve this annoying problem.


    Someone on the forum APACHE FLEX (link to discussion) advised to remove the tag in the manifest of and manage this problem inside my code. The result is the following:

    Manifesto

                            fake

    RootApp.mxml

    /**

    Forces of demand to be full screen mode when it is added to the scene.

    */

    protected function addedToStageHandler(event:Event):void

    {

    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

    }

    This solves the problem. Unfortunately the start screen isn't mode full screen so there is a very sudden change when the application sets fullscreen. Even if this isn't the most elegant solution and not what I wanted to use (solves the problem of the tag please), I stick to it for now.

  • Movies full screen on Android device

    Y at - it an explanation why my movies on android tablet will not play in full screen?

    I have a nexus Google Tablet 7 with a resolution of 1920 x 1200. I do my 850px films to reduce the size of the folio.

    the problem is that the movies hold on my android device as they do on my ipad...

    Maybe this problem is only with the nexus, anyone having the same problem?

    THX

    This is an expected behavior in the viewer Android AIR based

    -4.3 and 4.4 - Android video is not intensify.

    -Pre Android 4.3 - video is moving upward.

    The problem should be solved in the new Android native Viewer. Here are instructions on how to create native Android viewer http://helpx.adobe.com/digital-publishing-suite/help/building-android-apps.html

  • SWF to see full screen all the monitor size

    Hello

    in flash actionscript3.0, discovers the swf fullscreen than any monitor. How to set the dimetions watching all of them
    (monitor 16: 21 to watch... ect) View fullscreen excat.

    thnks

    assign the stage.displayState = "fullScreen" will trigger full screen if the embed code active allowfullscreen and the code to run in response to a click or is in an air application.

  • Order full screen doesn't work when a swf file is read on another frame.

    I have a .exe file that has about 90 frames. All executives work very well with the command "full screen", BUT when I click on a button to access a framework which calls a swf file to a specific position on the stage and a specific size to full screen, the swf goes to the size of the regular phase. AND when I get out of this framework, it is not back to expand full screen Command.

    Flash CS AS3 WIN 7 64-bit 5.5.

    I have other frames that play a (movie) swf file to a certain size and position, and they work fine. But is not a swf file. I created all the files except the swf file. I received from someone about 7 years if there is what makes the difference.

    Any ideas?

    If you have configured your main as document:

    import flash.display.StageDisplayState;

    import flash.display.StageScaleMode;

    import flash.display.StageAlign;

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    stage.displayState = StageDisplayState.FULL_SCREEN;

    My first assumption would be, because you said it's been 7 years, this person is using ActionScript 2.0. If you load an AS2.0 doc in a doc AS3.0 who will have limited functionality.

    Try to replace the 7 year old SWF you load quickly with a mannequin made AS3.0 placeholder and see if the problem goes away. Chances are it.

  • YouTube Chromeless player ceases to magnify up to width full-screen mode full screen

    Hi all!

    I tested my skin for chromeless YouTube Player and seems that it functioned normally.

    All the graphic elements, including the TLFTextFields, are stored in the external SWF, all code AS3 - loading SWF.

    I use a ProLoader class to load the SWF.

    However, when I tried to join skin Player code my code of the Home Page, I immediately fell on two issues:

    1 TLFTextFields ceased to display the fonts appropriate;

    2 YouTube Chromeless player has continued to expand up to width full-screen mode full screen, so all the parameters of publication have kept the same...

    AS3. FullScreen issues. True Mode.jpg

    AS3. FullScreen issues. Paddings.jpg

    Although I managed to deal with the TLFTextField bug by replacing the instances with vars in loaded SWF, I don't have any idea what to do with these pads in mode full screen... Or removal of all the children on stage before loading YouTube Player skin, nor the size of the rearmament required player can't make it work...

    Any help is appreciated!

    I don't know what you mean but the following:

    "The area is limited by main SWF proportions.

    This means that if I create my main SWF with a 4:3 aspect ratio, I am able to properly see my content in mode full screen on a 4:3 monitor, but not on that of 16:9 and vice versa. »

    Is not true in general. You can always resize your objects you want including situations when you switch to the mode full screen. It may be true for YT player however since you say that it is resized in native mode - nothing, most likely, a problem with the way which manage you objects in mode full screen. Difficult to say without seeing the code.

  • change of 2 or more video full screen

    Hello

    I use the FLVPlayback component to display video in mode full-screen.

    Try this:

    1. Add 2 FLVPlayback components on stage (new file).

    2. make sure that you are using two different *.flv files (video.source = "").

    3. change the video skin to one that has a button full screen and publish for Flash Player version 9.

    4 publish html with the option full screen set to true in the html page.

    What you'll find is that buttons display the same video!

    I'm doing something wrong or is this a bug of flash? Please let me know if this topic has been discussed before. I can't find a solution online. I even tried this using AS3.0 with the same result. Help, please.

    Thank you

    Use your flv pbs fullScreenTakeOver properties.

  • New Flash fullscreen msg ' keyboarding is disabled mode full screen?

    I was watching https://www.Photoshop.com/Tools/RIA?WF=organize and go to mode full-screen displays two messages... "Press ESC to exit full screen" and "keyboarding is disabled mode full screen '

    How to do the "keyboarding is disabled mode full screen" appear?

    Thank you

    -SR

    What is your level of expertise of the AS3? It's a very basic thing. For example:

    var textField:TextField = new TextField();
    textField.multiline = textField.wordWrap = false;
    textField.text = "Keyboard entry is disabled in full screen mode";
    
    var message:Sprite = new Sprite();
    message.graphics.beginFill(0x000000, 0.2);
    message.graphics.drawRoundRect(0, 0, textField.width + 10, textField.height + 10, 5);
    
    textField.x = (message.width - textField.width ) * .5;
    textField.y = (message.height - textField.height ) * .5;
    
    message.addChild(textField);
    addChild(message);
    
  • Two s flv on the swf page, button full screen on every fact the same full-screen go video

    OK, so I use CS3 to try to put two videos on the same page of .swf .flv, BUT only go full screen any button of the video for skin to go full screen I press, and all the rest of the buttons on the skin works for the appropriate video. I remember in Actionscript 2.0, in component for video settings, you can change the name of the field in the schema to play multiple videos in a .swf file, wondering if AS3 had a similar setting to the full screen.

    You are welcome.

    p.s. Please mark this thread as answered, if you can.

Maybe you are looking for