ActionScript 2.0 :: [FMX] Making Site "fall Asleep"?
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
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 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
Jul 1, 2009
I am making a website for a client in which I need to incorporate some way of allowing easy client editting.Having looked online I havent found anything that will fit the requirements exactly but have seen the functionality on other sites in the past. Ideally I would use a secure web page with a form where the client could select the item to edit using a drop down and then proceed to fill in a few boxes, saving the new content that would be then viewable in the flash file.
I origianlly thought of an html form that stores the saved info in an XML file that could then be drawn out in the flash site.Is that the best way?
View 3 Replies
Nov 24, 2010
windows 7 64 bit IE and mozilla firefox , both 32 bit Says I have flash player installed. I have the latest version. My windows is up to date, 64 bit 7. Plugin is enabled, works on adobe's site. Doesn't work anywhere else to my knowledge
Attached pics are what other people have looked at while trouble shooting, I have looked many places, and have not found the correct answer[URL]..
The folder is not there. I thought that would probably be the problem. Manual installer uninstalling and all kinds of installing have been tried.
View 5 Replies
Jan 15, 2012
I like to move the four pages according to the name of the top menu items with certain intervals. ( The pages are just images) and like it to use xml to load. When the home page loaded the menu "home" will change its color to red and when the second image is in the frame the second menu item will be red.
View 0 Replies
Feb 22, 2007
[URL]its like the whole area of the window is flash, he has it ALL over without scrolling. now what im interested is in the no scrolling part. is it a size thing? and if it is, do the values have to be set in flash or in a program like DW?
View 1 Replies
Jan 30, 2009
Im making a site and i have this error:
ActionScript Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Site/fadeItens()
at Site/::menuWork()
[code]...
View 2 Replies
Oct 19, 2011
I have a template that I want to modify. I want to add two subpages to a products page, and I don't know how to do it. The site is: [URL]. I tried with simple goto but it generates errors. I think of loading a swf when you click on the sub-buttons but that doesnt work too.
View 0 Replies
Apr 13, 2010
Making a photo slideshow to load as an external movie clip on my site when a button is pushed. Here is a link to the .swf file: [URL]. There is text that describes each set of 6 pictures. After the set of 6 pictures plays through the text is supposed to disappear and a new text appears to label the next set of 6 pictures. Problem is: the text doesn't disappear! I made all the text layers a symbol/movie clip. I animated each text to disappear at a certain point in the timeline but when I test the movie the texts just remain there and build up one after the other. When watching the movieclip, pay attention to the text in the lower left screen.
View 2 Replies
Apr 27, 2005
I've decided to finally make my own full flash site. I've got more than enough Flash and ActionScript (and XML) knowledge to pull it off nicely, but I was wondering if people who have already done this have any advice for me in terms of organizing the whole thing, so it's easy to upgrade and follow through during the time you build it. I was thinking a standard layout, maybe an intro and a first preloader, then a menu that choses sub-sections and each has an intro and outro transition? Oh, and for seperate sub-sections, do you put the preloaders in the main movie or do you include the preloaders seperately in each of the subsection swfs?
View 3 Replies
Apr 15, 2005
i'm making my own portfolio full dynamic flash site. And animation and interface is ok. But i don't know about connecting to database. And i read about PHP+AS. And i couldn't get a good point.
View 4 Replies
Mar 31, 2003
i need to know how do i make a menu on flash but i dont want to load a hole new site evry time i go to a section so i wana get the codes for that
View 1 Replies
Jan 22, 2007
I'm making a classic horizontal sliding menu flash site, but just can't seem to iron out the last little tweak. How do I get the mouse to not react when over the open section, I've tried 'delete mc3.onRelease;' which works, but then that section will not longer work at all after it's been closed.
I've attached the fla and a link to the beta site as I'm finding it hard to explain exactly what I mean:[URL]..
View 4 Replies
Sep 3, 2009
I am making a Full Screen flash site and I need my BG to scale proportionately. Currently I am using:
Code:
_root.attachMovie("bg3","bg3",_root.getNextHighestDepth());
bg3._x = Stage.width/2;
bg3._y = Stage.height/2;[code]...
View 1 Replies
Nov 2, 2010
how do you link(code) your swf pages to each other (through buttons) when making a flash site or portfolio?
View 5 Replies
Sep 7, 2009
I'm trying to make the bottle of tequila fall back down to the black line (increasing in speed as it falls) when the mouse button is released, but I'm very stuck & new to AS3. Here is my code so far:
function dragBottle(e:MouseEvent):void {
e.target.startDrag();
Mouse.hide();
}
[code]....
View 3 Replies
Dec 26, 2009
I'm currently making a vid and would like to put some snowflakes on them.What's different though is that I want to snowflakes to fall horizontally.http:[url].....I found this while looking on Google and it worked. I have no idea how to make the changes in the coding to make the snowflake "fall" horizontally.
View 1 Replies
Apr 12, 2011
I am using math.random to randomly drop objects from the top of the stage. I had it working with one object. But as I wanted to increase the number to 6 objects, I added the following code: But I am "stuck" and so are the 6 objects at the top of the stage.[code]...
View 2 Replies
Mar 13, 2012
I've got a common situation where you have two variables (xSpeed and ySpeed) which I want to independently set to zero when they fall below minSpeed, and exit when they're both zero. What would be the most efficient method? Currently I have two methods (Method 2 being cleaner)
[Code]....
View 3 Replies
Feb 18, 2004
I need to make a dance dance revolution-type game. the icons are gonna fall from the top of the screen and the player has to press the keys on the keyboard that correspond.
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
Mar 25, 2004
the beach ball is drag and dropable.. how do i mak it to when you drop it in the air it falls back down... maybe with the effect of a bounce too..
View 1 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
Feb 16, 2010
I have gotten to a point with my platform game where I am completely stuck. I have the player movement working fine but the only thing is, it doesn't fall off the blocks.
I have a Floor class which references the Character class and tells it to stop jumping when it is on a block through a hitTestObject. I have tried to research how other games have added functions but can't seem to find one which will work in mine.
View 1 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
May 25, 2010
I have searched, and maybe I am searching wrong.. but I cant seem to find the same situation I am looking for. I have a "Home" scene that if I can explain it right by listing the individual frames.... would play like this:
frames 1,2,3,4,5,6,7,8,9,10 (then stop automatically.... then after the "ART" button was clicked .. it would continue and play like so) 11,12,13,14,15 then at frame 20 it would go to the "ART" scene
I am sure most figured it out that I have an intro scene.. that essentially builds the page and finishes at frame 10. And when a button is pressed.. it would play my Transition (which is just the same frames copied and reversed) ... and then go to the desired scene. So far I have it stopping at frame 10, that works smoothly.. but I dont know where or how or what to do to make a certain button play to the end then to go a specific scene.
View 3 Replies
Mar 28, 2004
im making a game but im already having trouble with the first code, i just want the user to fall when he is not touching a floor....i put this code on the user:
[AS]onClipEvent(enterFrame){
if(falling=true){
this._y=this._y+5}[code]....
theres is no errors but it doesnt stop when it hits the floor
View 4 Replies