Animate the project CC IOS to sleep stop device

I have a project to animate CC for IOS using AS3.

The app works very well, but there is a video section that is long enough, so without intervention of the device falls asleep, and when the application is reselectionnee it starts from the beginning.

I can stop falling asleep in the equivalent version for Android, but the version of IOS is stubborn.

What I forgot to do?

That's what I have right now (see below). Are there certain permissions required when generating too much (like Android)?

Thank you

Paul

import flash.desktop.NativeApplication;

import flash.desktop.SystemIdleMode;

stage.addEventListener (Event.ACTIVATE, fl_Activate);

stage.addEventListener (Event.DEACTIVATE, fl_Deactivate);

function fl_Activate(event:Event=null):void {}

NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

}

function fl_Deactivate(event:Event):void {}

NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.NORMAL;

}

When the application opens first of all you have not set the listener to activate it, and therefore keep him awake will never happen. You should only do the keep awake when your application needs it, so together that when you play the video and disabled when the video ends or the user leaves the video at the beginning.

Use a variable to tell if the system is currently told to stay awake, then your function will remain the same, but the activation looks only to stay awake, if one needs it right now.

Tags: Adobe Animate

Similar Questions

  • I was working on a project for several hours, the next day I was back to square one... I'm really sure I saved the project before going to sleep

    I was working on a project for several hours, the next day I was back to square one... I'm really sure I saved the project before going to sleep. And says that he has changed before that I did all the big job on it. It's really frustrating... Altogether I worked on this project for about a week now. Is it possible to recover my progress in return?

    If the file is missing or has not been saved and you don't have auto-save and increment is enabled in the preferences then you are out of luck. I have auto save set for 10 minutes and 5 versions. I suggest you do something similar.

  • How can I get the function of hibernation in the menu with; Log, the user swith, sleep, stop.

    I used to have the function of hibernation on my laptop as pets when I could also log, user swith, sleep, stop.

    But the hard disk had to be changed, and now the hibernation has disappeared from the list, how can I get that back.

    I was told it could be done in the start menu or the customization options, but have not found anywhere.

    Hibernation turned out to be more useful.

    Try this tutorial: enable or disable Hibernation
    http://www.Vistax64.com/tutorials/165508-hibernation-enable-disable.html

    Also, please read two method on disk cleanup deletes Hinbernation option in the list.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Deployment error iTunes (ios Device): the project 'Oracle_ADFmc_Container_Template' does not contain a system called "Oracle_ADFmc_Container_Template".

    I'm trying to deploy my application on an iOS device. Can I deploy on the end Simulator.

    When I deploy, I get the following error:

    [18: 03:34] run command-line path: / Users/username/jdeveloper/mywork/appName/deploy/iOS1/temporary_xcode_project /.

    [18: 03:34] run command line: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild-guichet Oracle_ADFmc_Container_Template archive - archivePath /Users/username/jdeveloper/mywork/appName/deploy/iOS1/Destination_Root/appName.xcarchive CODE_SIGN_IDENTITY = "company name".

    [18: 03:41] orders for next generation failed:

    [18: 03:41] command-line execution failed (return code: 65)

    [18: 03:41] undeployment.

    [18: 03:41] - incomplete deployment.

    [18: 03:41] could not build the iOS application pack.

    [18: 03:41] deployment failed due to one or more errors returned by ' / Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild'.  What follows is a summary of the returned error:

    Command-line execution failed (return code: 65)

    Orders for next generation failed:

    Check dependencies

    (1 failure)

    If I run the same thing since the terminal I get this error:

    xcodebuild: error: the project 'Oracle_ADFmc_Container_Template' does not contain a system called "Oracle_ADFmc_Container_Template".

    Anyone know what is happening here? I am running MAF 2.01 and XCode 5.1

    It turns out that the error is a bit misleading. The name of the certificate is incorrect.

  • Animate edge guard CRASHES when I try to save the project!

    Dear Adobe,

    I'm working on an important enough to animate within edge interactive site.

    I now have a random - yet constantly growing problem. Whenever I try to save the project, it will break.

    It's ridiculously frustrating and greatly affect my productivity and workflow.

    Can someone from Adobe staff please help resolve this issue.

    My project:

    An interactive website created breast to animate dash for a customer.

    website of Chapter 8 which charge symbol (web page) it draws from a container on the stage parent.

    I have a large number of symbols (or what I think is a lot)

    Problem:

    Continues to plant!

    Angry / sad face mixed to throw, furniture and coffee (not really) cups.

    Tried action:

    I tried to uninstall completely Adobe Edge Animte CC 2014 and reinstall it (preferences were removed when uninstalling) - problem remains intact.

    My system features:

    Mac Pro, 2013

    3 GHz 8-Core Intel Xeon E5

    32 gb Memory

    OS X 10.9.4

    Help, please.

    See you soon,.

    Jason

    Hi Preran,

    Thank you that would be greatly appreciated - I just sent you a PM.

    See you soon,.

    Jason

  • A way to stop jumping to the order of the day in the tree view of the project?

    This has been driving me crazy for centuries, but I fed up and there must be a way to stop it!

    After you have renamed something in the project window and you press ENTER, it immediately jumps to the order of the day and prepares to rename it too. This means that you must press ESC each time out, otherwise some shortcuts keyboard, you start by pressing the next change the name of the order of the day.

    There must be a way to disable this annoying behavior? I have never ever need to jump to the agenda and rename it, then why is it there?

    * frustration *.

    Thank you

    S

    I don't know preference to disable the current behavior. If the second column in the project Panel cannot become an active control, they you can use Tab to enable the change, emphasizing the element of project you just edited and fortunately, proceed with the help of your shortcuts.

  • Click on the boxes stopped working on the project Cap 3

    Preview and in the published file, my click boxes no longer work. Used to, but stopped and I'm pulling my hair out trying to make them work again. What happens is I click on them, and action that is supposed to happen does not work. This is true regardless of browser (and, as I have noted, they do not work in the preview either).

    I have only four who are on the last slide of my project. Two of them are 'Replay' (supposed to go to slide 1) and 'Close' (allows to drag continue at the end of the project where I project designated to close). The other two are the boxes that are set on "send to."

    So far, I've recreated them, I created in another project where they work and imported, and I deleted the slide and recreated the slide from scratch.

    There seems to be something with the project that makes any box click does not work.

    Someone at - it experience with this?

    I discovered the source of the problem. I was using a custom preloader. If I use a standard, the problem goes away.

  • windows program will rearange themselves when the monitors are in mode 'sleep' - how to stop windows switching screens

    IV has 3 screens on a map via display port adapter and a 4th on a second card in order to have a 1 on top of three parameters.

    the computer itself does not sleep because I have servers running but I put screens on standby after 10 minutes.

    for a long time, all screens would go to sleep and wake up without any problems... in the course of the last months, 2 questions.

    1. once the monitors to sleep and no consistent time 1 monitor wakes up enough to show the backlight, but no display... wake up ok and sometimes screens dislocated.

    and

    2 when the monitors have the power save / standby mode, some of the Windows I had open will have been moved to different monitor as monitors have been disconnected or "detected" numbers have changed and I saw the change number several times as well, but not always.

    I say some because I have 4 windows open on my left most monitor and 2 of them end up on my right monitor after the glitch.

    Sometimes things on my low Center {main} will end up on the top of the single monitor page.

    no rhyme or reason... a few days no problem at all don't wake up and everything is where it should be and all the screens have slept through the night

    for all the tech info

    ATI 5750 and 5770 in mode xfire w / 1displayport/DVI / HDMI/DVI 1 / 1 DVI.

    and ATI 5450 to the top of the monitor page

    Windows 7 x 64 / 8 core AMD8320 / 16 gig mem.

    latest video drivers...

    any info?

    I'm a tech and iv been scratching my head for a while on this one

    thnx in advance for reading even to see my problem

    thnx even more for an answer... lol

    Hello

    Welcome to the Microsoft Community Forum.

    The question you posted would be better suited to the TechNet community.

    Please visit the link below to find a community that will support what ask you:

    Microsoft TechNet

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

    Thank you

  • Integration of HTML or widgets in the project animate Adobe Edge

    Hello

    I just discovered Edge and I think it's amazing, that finally the 'new' web standards are put in the hands of designers again!

    My question is what I designed an online application based on the web using the amazing features at the edge, what I have to do now is for example to add a weather widget or a news feed, how to do that works on the edge, I read about the use of iframes to embed the video, but this approach does not work for me , I would like to use this software for all our web based projects, but I need to know if its possible to integrate html

    If anyone out there can point me to some documents or an example of how it's done, I would be so grateful! seriously love this software!

    Thanks in advance!


    Have you tried the jquery load() method?

    See here for reference . load() | jQuery API Documentation

    Basic example would be

    1. create a div element box and say call it widgetContainer in the assets Panel.
    2. with this item, go to the properties panel and set the Automatic Overflow property;
    3. Save the project as it is in a folder on your drive, and then copy widget files in a subfolder under the main folder of the project.
    4. then somewhere during your project, ala a handler (click, mouseover, etc) use the method load() to draw in the widget (.html) file directly in widgetContainer element;

    Example:

    I put this in the compositionReady event handler.

     sym.$("widgetContainer").load('html/sample.html');
    

    Copy the end Code.

    Hope this helps

    Darrell

  • Chess game, how to stop the project to continue

    If the user fails the test that I don't want them to be able to do b/c for those who have passed, I have created a certificate. I have my settings of the quiz in the success or failure "If the passage of rank"-go to the next slide. "If the quality defect:-send email to... on the drop down menu continue it play the project is not checked." But when I tested it out, he continues to play the project when the user fails. Should I set the Action if I fail the Action No.? Other solutions?

    ashorsley,

    One thing you can do is set such as if the user fails the test, then he jumps to a slide that you created.  The blade can simply say "Thank you" or 'Sorry, you do not pass' and include additional instructions the learner might need.  Say what you want.  Whatever it is, then set your project options to close the program.  So, it looks like this:

    For example:

    Slide 26: last question slide in the quiz properties: at the exit of the slide: go to the next slide

    Slide 27: Results of the quiz slide properties: at the exit of the slide: go to the next slide

    Slide 28: ' congratulations, you passed. "          Properties: At the exit of the slide: go to slide 30

    Slide 29: 'sorry, you do not pass."               Properties: At the exit of the slide: go to slide 30

    Slide 30: thank you very much.                                   Properties: At the exit of the slide: no action

    In preferences/Quiz/publish/success or failure, set the following parameters:

    If the passage of rank: go to the slide 28

    If lack of rank: go to the slide 29

    Publish/preferences/project/start and end, set the following parameters:

    Project end options: Action: close project

    Who should do if I understand your problem.  It worked for me.

    WARNING: In settings/preferences/publication/Quiz if you set must pass required - the user must pass this questionnaire to continue, then this solution will not work.  Assign the necessary - the user must take this questionnaire to continue, then it should work fine.

    Good luck.  Let us know how it works.  Any other questions, feel free to ask.

    Take care

    Jorge G.

  • Slow down the iPad 2 iOS 9

    I have an iPad 2 which is running iOS 9.1. Since I upgraded, it became very slow and sometimes hangs for a few minutes. Does anyone have suggestions on how to improve performance on iPad?

    A disclaimer clause.

    I make no warranty, express or implied, that my own procedures return EACH older iPad to a usable state, running.

    Try all of the following conditions:

    Try to reset all the settings in the settings under general app and in the right column under restore.

    Try stories reset and delete/reset the caches in all web browsers you use.

    If you use Safari, these features may be in the application settings under Safari.

    Other browsers have their settings inside the running application itself.

    If your iPad has been activated for iCloud, in the application settings under iCloud, to the right, under iCloud Drive, type in iCloud drive and make sure that Safari is off to save data from Safari to iCloud by car.

    Also, under iCloud in the application settings, in iCloud Drive, turn the feature off saving for all other desired apps DO NOT the data automatically on iCloud drive.

    OR turn off / disable iCloud and iCloud drive entirely if you don't use all the features in iCloud.

    If you are using Safari is always causing issues.

    Try changing / using web browser third another, different.

    I do not use iOS Safari too much more because I found it cause me headaches on some Web sites, regularly, to visit.

    I commonly use another third party browser, perfect browser (there are others that can suit your style better web browsing, so look all first to see what third-party browser may work better for you) and I have never experience many questions that Safari was originally.

    In the settings app, under the Safari settings panel, tap the Panel and in the right window, turn off / disable Safari Suggestions.

    In the application settings, under the General settings panel, click the Panel, in the right column, type Spotlight, then turn off/disable Siri Suggestions.

    In the application settings tab general, right under the Spotlight search, try to disable the search under the applications who really don't need one research, like some games, remote controls, apps that are really useless to be searched, etc., in order to reduce the list to Spotlight search.

    In the application settings under the general tab, in the right column, search background App update and enable this setting to "off".

    Try to turn the reduced movement.

    This is found in the application of settings in the general tab, in the left panel.

    In the right panel, look under accessibility, look to reduce the Motion and turn this feature "On".

    You should see a significant performance increase on all models of iPad 2, 3 and 4.

    Make sure that you don't have a lot of applications running in the background in the iOS App Switcher.

    DBL click on the Home button to check for this.

    If you have many applications still active, press on and hold a finger on one of the applications, and slide your finger upwards to exit the application.

    If you can reach another application with another finger, you can leave at the same time more than one app.

    If you have the Mail application iOS set to extract automatically to mail one of the extraction of the default value of time intervals, in the application settings, under mail, Contacts, calendar settings panel, tap this Panel, in the right window, turn off / disable Push Mail and together, go get the mail for each hour or together for a manual removal only for all of your e-mail accounts.

    If you are willing to do (I, personally, would not recommend this), some users have reported that turn off find my phone/iPad, in the settings app in iCloud, has improved the performance of iOS, although I have no how this feature could be the cause of such a slowdown in execution, unless it's a bug in the iOS which only affects some iPad users.

    Try an another hard reset of your iPad by simultaneously pressing buttons Home and sleep/wake button until your iPad goes to the dark and restarts with the Apple logo, then release the buttons.

    Good luck!

  • Can not find the search engine on the iPad with iOS 9.2.1 3

    I upgraded my iPad more aged 3 to iOS 9.2.1 when I got my iPhone 6. Everything seems to work, except works more slowly and 'suspended' during the loading of applications. But I see now, there is no search icon as the first screen before the point of home at the bottom of the display screen. When I try to move from the middle of the screen, nothing happens, other than the bounce of the screen. I checked the manual to see if I was missing something: it says to do what I do. Advice?

    This form is not available for older models of iPad.

    Here are some suggested steps that I use to improve the performance of the older models of iPad iOS 9 ongoing.

    A disclaimer clause.

    I make no warranty, express or implied, that my own procedures return EACH older iPad to a usable state, running.

    Try all of the following conditions:

    Try to reset all the settings in the settings under general app and in the right column under restore.

    Try stories reset and delete/reset the caches in all web browsers you use.

    If you use Safari, these features may be in the application settings under Safari.

    Other browsers have their settings inside the running application itself.

    If your iPad has been activated for iCloud, in the application settings under iCloud, to the right, under iCloud Drive, type in iCloud drive and make sure that Safari is off to save data from Safari to iCloud by car.

    Also, under iCloud in the application settings, in iCloud Drive, turn the feature off saving for all other desired apps DO NOT the data automatically on iCloud drive.

    If you are using Safari is always causing issues.

    Try changing / using web browser third another, different.

    I do not use iOS Safari too much more because I found it cause me headaches on some Web sites, regularly, to visit.

    I commonly use another third party browser, perfect browser (there are others that can suit your style better web browsing, so look all first to see what third-party browser may work better for you) and I have never experience many questions that Safari was originally.

    In the settings app, under the Safari settings panel, tap the Panel, in the right window, turn off / disable Safari Suggestions.

    In the application settings tab general, right under the spotlight sesrch, try disable the search under the applications who really don't need a research, as some games, remote controls, apps that are really useless to be searched, etc., in order to reduce the list to Spotlight search.

    Try to turn the reduced movement.

    This is found in the application of settings in the general tab, in the left panel.

    In the right panel, look under accessibility, look to reduce the Motion and turn this feature "On".

    You should see a significant performance increase on all models of iPad 2, 3 and 4.

    In the application settings under the general tab, in the right column, search background App update and enable this setting to "off".

    If you are willing to do (I, personally, would not recommend this), some users have reported that turn off find my phone/iPad, in the settings app in iCloud, has improved the performance of iOS, although I have no how this feature could be the cause of such a slowdown in execution, unless it's a bug in the iOS which only affects some iPad users.

    Try an another hard reset of your iPad by simultaneously pressing buttons Home and sleep/wake button until your iPad goes to the dark and restarts with the Apple logo, then release the buttons.

    Good luck!

  • Where is the support for IOS security vulnerability policy

    I am considering an iPad 2 Air for myself.

    I have many android (phones and tablets) devices that are vulnerable to the frame and the combination of Samsung or LG and carriers will not roll the provided Google of patches on their devices.  Not a single device of mine will be patched.  I will not stop to buy more devices stuck in that model of support for fix hardware manufacturer and the accepting carrier of patch.

    This only leaves Google Nexus range of products and Apple's IOS devices for review as far as I know.  Apple products are a bit expensive for me, but I may have no choice.

    I tried, but I couldn't find a documented statement of political support from Apple.  Yes, I know that they still support the iPhone 4S with IOS 9.1, but I want to see the current policy of public support.  Someone at - it links, I've yet to find?  How long is their guarantee to security patches?  I don't have the latest clever features, I want to known vulnerabilities and not-publicly-known patched.  Apple said the timeline for security patches?

    Thank you.

    To the best of my knowledge Apple never gave a lifetime for devices or for them to receive iOS updates.

    I can tell you that my iPad 2, which is a little more than 4 years, can be iOS9 and updates that come with it.

    Beyond history, there is no guarantee for a period of support.

  • or HOW the signal to timer front door stop in while loop?

    Good afternoon

    Could someone please help. I have a project that is very basic. It performs replication of the mastermind game in labview2009 VI. I have managed to do work, but as soon as all the conditions are true my last or door sends the signal for the moment stop button loop.

    In other words, there is no time for my 'congratulations chain' to show before the game resets. What I have to do is to put a timer between the final or gate and my stop button, but all the methods I've tried don't seem to work as the data types do not match.

    Please please please a little help

    Alex


  • deploy the project with Ethercat

    Hi all!

    I need help. I created a project that consists of two parts. The host to run on a Standard PC (HMI display...), that the second part is working on a controller PXI (RT) linked to an Ethercat 9144. I have my project debugging and everything works perfectly, I am able to read variable Ethercat of host, send data to the RT using shared variables...

    To complete my project, I wanted to create an exe for the RT. This is the beginning of my problems. I built the executable, set it as start and deploy the exe to the target. After rebotting target, I started the application on the host... Now, it is impossible to read Ethercat variables and variable shared. If I try to set up the shared variable or the Ethercat for the project, it stops the executable that runs on the target...

    I have not found any documents that describe how to deploy variable Ethercat in an executable... Does anyone have an idea about this problem? any suggestion is welcome...

    When running a windows project, libraries RT SV are usually defined to deploy automatically when the application of the RT is deployed.  Also you can manually deploy libraries SV yourself project.

    Once a SV belonging is deployed on an RT target that it will stay there until eliminated.  You can verify your deployment with Distributed System Manager (DSM) If you see it then you're good.

    Your RT exe cannot deploy its own libraries, they should be deployed in advance.  In addition, you should be able to use the DSM to see the IOV engine on the 9144 chassis analysis even if your RT application is not running.  Check this first.  Also check the on your target RT .alias file to make sure it has the appropriate IP addresses to resolve any URL NSV.

