ActionScript 2.0 :: [FMX] Make A Website Fall Asleep When The Focus Is Shifted Away From The Entire Window
May 5, 2004
I was wondering if its possible to make a website fall asleep when the focus is shifted away from the entire window.... so something like onBlur. I've seen this on a few websites and I got thinking how they did it. I'm guessing they have some kind of JavaScript code in their HTML page that can detect an onBlur or killFocus or whatever you call it - then the flash movie picks up on this and takes the appropriate action - like pauses a movie or displays a message "please come back" or things to that effect.
EXAMPLE: Go to [URL] and go to the WANDER AWAY section and click his links. Provided you have enough "money" (you can earn "money" by navigating around) you'll be taken to pixel ranger etc. Now click on the [URL] window and you'll see its been greyed out and is "asleep". You have to click the movie to awaken the site.
View 3 Replies
Similar Posts:
May 5, 2004
I was wondering if its possible to make a website fall asleep when the focus is shifted away from the entire window.... so something like onBlur. I've seen this on a few websites and I got thinking how they did it. I'm guessing they have some kind of JavaScript code in their HTML page that can detect an onBlur or killFocus or whatever you call it - then the flash movie picks up on this and takes appropriate action - like pauses a movie or displays a message "please come back" or things to that effect.
EXAMPLE:Go to [url].... and go to the WANDER AWAY section and click his links. Provided you have enough "money" (you can earn "money" by navigating around) you'll be taken to pixel ranger etc. Now click on the howblue.com window and you'll see its been greyed out and is "asleep". You have to click the movie to awaken the site.
View 3 Replies
Feb 15, 2011
I've made a website, [URL]. the stage size is 1000x590. this is big enough for most screens. but some small ones or if they have large amounts of toolbars, cut off the top and bottom of the stage. so what I want to do is, if some parts get cut off, I want scroll bars to appear so you can scroll and see all of the site. it seems to have been done on the [URL] website.
View 5 Replies
Dec 17, 2011
I'm using Adobe Flash CS4I'm currently trying to fit a flash intro inside the browser window (height 100%, width 100%). I've tried changing the height, width attributes but with no luck. What am I doing wrong?
View 1 Replies
Dec 31, 2008
Over the past few days, I've been trying to figure out how to make a flash website that will have elements move in accordance to when the window is resized. I had got as far as getting it to work in flash when you preview it there. But I tried to publish it and it sits at the TL at its normal size. I had set the html to 100% etc. but to no prevail.[URL]..
I have attached a zip of the files I have- they are unpleasing to the eye and incomplete, but it should get the idea across. Hopefully this doesn't seem like to much to ask. if you can get my ugly Zip.file to publish in Dreamweaver, like it previews in flash.
View 2 Replies
Oct 19, 2011
I have a fla file with as3 (1000x700px) with multiple layers ; navigation to different pages and I would like to attach a scrollbar to each page.How can we do this?
View 3 Replies
May 12, 2006
I have to make a site in flash and I would like to have the feature of being able to change the color of the entire site. A little like skins or so... I want like 4 colours to choose from, and when you select a color, the background, and other shapes and graphics will change. What will be the best way to go about this?
View 1 Replies
Nov 18, 2009
I have some code which makes snow fall perfectly, but I want it to only happen inside a movieclip (a snowglobe to be exact).
var speed:Number = 5;
var total_snow:Number = 200;
var snow_per_second:Number = 3
var hit_target:MovieClip = gazing_mc
//
var holder:Sprite = new Sprite();
[Code]...
View 1 Replies
Oct 10, 2009
I cant seem to find the code to make an object randomly fall from some random y, or the code for if this object hits an instance then goto another frame?
View 1 Replies
Nov 18, 2009
I have some code which makes snow fall perfectly, but I want it to only happen inside a movieclip (a snowglobe to be exact).
[Code].....
View 2 Replies
Apr 4, 2003
I am in a pinch for time and know very little about Flash and even less about Actionscript, but I need to know how to make a ball fall according to gravity!
Thomas
<a href="mailto:ttorrey@slc.edu">ttorrey@slc.edu</a>
View 14 Replies
Mar 8, 2011
What is the largest stage that should be used for an entire flash website?
What is the average or most common, and how big can I get away with making the stage?
This is for a site that will be made completely in flash?
View 2 Replies
Mar 25, 2011
I wish to have a numeric stepper which allows me to choose the no of balls I want, then when i press the button I want all these balls to fall down..but when I press the button the x no of balls are generated but not falling down.
View 6 Replies
Nov 18, 2009
I have some code which makes snow fall perfectly, but I want it to only happen inside a movieclip (a snowglobe to be exact). [code]...
View 1 Replies
Feb 5, 2003
What i need to know, is how to make create random instances of the objects falling (as seen on footer) , so i need to figure out how to create random instances and random times in which they fall.
View 1 Replies
Nov 2, 2009
My website will be basically selling services; will my SEO ranking still be affected if I embed the Flash site in a blank html page? I am at that critical point where I am ready to upload the site but I am just having second thoughts about the ease of doing business with Flash.
View 15 Replies
Jul 5, 2009
I followed this tutorial to make a bouncing ball in flash. Its AS2 so it took me some time to make it work in AS3 Now I want to make the ball roll down a slope, fall and bounce when it hits the ground. I have attached my .fla.
View 1 Replies
Oct 20, 2011
I know I can use the Multitouch capabilities in AS3 to recognize pinch/zoom gestures etc., which I can use to zoom in on object in my movie. Can I set it up differently, so pinch/zoom effects the entire browser window? Basically treat a pinch zoom in flash as if they did it somewhere in the browser. For example I'm testing a flash animation on a droid tablet. When the html page loads, I can pinch zoom on the flash object as if it's not even there. But after I've "clicked into" the flash object to interact with it, pinch/zoom no longer does anything.
View 0 Replies
Sep 19, 2011
Just finished up my first drop down menu and needed some help as well as feedback. [URL] QUESTION: What do I need to do to make the dropdown menu scroll down and fall over the html content? In other words; How do i get the other content on the page to sit right underneath the dropdown menu? I can only get the content to sit below the .swf video which is larger than the dropdown bar since it needs room to display the drop down selections.
View 3 Replies
Jun 25, 2005
Well, basically i need to make my game so my mc doesnt fall through the ground when he jumps or walks, coz so far all he does is jump, then fall through the floor.
View 3 Replies
May 1, 2010
how this site was made so that it fits every browser window completely, with no borders or distortion to the site? http:[url]....I want my site to fill the screen and the only way I know is 'exactfit' in the html but this stretches the file on certain browsers.
View 8 Replies
Sep 7, 2010
I'm struggling to get around an error that is constantly thrown in my application when I press the tab key.
I have a modal dialog box that contains a form with 3 form items. Whenever I press the tab button flex throws an error saying
"ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller."
I've tried setting up a focus manager in the initilize handler of my title window to no avail
private function init(e:FlexEvent):void
{
focus=new FocusManager(myform);
focus.setFocus(firsttextfield);
[Code]....
View 2 Replies
May 28, 2009
I have made a javascript/flash system to play sound effects on an AJAX-based game I have made. For some reason, on some systems (it appears to be just Firefox 3 on Windows XP), users can only hear the sound effects play while the window is in focus. If they minimize the window or are looking at a different window the sound effects don't play.
View 8 Replies
Jun 25, 2009
Is there any reliable way to give the stage focus when you first open it in a browser window WITHOUT first clicking on the stage? By reliable, I mean something that works across different browsers and on both PCs and Macs.I've seen numerous threads on this subject, and I've read the Adobe tech note, and it seems there is no reliable way.How in the world can Adobe ask people to use Flash and not provide a reliable way to give the stage focus on startup.
View 1 Replies
Mar 20, 2009
I have a flash panorama that has hotspot links to pop-up windows that contain more information about the object. Right now if you are in fullscreen mode and click a hotspot you are automatically kicked out of fullscreen mode and the pop-up then opens. Is it possible to have the pop-up open and have focus while in the background the panorama is still in fullscreen mode?
View 2 Replies
Mar 21, 2011
I am unable to replicate this issue in Flash - only in a browser window. It appears that if I lose focus of that window for a period of time or scroll down the page where the embedded flash isn't visible, when I scroll back up or return to the window, the event timers appear to play catch-up.The timed "removeChild" commands do not run and leave remnants on the stage. I do not get any errors however, and everything else seems to continue running as normal.
ActionScript Code:
// XML File:
<?xml version="1.0" encoding="utf-8"?>
[code]....
View 0 Replies
May 16, 2011
I have created a container in Flash Professional CS5 for my projects CBT. I have been able to script many of the features we require using AS3, but there are a couple of things I am still trying to work out.I would like the swf presently playing in one tab to pause and go silent when another swf is opened in a new tab (the sound is inside this externally loaded swf which is loaded inside a movie clip from buttons nested a movie clip down). I have tried :
var originalFrameRate:uint = stage.frameRate;
var standbyFrameRate:uint = 0;
addEventListener(Event.ACTIVATE, onActivate)[code]....
This function is present when I publish the CBT with Captivate, so obviously there must be code available. You can set the Captivate button to open url in new window and pause movie.Is there something I can add to the html file that is similar to the �has Priority� for mobile devices or is there javascript that can be added to the flash itself?
View 0 Replies
Aug 5, 2010
Has anyone noticed the following behavior building Flex programs using the mxmlc ANT task (running in the background): as the MXMLC task starts, it steals the window focus from whatever application is currently running, and then gives it back again! This is extremely disruptive.Is there a way to run the MXMLC task "headless" so it doesn't interact at all with the window system?I'm running on Mac OS X (10.5.8, if that matters), and Flash 4.0.1 (although the behavior existed on 3.x as well).
View 1 Replies
Sep 7, 2011
I have a web page that uses javascript counters to count user "active" time, meaning the time a user spends viewing this page (and not some other page). I do this by starting/stopping them using the [URL].. However, when the user clicks on a plugin inside the same page (flash, java, etc), the window loses focus and window.onblur is fired. Is there a way to tell that the user is still on my page?
View 1 Replies
Jan 22, 2010
Can flash detect when the user switchs focus to another window?
If it can then is there any event that fires when it does?
View 2 Replies