Actionscript 3 :: AIR App Inactive = Lower Framerate?
Mar 10, 2012
I'm developing an AIR app that is receiving TUIO events from a Framework for a fiducial marker based multitouch table. Until yesterday I was faking the events by mouse to work faster, but then I connected everything to a TUIO simulator and the problems appeared.
The TUIO Simulator is a java app. By dragging markers on the simulator you can send OSC messages that I'm forwarding to my AIR app. The problem is that I'm noticing that when I drag something on the simulator, my AIR app lose the focus, and the AIR framerate suddendly drops. If I drag something on my simulator and I switch super fast to the AIR window, everything goes smooth, so it seems the problem is that if my AIR app is not the active app it's redrawn at a lower framerate (I remember reading something about this, not sure).
So my questions are: am I right about the fact that inactive windows in AIR are redrawn at lower framerate? do you have any workaround to fix it and to allow me to interactive with the java app without my AIR framerate drops?
View 1 Replies
Similar Posts:
Feb 26, 2004
How do i change the framerate of a movieclip without changing the framerate of the main movie?
View 2 Replies
Feb 26, 2004
How do i change the framerate of a movieclip without changing the framerate of the main movie?
View 2 Replies
Dec 22, 2006
I have used the script below to load the mp3 file, but I couldn't do what I used to when I imported the mp3file to stage and I did it there. Is there a way to place fadeout at the end of the music and make the sound lower and lower, is there a way to apply something like that via Action Script?
mySound=new Sound();
mySound.loadSound("sommeu.mp3",true);
mySound.start(0,0);
View 2 Replies
Mar 31, 2011
The problem: I have a .swf file embed on a website. When i'm on the site the flash file works fine looping continously. BUT when i switch tabs for a couple of minutes or then return to the website, the .swf file lags for around 15 to 25 seconds before it starts playing the movie again.
View 3 Replies
Feb 8, 2012
I have a problem with the script below:On stage are two movieclips for triggering the tween of a third movieclip.There is also a dynamic text saying "text [1] of [5]"The problem is that if I trigger the tween while its already tweening, it will keep changing the count of actualText but not tween corresponding.-Is it possible to deactivate the triggering mcs -Is it possible to make the count of actualText when the tween is done.
//vars
var totalTexts = 5;
var actualText = 1;
var boxStart = 25;
[code]....
View 1 Replies
Jan 26, 2007
In my project I have a dynamic text box. You enter you name in the text box and then click the submit button. This then takes your name and puts in on another slide. The only problem is that you can skip this by entering nothing in the text box, then the other dynamic text box calls you "undefined". I was just wondering if there was a way to make the button inactive until the text box has some text in it. I have tried if statements but nothing seems to work.
View 1 Replies
Aug 19, 2007
how Pandora detects when your computer has been inactive for a certain period of time, without even being an active window. I can have it running the background for hours but the moment I walk away from my computer for a half an hour, the music stops.
View 2 Replies
May 28, 2009
I should have saw this coming, there are few mcs and everyone of them has a mask_mc inside, - so that when you click on one of them - animation appears and others mcs become inactive. And so, - they dont. Of course one of them does - the one at the top.
View 2 Replies
Sep 30, 2009
I am loading external swf files into my main file to move between different contents.It all works fine with most of the files except with some.The files that work fine have pictures in different frames in the timeline and the navigation buttons within this swf move between this frames to display a very simple slideshow.The files that don't work, I only made one frame, I've made sure it stops there and then I'm only changing the visibility property of the images to view the different pictures.
This files load fine the first time but if I come out of them and come back, they don't seem to load properly the second time.I have tried making sure that the mc_container in the main movie is unloaded each time before loading a new one into it, but that didn't seem to make any difference.the files that don't work are:
Producing / Carnesky's Ghost train
Solo / Film
Solo / Rupture
Artist Collaborations / The Giant Accordion
View 5 Replies
Feb 24, 2011
Is there anything else besides high cpu usage that would cause the framerate of a swf to lag?I'm working on a game that is set to 60fps so the animations are super smooth, and I am on good, fast computer so even with tons of animations going my cpu usage never goes above 14% usage, and only about 1% of the systems memory is used.
View 4 Replies
Jul 21, 2009
I have a movieclip that effectively functions as a button, which we'll call BtnA. When I click it, another movieclip containing the content (CntntA) fades in (this mc is on another layer). Then when I click another button (BtnB) CntntA fades out and CntntB fades in. I've got all this working fine for now, but the problem I have is that once BtnA is clicked, it is still clickable and it fades CntntA back in even though it is already active. Is there a way to disable BtnA after CntntA has appeared? So u can still see it, but you cant click it? Obviously I'll need to do this with BtnB and any future buttons I add
View 1 Replies
Oct 30, 2009
how to keep items below my pop-up window (window-component) from remaining active even though my pop-up window is layered above my buttons. I've tried to program my buttons to be inactive but since my buttons are part of an intricate animated navigation system, it seems like a lot of work when there should be an easier fix.
View 7 Replies
Dec 4, 2009
I currently have a site where all of the pages are loaded in a loader names loader1. I have a contact page embedded in the index or main swf file. I wou;d like to make a button that activates the contact page which is atop the site and render all links in the site loader disabled how can i do this? ive tried
ContactButton.onRelease = function () {
ContactPage.play();
loader1.button.prototype.enabled = false;
}
But it doesnt work
View 3 Replies
Aug 6, 2010
I have some movie clips that when moused over, become visible. When clicked the clips are clicked on they tween to center-stage and zoom to fill the extent of my stage. One the zoom completes, I'd like the mouse over effect and function to no longer be active. I've been trying this by just making the mc invisible at scaleX>1. This does not do the trick...
if (allthings.NEZOOM.scaleX>1{
allthings.NEZOOM.alpha=0
}
The function that is running the MOUSE_OVER is called NEOVER and looks like this
function NEOVER(e:MouseEvent):void{
TweenLite.to(allview.allthings.NEZOOM, .5, {autoAlpha:.5,overwrite:true});
TweenLite.to(allview.allthings.NETXT, .5, {autoAlpha:.85,overwrite:true});}
Is there a way I could make NEOVER inactive after once I click on the NEZOOM movielip? The click event looks like this
[Code] .....
View 8 Replies
May 27, 2011
I have a Native Window in Flex AIR. Let's say the window doesn't have a focus. It is inactive. Is it possible to find out when mouse is over such window? The window is always in front. I heard that it is possible by checking stage.mouseX in ENTER FRAME handler.
View 2 Replies
Jul 18, 2011
Does flash pause its execution somehow if the browser tab in which its residing is inactive? developed a multiplayer game using cirrus and when I tried to play it by switching tabs, aking a move in each tab, there were some inconsistencies regarding the way the game executed as if the inactive tab pauses the flash execution and then resume once it was active.
View 2 Replies
Aug 4, 2011
I often want to run a movie but are only insterested in the debugging output and switch back to my code or to the debugger.I discovered, that the movie framerate is significantly slower in an inactive browser window. This causes e.g. certain async unit tests to fail when run in the Flex UI. So it's not that trivial
View 1 Replies
Jul 25, 2011
I ma having trouble making a button inactive once a particular image is loaded.I have a portfolio section that has images loading in succession with each click of a button (the forward button)i have another button (a backward button that scrolls through the images in reverse in succession wit each click of the backward button, Problem is the button is active even when it scrolls through the images to the first image. I get the following message in the output panel:[code]I want the button to be disabled hen it gets to the first image thus stopping at the first image Or to the able to scroll through the images in reverse indefinitely just like the forward button - able to scroll through the images forward indefinitely.[code]
View 1 Replies
Apr 20, 2007
I have greated an animation which, I want to appear only when the mouse has been inactive for a certain period of time.
View 1 Replies
Mar 19, 2009
How do you make a mouse hide after it's been inactive (say for 3 seconds), then appear again once it's active? I know Mouse.hide(); but I don't know how to check for mouse activity to tell it to run that code, or to tell it to show it again once it's moved.
View 2 Replies
Apr 11, 2009
I am working on a portfolio website and I have all my navigation with buttons linking to other pages, on the base level. All the buttons are scattered around the stage and when one of these buttons is clicked an external movie is loaded in the centre of the page.
The movie is a big white box with a slideshow of images from my portfolio in the centre of the stage.
My problem is that the buttons on the base level are easily clicked by accident, even though you cant see them with the white box.[code]...
View 3 Replies
Jan 6, 2011
i have movie clip buttons on main timeline, i want that the buttons should be active (as they are on mouseOver) when click on them, and become back to normal when other button is clicked....
button AS2 is:
Code:
on (rollOver)
{
gotoAndPlay(2);
}
[Code].....
View 2 Replies
Jun 30, 2004
I have NO idea what the terminology would be for this so I was unable to find anything searching because I don't know what to search for exactly!Anyhoo, I've this on several sites. You've got your main flash working as a main menu on your active browser window.Then you click a link and you get a pop-up. Easy enough. But there's some code or something that can make your main menu and background totally inactive while you browse within the pop-up. When you're done with the pop-up, you close it and then click ANYWHERE on the inactivated "main menu" flash to reactivate it. Load it up, go inside and click the first orange linked text you see. It will bring up and pop-up and "grey-out" the main pag
View 1 Replies
May 3, 2007
how to set the FrameRate (fps) using action script?
View 2 Replies
Apr 16, 2010
i am making a flex air application and when its deactivated (lost focus), its framerate becomes to 1fps.i am using psudo-threading encoder that uses enterframe to keep it working the app requires long time converting process more than hours and i need the program to do the same thing while sitting back in the background how to disable deactivation in air application as soon as the focus is out, it becomes 1 fps instead of 24 fps which i need.
i know i can use timerevent rather than enterframe event but my app needs alot of calculation and i figured that in flash, the frame extends its time if the calculation isnt finished. if it gets too long in one frame, the ui hangs up.if i use enterframe, on slow comps it would extend its time to complete the calculations when all the calculations didnt get to finish in time in 1 frame.but im afraid if i use timer event, instead of waiting for the codees to be excuted it would excute the next timer event, i didnt try it though.i created the app that when you add the xml songbook data, it would load up the data sort it and create pages with the graphics and skins set up and when you save, it saves the pages to jpg files using the encoder i created.and the encoder uses enterframe.its working fine but when i deactivate the window while encoding, it becomes extremely slow since it becomes 1fps.
View 3 Replies
Jun 26, 2009
I have made custom mouse cursor (movie clip) everything works fine, default cursor is hidden, mc is following pointer, problem is- when flash is inactive custom cursor hangs in upper left corner of flash, I want to make it dissapear untill the moment you enter flash file. That would work like this: I am opening my web page, flash is loaded but custom cursor is hidden, I am moving my mouse into zone of flash -custom cursor appears on screen and follows mouse pointer.
View 5 Replies
Mar 13, 2010
how do i create ascripted rollover blur tween for all inactive buttons??
i got this script: "ziel_mc" is the button blurring on rollover. it works!!! but how do i add more than this one mc?? z.b. ziel_mc1, ziel_mc2, etc.
is there any way to add more mcs, separated by commas or anyhow??
Code:
stop()
import flash.filters.BlurFilter;
import mx.transitions.Tween;
import mx.transitions.easing.*;
[Code].....
View 2 Replies
Nov 28, 2010
I am trying to put together some games for my students to help them with their English. I want to be able to detect how long they spend on each game and so I want the clock to stop if the mouse is inactive for 45 seconds and then restart when they begin moving the mouse again. This is so the parents can see how long their kids' have been studying and not just how long the game has been running.
View 1 Replies
Apr 18, 2011
With selenium I'm currently automating tests for a website having flash elements for user inputs. While everything works fine when executing these tests on my computer locally, it fails to load the embeded flash if I start selenium on a remote Windows XP machine.
However, the flash just loads fine if I start the tests while I'm logged in via remote desktop.
This leads me to the assumption that whithout any desktop environment loaded or user logged in the firefox window is treated just as though it was minimized or the current tab was inactive, which I know prevents flash from loading until that window/tab is activated.if there is a way to enable firefox to load flash even if it's not currently displayed in an active window?
View 1 Replies