Maybe you are looking for

  • AirPlay only list bluetooth headset after the connection

    Hi all I wanted to see if it's just me or other people see this. I use iPhone 5 that I've recently updated to iOS10. In my daily use, I connect headphones bluetooth (4.0), MPOW Swift is the brand, to listen to music or watch YouTube videos. With iOS

  • HP Envy 700-406: installation of a GPU...

    I just got a new GPU for my desire and while it fits, for the life of me I can't find the place to plug in so it gets power. I looked at the specs of the motherboard and also real life nothing will do. I'm practically ripping my hair out in frustrati

  • OS x can not be installed on your computer

    I downloaded the OSX El Capitan update for my Macbook Pro (5.3) Started the installation, install the system has restarted in osx mode, I had to choose a drive and installation. After several minutes, I got this error (translated from Dutch, so it ma

  • SQL Server, get the event ID 10016 hourly

    Hi guys,. We get the error message below on our SQL with OS WS2012 server every hour. "The application-specific permission settings do not grant permission to local Activation for the application server COM with the CLSID. {FDC3723D-1588-4BA3-92D4-42

  • Error Code Confusion

    I received a guest today that 7 updates are available - when I clicked update--the system came back with 646 - Windows update error cod encountered an unknown error - with NO instructions on what to do - I am confused.