Image As Background / Resizing / Scalable Background
Jul 24, 2009
I am relatively new to Flash CS3 and i have been learning Action-script 3 over the past week. I have come quite a long way and i have made a site in flash but i just have a question.I have been using an image as my background and i am happy with the way flash automatically scales all the objects in my file but the background image does not scale. Is there a way to do this? I have found out things online which show me how to add auto-resizing to the background but this knocks off the flash auto scaling/resizing for everything else.
View 4 Replies
Similar Posts:
Jan 15, 2009
I recently found a great tutorial for making a scalable background image on: [URL] which has worked a treat. But my content is now positioned top left. How can I centre it without effecting the background? The full code I'm using on the first frame is below. I can centre all the content by changing Stage.align to "T", but then the background image has a nasty white space on the left hand side when the user resizes the browser.
I'm a flash newbie, can do some basics:
//set stage for FBF
Stage.align = "TL";
Stage.scaleMode = "noScale";
//define dynamic aspect ratios
picHeight = new Object ();
picHeight = pic._height / pic._width;
[Code] .....
View 6 Replies
May 21, 2009
I'm trying to create a simple splash page for a site that has a scalable background animation, with a fixed size content animation that will stay centred for different sized browser windows or if the window is resized.[code]In general am I on the right track to achieve something similar to the example I posted? Is there a better method to use?
View 1 Replies
May 2, 2010
I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?
View 1 Replies
Apr 24, 2008
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
test100.as:
Code: Select allpackage {
import CustomBackgroundTest;
[code]....
View 7 Replies
Mar 24, 2010
I have a code for a page I am using and I would like to add a background and have it resize with the screen like the rest of the page. I have created a movie button named "pic" with the image in it but I don't know how to write the code and place it in the existing AS3 code file.how to place the code like i was in 3rd grade, that would be great. Here is the existing code.
package com.modules
{
import flash.display.*;
[code]....
View 1 Replies
Oct 20, 2009
I want to load an external swf to the background and then have it resized proportionally according to the browser window so it can fill up the whole screen.
View 2 Replies
Mar 24, 2010
I have a code for a page I am using and I would like to add a background and have it resize with the screen like the rest of the page. I have created a movie button named "pic" with the image in it but I don't know how to write the code and place it in the existing AS3 code file. I am brand new to this so if someone could tell me how to place the code like i was in 3rd grade, that would be great. Here is the existing code.
package com.modules
{
import flash.display.*;
[code]....
View 1 Replies
Oct 20, 2009
I want to load an external swf to the background and then have it resized proportionally according to the browser window so it can fill up the whole screen. Could anyone point me to any online tutorials or show me how to do it?
View 0 Replies
Apr 3, 2009
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.
View 6 Replies
Dec 28, 2010
As the title already states i have a (big) problem importing a PNG in a Flex 4 application.Created a PNG file in Photoshop with transparent background. Loaded in Flex application using this code:[code]So when the complete event fires the data has been loaded and it is possible to assign the data loaded to the image component named Thumbnail:[code]Unitls now everything works as expected!But when i try to send the Thumbnail component's data to a WCF service i receive a photo with white background:[code]
View 2 Replies
Apr 10, 2009
I've designed a Flash site in CS3 using Action Script 2.0 that has a main flash movie sorta floating in space over a gradient background. I want the gradient background to re-size with the browser, so I thought that the easiest way to do this would be to delete the gradient background in Flash and instead recreate the background in Dreamweaver using the repeat background option and then make the Flash movie's background transparent. (I hope I'm making some amount of sense here).
I've found a few tutorials on how to do this, but so far I just get a white background instead of transparent. I've tried choosing "Transparent - Windowless" under Window Mode on the HTML tab in Publish Settings. And I've tried selecting the movie from within DW and clicking the parameter button and adding a "wmode" parameter with "transparent" as its value.
View 2 Replies
Dec 10, 2008
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
View 1 Replies
Aug 2, 2010
When I click on the next button that loads a another swf the background from the previous swf flicks on the screen.click on the attached link URL..[code]I would like the "current_ plan.swf" to load so that the over lays (no so much on the views but more in the LIVING MASTER.We are creating this for both touchscreen and web(the link is the working touchscreen version hence the files being large).[code]
View 7 Replies
Nov 19, 2010
I have converted a large background image (much larger than the stage) into a Movie Clip. I did this so I can make it scroll as the player traverses to the edge of the scene.This appears to make the player free to roam the entire background image.I have a tree symbol with a class attached to it that blocks player movement.Here is my problem:
When I drag and drop instances of the tree symbol onto the background, the trees are stationary and do not scroll with the background.I do not want to have to implement code to make the trees scroll when the background does.I was wondering if there was a way to simply attach the trees to the background so that if the background moves, the trees move with it and appear to be part of the background as if they were drawn into it.It is convenient for me to be able to drag and drop as many trees as i need to block certain routes on the background from the player.I tried writing code to make the trees move but it was only working for the very last tree that I added to the scene.
View 8 Replies
May 15, 2009
I really don't know much about flash or swf files but in updating my portfolio I came across Polaroid gallery. I have managed to update the background jpeg with my own picture and remove the fade effect. However in the original program the background was tileable so when seen in a full screen browser looked fine. As my picture is not tileable I would like to know if it is possible to scale the background or the whole swf object without tiling the background.
View 1 Replies
May 26, 2009
create an effect that loads a fullscreen background image that changes according to the navigation selection. The background will be replaced everytime the navigation is activated
View 1 Replies
Dec 12, 2009
I am developing a website in flex. And in that, i am trying to set the background image of my application. like this: parentApplication.setStyle("backgroundImage", data.image_src);
From a different location.
My issue is that, the images that i have are small and hence they are being stretched when used as background images. I want to avoid that from happening. How can i do it?
View 1 Replies
Mar 7, 2011
was wondering if anyone could assist me with some actionscript. I am working on a project similar to this (thehideout.org.uk/refuge/) and making the background image move around as if it the scene is a POV.
View 1 Replies
Aug 4, 2009
Iv got a background image 3 times the length of my stage.. what im trying to do is create a scroller so when you press a right button or a left button, it scrolls to the left third or the right third of the image.
[Code]...
View 0 Replies
Jan 12, 2010
I am using this following code to display images using xml.Everything is working fine for me but i have to add background image or border to the displayed image using function BitmapFileMaterial.
using BitmapData or Bitmap Class but same functionality.
[Code]....
View 0 Replies
Jul 10, 2011
I am making a new flash website and i stack on the as3 part.My site have a menu like all the site do.Now on the site load there is a background picture.When you press one of the menu buttons, the background image will change to this button specified image.But all that in an animation of fade in and out.My problem that i have everything but i cant know which image was before it changes to the buttons specified one. It maybe require as3 which i dont know.I cant upload here my work. its personal.But i ask you the professionals, please make a short fla file which will have the code and animations i need.(if you cant understand me)Please, make a fla file, which contains random 3 images.At the start it will have main background and a menu on it(just text-for fast and short work)The menu is 3 text ine(main,about,contact)now, make that when you press about(for example) it will change the main image(background) to the image of the about page.
View 2 Replies
Dec 11, 2007
I have a series of background MCs, all different coloured gradients (pretty!), and a series of corresponding buttons elsewhere on the stage. On a press of each button I would like the corresponding background MC to come to the top of the pile of backgrounds, then fade in above the previous background. The background that was previously on top, needs to stay next-to-top.If the corresponding background is already at the top of the pile, then nothing needs to happen.
At the moment I am using swapDepths(1) which brings the target to the top no problem, but it may also send the previous top layer MC way down the pile.This is what I'm doing at the moment:
on (release) {
if (_root.BG.colour2.getDepth()<=0) {
_root.BG.colour2._alpha = 0;[code].....
View 14 Replies
May 14, 2009
I'm told that the following chunk of script will center the stage on resize, but not knowing much of anything about actionscript,
myListener = new Object(); myListener .onResize = function () { ... } Stage.addListener( myListener ); // later ... Stage.removeListener( myListener );
View 5 Replies
May 28, 2009
Set a .swf as a background image. I want it to still move.
View 3 Replies
Nov 17, 2009
I want to convert a .avi into a flash movie and import it into Dreamweaver as a background image so that it will expand in all different resolutions 1. what do I need to consider when building this in Flash (using MX 04)?2. What should my html look like in order to call this file as a background swf (and poss css file)?
View 7 Replies
Jul 9, 2010
I'm using Flash Builder 4 to create an application. I need to set an background image for the app. I've pulled through the data from XML. I am using an <mx:Image> for the background-image. But I need elements to then be added inside it. How do I achieve this? I considered using Layers, but dont know how you achieve this.
View 3 Replies
Apr 8, 2011
I have looked around for about two hours now and I can't seem to find the command to convert this little piece of code to change the ball colour to a bitmap:
on(release){
myColor = new Color(_root.ball_mc);
myColor.setRGB(0xFF0000);
}
View 2 Replies
Jul 10, 2011
I have written a custom skin in Flex 4.5, which shows a custom image. I want this to my background image, so how can I set this skin to the application container?
View 3 Replies
Sep 16, 2005
I have come to a solution where I use an invisible button (covering the whole movie) where the action takes place in. Problem is, I can't put buttons on it because the invisible button blockes them.Does anyone know an other solution of making my background image scroll like the example site?
View 4 Replies