ActionScript 3.0 :: Get Monitor Refresh Rate
May 14, 2011is there a way to get this parameter from flash somehow? The Capabilities class can't do it. I'm using the latest Flex SDK and the new Molehill API for FP11, if that matters.
View 6 Repliesis there a way to get this parameter from flash somehow? The Capabilities class can't do it. I'm using the latest Flex SDK and the new Molehill API for FP11, if that matters.
View 6 RepliesI've got a movieclip which monitors and graphs the level of activity coming in, like a heart-rate monitor at the hospital. The graph scrolls the data off the screen, but the movieclip is never cleared, and the off-screen data builds up indefinitely. The longer the user stays on the page, the more memory the un-seen part of the graph takes. What's the best way to clean up the unseen part of the movieclip?The code is as follows:
this.stage.addEventListener(flash.events.Event.ENTER_FRAME,
function(event){
var dif = md.getDifferences();
[code].....
I believe if you have something like
if (loop.posistion = .963){
trace("HI")
You will probably never see the trace because the if statement only refreshes at the rate of your current fps.What about action loops?
for (i=0; i<10000; i++){
listbox.additem(HI + i)
What rate do they work at. Do they go as fast as the computer will / Flash, or do they also refresh at the fps rate?
Can anybody tell me if it is possible to limit the bandwidth or screen refresh rate that a flash movie uses? I have a large number of virtual desktops which use RDP and flash performance is terrible.
If I look at a site in IE that use lots of flash, my RDP session can even hang sometimes or more likely become completely unusable.
I had an issue with my index.html testing on IE and the preloader just stalls on "loading 0%". he told me that locally the progress event doesn't have time to load and to try uploading it to your server and see if it works. It worked just fine. Rah Rah Kglad.
So today I'm fine tuning the swf/ fla to clean it up. Reduced some picture sizes and deleted unused files and reduced the swf from 4000 KB to 350 KB Rah Rah Gene. replaced the swf in Dreamweaver and re-uploaded with Filezilla. Rah ah Filezilla.
Everything working great and my preload went from 23 seconds to less than 3. So I'm real happy except for one small issue. Firefox and IE both do this. If I hit the refresh button, it stalls on "loading 0%" once again just like it did locally.
If I hit the refresh several times it WILL refresh randomly....2 times refresh......10 times refresh etc.
[URL]
Spoke to my hosting company who said everything seems fine on the server. BTW he said Chrome did NOT have this issue Rah Rah Chrome.
I'm recording Webcam to FMS 3.5 but when I play the recorded video from FMS it's choppy. I have set the camera.fps to 30 but when I trace out the currentFPS for camera it's variable and usually falls between 20 and 30. However when I play the recorded video, netStream's currentFPS returns a lower value, something closer to 10. So my question is, 1) why currentFPS of netStream is not the same as Camera's? 2) What's the actual frame rate of the recorded video (not the netStream, but FLV's)?
View 2 Repliesset the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within.
I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.
it possible to set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within. I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.
View 2 RepliesI recently installed a new 23 inch Samsung monitor and since then, I get all these lines accros my Flash interface and can't seem to find how to restore the screen. I am attaching a screen shot of the flash interface.
[Code]....
I m streaming a pal signal over FMS, i can get it over a PC or Mac on a Flash Player.is there anybody who know a hardware ti get it out over SDI?
View 1 RepliesI want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically.there is any way to do that with Flex/Flash directly?or i might program another application in C in order to monitor the USB port and then comunicate with the front-end application with sockets?
View 2 RepliesI'd like to open a window in my AIR/Flex application on a second monitor if it's available. Don't know how to go about it. Tried this:mySecondWindow.x = Capabilities.screenResolutionX;
But this only gets the size of the first monitor and if I try to assign a greater value, it switches to default 100px offset. Is there a proper approach to this? My native screen is maximized in "preinitialize" and then I open the second window on "applicationComplete".
How to detect the Monitor current resolution in flex.
View 2 RepliesIs there a mechanism by which an AIR application can manually display in whichever monitor I choose? I can look at the display list in Screen.screens, but I'm unclear on how to actually force the drawing of the app into one of those.
View 1 RepliesWhat is the reason Flash Builder 4's Network Monitor does not support applications that were created using pure ActionScript and Library projects? It seems to work only for Flex projects.
View 1 RepliesI am wondering if there is an easy way of monitoring whether or not an mc is within the boundaries of another mc while it is being dragged. Currently I am using different equations to determine the leftmost, rightmost, topmost and bottommost points of each mc and then when they are being dragged comparing their x,y coordinates. Is there an easier way... I ask because this seems to be quite a lot of code to get through for such a simple operation, especially when the function containing the code is being called each time the mouse moves..
View 1 RepliesIf there is movie clip playing on the stage is there a way to know if it is done playing. Is there some kind of stage listener or movie clip listener you could build that would monitor the clip that is playing and when it is done have the flash program do something else?[code]...
View 5 RepliesHow can we get monitor's physical height and width ie size?
View 7 RepliesHow do I open a new native window on the second monitor?
View 1 RepliesBut i have one question to it. How can i tell the window to open on a certain part of the monitor?
I know there's something like "screenX/screenY = .. " but can somebody tell me how i can build that into my script?
I have some code that will be generating data into a TextField. However I want to be able to monitor when the TextField is updated, a function is called.
Currently the onChanged command will only work when a user has entered information into the TextField and not when data is inserted via actionscript.
how I can monitor the change to the TextField when using actionscript to input data, but work the same as the onChanged command?
I have a movie clip to display a clock and a datagrid for showing my schedule. I want my flash to alarm with sound when the time from the clock match one time on the schedule. Here is my actionscript:
Code:
clock_mc.onEnterFrame = function() {
if (_root.timer[i]==_root.clock_mc.clock_txt.text.substr(0,5)) {
alertSound = new Sound(alertSoundMc);
[Code]....
As you can see, I use onEnterFrame to listen and check matching between time on clock and schedule but it will check all the time and when it alarmed it produced sound all the time while the time is matched. I would like my flash to alarm only one or few times.
I have create a clock which displaying in TextField named clock_txt. I want flash to do some thing when one more minute is added. Can I monitor this change and how?
View 12 RepliesI've been asked by a client about playing a Flash .exe file from a hard drive so that it only plays on a second monitor.
View 2 RepliesMy connection at work seems to be a bit rocky. I'd like to make a simple graph using the awesome power of ActionScript to demonstrate the rockiness of work compared to the smoothness at home to my IT guys.Websites like speedtest.net won't cut it as sometimes my connection is great, with sudden cutoffs randomly. Other apps won't work as I can't install software at work.
Any thoughts on how to get started? I'm guessing I download some audio or something at regular intervals or something to test/graph (I can handle the graph part)? I don't need specifics, although I'd be delighted to see examples if any. I really just need some general guidance on where to get started.
I need to write script to call another flash external movie with getURL at the instant the music stops. The initial flash program gives a show on stage with curtains opening and some acts on the stage, and after the show, the curtans close and the stage remains in tact with no futher action on screen until the end of the music. Howver the music continues about 45 seconds after all is done. I need to call another url as soon as the music is done. Is there a way I can begin to monitor the music to call get url when the music is done. This would then load another url.
I can't just time it, and load the next url in 45 seconds as some shows have music longer than others.
I hope there is a loop I can set up to keep checking the music status like we check the loading frame status to see when it is done.
I put a lot of work in my flash website that will soon be launch. But now I realize I want it to fit better into the larger wide screen monitors. Is there a way I can make it larger without losing image quality? I know this probably needs to be done in the publishing tool.
View 1 RepliesIn Flex/ActionScript 3, is there a better way to monitor the date/time to determine if the date has changed to the next day by creating a timer that dispatches every minute?
View 1 RepliesI'm working on a drag-drop solution, and acting when a item is dropped on the current target (let's say an "intelligent chess-board") is a breeze, as the board fires DragEvents when items are hovering over on dropped on the it.
What I'm looking for is a way to make the board act when an item is dragged OFF the itself. Of course - when the item is dropped somewhere else, I could fire an event there and tell the board that change has been done. But this is what I want to avoid.
I wonder if there is some way to monitor a change in the displaylist of the "board", so it fires an event when a child/element is removed from "outside"?
I'm building a portfolio full flash site, trying to make a resize to fit with any monitor size. I have two swfs. One main.swf and page.swf as a child which loads within main one.
My problem is when I resize my browser or directly from Flash: main.swf file and resizing with my mouse. The page.swf keeps loading over and over again. I want it loads once and when resize it will fit with size of any browser dimension.[code]...Make resize to fit with any monitor size?