Professional :: How To Tile Picture In Background Off Stage
Jun 11, 2010
Okay, since my stage doesn't take up the whole window when viewing it on the Internet, is there a way to tile a picture in the background? So no matter how big someone's screen is, in the background they will see a tiled picture.
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]
I am looking to take a single image and have it fill the screen....then I want the user to be able to pan and zoom in/out , and the image to be tiled into infinity. So eventually the screen will be filled with tons of little versions of this image. I can do the scrolling and stuff, but I don't know how to infinitely tile a background.
I have a MovieClip I named mcGrid and I can't figure how to tile it as a background in my flash project. Is this even possible? If so can someone send me in the right direction.
I'm trying to tile the background of a movieClip with a set of small squares, called grid. However, the script only attaches on instance of grid. I don't understand why this is. Below is my code exert:
Is there a way to set the background color for the stage to transparent instead of a color? I only see color as options when clicking in property manager for the background.
I have been struggling with this with CS4 and CS5. I am working on an animation with a couple of characters comprised of several pngs I converted to symbols. When one characters symbols overlap another characters the swf file shows the stage color rather than the background image I have placed in the file. I can publish it as an html with the option of playing it windowless transparent and it will remove this problem. But I would like to just be able to play the swf file without this issue.
I'm making a game where you place tiles on a grid. When placing a tile, I need to check the existance of another tile to the left, right, or above and below, otherwise the tile should not be placed.. Here is a function I thought would work, that accepts one variable (the position of the tile just as it is about to be placed) :-
private function checkSurroundingTiles(gridPosition:uint) { var t1 = gridPosition - 12; var t2 = gridPosition - 1; var t3 = gridPosition + 1; var t4 = gridPosition + 12; for(i = 0; i < gridRefArray.length; i++) { var checkTile = gridRefArray[i]; if(checkTile == t1) { return true;
I have a little problem with my isometric tile chat beceause i cant get object that are bigger than one tile on mij stage beceause the depths dont seem right then.This is wat i have at the moment:But as you can see the building intersects with the wall.Here is my code for making the map:
I want to tile a pattern across the stage, but I want to load it with loader (png file).I used to do it like that, Tile being bitmap in the library with export name Tile
Code: var pattern:Sprite = new Sprite(); addChild(pattern); var g:Graphics = pattern.graphics; function resizeHandler(event:Event=null):void
[code]....
what do i need to do actually to send this to beginBitmapFill ?
I am making a web page with about 13 buttons. some are dropdown menu Items.I would like to have a background linked to each of the buttons, such that when I click on a new button the background fades into the new background.
example: I am at my home pag, and the background picture is a tree. you click on my about button, and the background fades into a picture of a book. you click on my contact button and the picture fades to a house. then you click back on the home button and the tree fades back in. If you are at home and you click on the home button the picture should fade into the same picture etc.how to do this without creating each one of the fade transitions manually.
I want to load a big background-picture into my Flash, and then I want it to be resized so it fits the screen-resolution that the user has on his/her browser.[url]...
it loads perfectly, and - from what I can see - keeps it's dimensions.but it does not resize to the size of the browser as it should....if you go to the link, and then manually resize the browser-window, you'll get the resizing of the background-picture going on, though.[code]...
I'm testing this idea of mine, but so far I've not been awarded succes.so, here's what's my idea about:I want to load a big background-picture into my Flash, and then I want it to be resized so it fits the screen-resolution that the user has on his/her browserit loads perfectly, and - from what I can see - keeps it's dimensions.but it does not resize to the size of the browser as it should....if you go to the link, and then manually resize the browser-window, you'll get the resizing of the background-picture going on, though.here's how it's all build:I have a test100.fla with a test100.as Document Class
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
I pretty much got it working. The only problem I'm having is that it's only full screen based off of the width. I want the picture to maintain it's scale, so I need it to fill the height if necessary and cut the sides off of the picture. You can see what I mean by clicking [URl]. Resize the browser so it's a lot taller than it is wide and you'll see what I mean. I want it to fit both height and width no matter which is taller. I've played around with it all morning and nothing.
Code: // pic_mc is the movieclip that I used to load my full-screen background image. function bgResize() { pic_mc._width = Stage.width; pic_mc._yscale = pic_mc._xscale; if (pic_mc.height >= _yscale) { pic_mc._x = (Stage.width)/2; pic_mc._y = (Stage.height)/2; [Code] ......
I have visited the [URL]. I like the most of the things in this site but the only thing which really amazed me is the navigation bar. On mouse over the menu the background picture transition take place. I guess there are three pictures, and they are doing it with the Action script.
I want to create a website with a background that will auto-resize according to the stage size using AS3.But what i need to know before I do it is: What is the right resolution for the background picture?I want people with resolution starting from 1024x768 to view the website correctly and I also want people with 24'' monitors to view the background with good quality so I guess the image needs a high resolution. I started with 1936x1288 but when I resize the stage to fullscreen the bottom of the image gets cut off.
trying to print a movieclip with a white backgroundwhile keeping the stage background black.The movieclip,printResults_mc has a white rectangle in the bottom layer, 850pixels x 1100 pixels. The following function scales printResults_mcto the printers printable area but because isimpossible to predict the aspect ratio of the printable area someblack background always leaks out. I tried making the whitebackground 20 pixels larger than I need (870 x 1120) and thensetting a crop rectangle in addPage of (10,10,850,1100), no luck,the black stage background just fills in the area outside the crop.A simple solution would be to temporarily set the stage backgroundcolor property to white, print, then set it back to black, but I
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).
I would like to use an Illistrator file as a repetitivepattern for the background of my flash web site.I couldn't find any pointer in the documentation.
I have a baground in my swf. I want the background over the browser screen. Code: Select allfunction ImageonBaground(mc:MovieClip) { }if (mc._width==0 || mc._height == 0) return; var imagein:Number = mc._width/mc._height; var stagein:Number = Stage.width/Stage.height; if (stageRatio>=imagein) { // match image width and adjust height to fit [Code] .....
In the code are other things ( Stage.scaleMode = "NoScale" , listener an etc.) I have a problem, the picture is big. I publish the fla to html and I looked in it... in the browser the bottom of the picture cropped. Is there a possibility that the browser show me the rest of the background with a scrollbar. I have a widescreen laptop and I want to optimize for that.