ActionScript 3.0 :: Full Window Background And Tracking?
Feb 28, 2011
I am building a flash website with a full-window resizing background, but as part of this project I need to be able to calculate certain elements in the image based on the original resolution of the image.For example, if I have an image that is 1600x1200px and there is an element at x=500 y=1000 then I need to track that element when the image is resized to. Say the image is resized to 1200x900px (scale always remains the same, btw) then the element would be at x=375 y=750, by my calculations.This seems easy enough to figure out on paper, but I haven't been able to figure out a formula for this. I am quite certain that this has to do with the fact that the ANCHOR POINT FOR THE IMAGE IS IN THE MIDDLE OF THE IMAGE and not in the top left corner.The code is quite simple:
ActionScript Code:
import flash.display.StageScaleMode;
import flash.display.StageAlign;
[code]....
View 1 Replies
Similar Posts:
Apr 6, 2011
i want to minimize window to not-fullscreen (i meant restore down (icon in the top right corner betwen - and x)) browser window and ajusting size of window manually over arrows in the corners of the window) and retain background picture full size (i need to picture proportionally follows screen minimizing).
View 1 Replies
Apr 6, 2011
i want to minimize window to not-fullscreen (i ment restore down (icon in the top right corner betwen - and x) browser window and ajusting size of window manually over arrows in the corners of the window) and retain background picture full size (i need to picture proportionally follows screen minimizing). The site is [URL]
View 2 Replies
Jul 1, 2010
looking for any full body motion tracking software that would type keys on the computer when the webcam senses different body motions.
View 2 Replies
Jan 22, 2009
I'm working on a small flash site and I want the swf file to have "bleed" or to go to the very end of the window so that the swf isn't just ploped over top of a background. [URL]
View 1 Replies
Mar 6, 2004
1) how do you open a new window if you have thumbnail pics in the flash movie but want the full pic to open up in a new window? Is this Javascript inside flash?
2) How do they do the menu bar here at this site:[URL]
View 1 Replies
Apr 7, 2010
I'm trying to create a website with full screen background images (or possibly, a video) but don't know the best way to approach it. The Die Antwoord site does pretty much what I'm trying to accomplish. I'd also like to know how they can use such high resolution images. If I try to use a high res image, the file size is enormous.I also want to do is to be able to change the background image when a button is clicked. What is the best way to do that with large images? Another site that uses similar technology only with a video is the TV on the Radio site.
View 3 Replies
Apr 15, 2009
I'm trying to create a website similar to this one, where the content is a fixed width and height (i.e. made to fit a 1024x768 screen), but the background image is full screen and scales proportionally when the window is resized.
How can I achieve this full screen background using Flash CS4/AS3?
View 5 Replies
Jun 15, 2010
I was wrote the following code to set the background image in one vBox.
vBox.setStyle("backgroundImage", "PreviewBackground.png");
vBox.setStyle("backgroundAttachment", "fixed");
Where the height and width of vBox was 250 x 350 and the height and width of background image was 400 x 400.The problem is that the background image doesn't show the full image. The image has cropped. How can i show the full image as a background image?
View 1 Replies
Oct 30, 2011
How can I fill my whole background with a big image? The photo is 1400*867 and with the solution here it fills up the width but not the height. I don't care if the photo gets cropped in order to fill up the height too.
The CSS3 way (background-size) is perfect but doesn't work in IE.
If you don't know a way with css/jquery could you direct me to a flash script where I could just enter the path of the image and let flash resize it?
View 3 Replies
Apr 15, 2009
I'm looking to create a site that has video playing full browser in the background. A very perfect example lies here:[URL]..As you can see, the video is scaled according to stage resize while the menus and such stay where they should like a perfect liquid layout. I've watched the Liquid Layout video (from this site i'm pretty sure?) and understand how to position objects on the stage according to stage resize, but I've never figured out how to scale only the video like that. The only way I've been able to do that is by setting my publish settings to NoBorder with 100% width and height, but that defeats the whole liquid layout because it scales your entire swf. I feel like it's some sort of math I'm not grasping.
I'm probably wrong, but I feel like the way I'd go about doing this would be to set everything up as a liquid layout site; that is specify stage align and scale to TOP_LEFT and NO_SCALE. I'd have my liquid menu items positioned accordingly with a resize function and for the background video I'd use a FLV Playback Component that would be manipulated through another as3 function to scale accordingly. I'd use a Playback Component so as to be able to load multiple external videos (.h264) when a link was clicked. Am I on the right track? AS3 only please!
View 14 Replies
Jun 1, 2009
im trying to load a swf in the center of a full swf background and cannot get it to work.
i got the resize function to work properly, but when it first loads it is not centered properly
for some reason it recognizes the resize code by not the initial code
here is the code im using (note: im using the full background code from noponies):
Code: Select allimport com.display.FullBrowserBg;
var newBrowserBg:FullBrowserBg = new FullBrowserBg("images/stuccoBG.jpg", false);
addChildAt(newBrowserBg,0)
[Code]....
View 2 Replies
Oct 2, 2009
I have searched everywhere but I can't seem to find anyway to create a full screen background image. Does anyone know the code to do this? Or know of any tutorials?
View 3 Replies
Jul 10, 2006
I am using a full size background on my website with the following code.
Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
bg.onResize = function() {
var imageAspectRatio = this._width/this._height;
[code]....
The problem any swfs that I load into are not centered because of the Stage.align = "left"; So I adjusted all loaded swfs like so.
_root._x = 200;
_root._y= 100;
Which center my movie perfectly. The problem is when I try my movie on other resolutions the movie is no longer centered? Do I need to write some code that gets the screen resolution and adjusts the _root based on screen resolution?
View 12 Replies
Feb 7, 2007
I took the tutorial on using the bitmapdata to effectively tile a background, but it doesn't tile it across the full screen. Only the size of your flash movie. I want it to cover the entire screen muc like [URL]I'm looking for a way to tile the image across the full background regardless of window size. So if you maximize your browser, the background tiles the the full screen. I've been racking my brain all morning trying to figure it out!
View 6 Replies
Dec 7, 2007
I am trying to build an AS3.0 flash site with a full browser background imagethat scales proportionally like in [URL] I found some stuff online but nothing on how to do it with AS3.0
View 11 Replies
Jan 12, 2009
i have my movie set up to load an external swf or image into an empty movieclip which allows the image to streach to the full size of the browser window.the question is that i want there to be a preloader on the transition between the images as they will be relatively large sizes, i want to recreate something similar to:...where the preloader takes up the whole window similar to how the images will be working
View 10 Replies
Jun 5, 2009
I have a problem with the resizing of the background. This is the code i use
bg_mc._x = 0;
bg_mc._y = 0;
bg_mc._width = Stage.width;
bg_mc._height = Stage.height;
How I can make this background to resize in full screen?
View 1 Replies
Nov 4, 2009
I'm working on a site currently, and I have a fullscreen flash video that has objects that react to the mouse movement and create a parallax effect. A Div container is above the flash video containing the site content. I can display the div content above the flash video just fine, my problem is that the flash video does not recognize the mouse movement when the mouse is above the div container? Is there any way to fix this or will I have to create the site entirely in flash?
Here is the code:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>mouse_follow</title>
[Code]....
View 2 Replies
Oct 17, 2010
i am having this little problem of making my video fit to my browser width and height.and it needs to get itself be the last layer as well. is getNextHighestDepth() a wrong command here?how do i add swap depth or something?it needs to be a layer beneath my navigation and everything.
Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
[code]........
View 1 Replies
Apr 16, 2005
is there a way to tell flash in a button event to open a a html site (php-cgi) with a small size, lets say like 300px x 200pxThe html.site/php-cgi) id like to get openned and resized at 300x200 looks like this:
__________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
[code].....
View 4 Replies
Aug 17, 2010
I currently am working on a site with a full-screen flash video background - [URL]It is working in most browsers, except apparently IE (I am working on a mac).Apparently the only problem is the flash video is not playing.I put this in the body:
<div class="zone-home">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="background-vid" align="middle">
<param name="LOOP" value="true" />
[code]....
View 1 Replies
Oct 2, 2007
In the bottom layer of my main movie, Id like to put a random background image which loads on entering the frame and stretches to full screen. I would like to use a preloader for the image so Im trying to load a swf using this which I found here:
[URL]
Code:
choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
[Code]....
but I could not get it to stretch full screen. How do I get the externally loaded swf to stretch full screen and be able to resize via a listener from within my main movie?
View 1 Replies
Jan 14, 2009
I have a website already done... but I'd like it to be over a full screen gradient background.I found a lot of tutorials and exemple on how to repeat a symbol picture to make a seamless background just like the one Lee Brimelow made on gotoandlearn.com, but I can't find one on how to make that gradient full screen background.
View 6 Replies
May 14, 2009
This is a thing I developed using Flash and Javascript, to set any image dynamically as a background image of a web page and allow all other page content to scroll over the top of it.
[URL]
Would be interested on anyone's comments feedback, particularly about the flash (source code can be downloaded)
View 1 Replies
Jun 14, 2009
[URL]
I have gone through it all and it works great for the tutorial but I tried replacing the background with an image and when the browser is resized to full screen it distorts the image and stretches it out of proportion. Does anyone know how I can have the background image resized to the full screen and stay in proportion?
I basically want to create the exact functionality as [URL]
View 1 Replies
Feb 23, 2010
I would like to have a project where the background fits the whole window (can squeeze) and the content is automatically resized and centered; keeping its ratio.Auto-Resizing and Centering your Content But here's my problem :
My main project is 1400*900px.
My MC to handle is 1000*680px.
I load an external SWF in that MC (with addChild).This external SWF is 1000*680px too (same size than parent).I have a lot of clips in my external SWF and some of them are "out" the project zone.So when I load it in my MC; the MC is no more 1000*680 but more.I thought that what was outside didn't matter; but it seems that flash do not ignore what is out.So, when I use the code to resize/recenter the MC; it broke as it do not center as it should.I did try to use masks but it do the same.
View 1 Replies
Feb 16, 2012
My flash program isn't using the full browser window, even while in full-screen mode. It uses the full height but not the full width. I end up with a large chunk of white space. I have the following code for full-screen mode:
[Code]....
So the problem is that the stage's width isn't the full size of the browser. I'm using Flash Builder 4.6 is there a way to set the stage's parameters to allow for true full-screen?
View 1 Replies
Apr 24, 2010
I know how to open a window with Flash so thats it's fullscreen with no browser.
ActionScript Code:
on (release) {
toggleFullScreen();
[code].....
View 0 Replies
Aug 4, 2006
how would i do a full screen pop-up window through flash 8 for an entrance screen such as [URL].
View 3 Replies