Scaling Background / Whole SWF Object Without Tiling Background

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


Similar Posts:


ActionScript 2.0 :: Tiling A Background With 100% SWF?

Sep 1, 2005

I am using this code to create a tiled background on a site I'm working on.

tileBG = function () {
tile_width = 128;
tile_height = 128;[code]....

It works great, but because I'm publishing my SWF with noScale at 100% width and height, the background doesnt fill the whole swf, only the size of the actual stage in the FLA. Is there any way I can change this so It will fit accordingly?

View 4 Replies

Flex :: Creating A Parallax On A Tiling Background?

Feb 12, 2010

I am using the blitting technique that jeff from uses for creating tiles. I am trying to paint 2 layers of bitmapdata onto a bitmap. One the first layer is the background ( 1 image). and the second layer is the tiles. In that class below. the updateMap is the method that gets called in the loop to repaint the image.

package com.eapi
{
/**

[code].....

View 2 Replies

ActionScript 2.0 :: Full Screen Tiling Background?

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

ActionScript 3.0 :: Scaling Button Background Without Scaling Text?

Feb 23, 2009

I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.

The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?

View 1 Replies

ActionScript 2.0 :: Scaling Background Pattern?

Jan 30, 2009

I plan to have the swf fill the browser window, and this should work fine for that. When people click on a button, I want the view to "zoom in" by scaling to 200% and setting the x and y coordinates appropriately.How can I do this with the repeating pattern, because the way I have made it is a series of movieclips. Is there a better way to make it so it is just one movieclip I can control the scale and position of?

ActionScript Code:
tileWallpaper = function () {
tileWidth = 200;

[code].....

View 0 Replies

ActionScript 2.0 :: Allowing Background Scaling - Content Not

Jul 15, 2004

I want to use a gradient as background for my flash movie, but I want this background to cover the whole browser's window just like Adopt Design does it (check out Adopt Design). The content of the flash movie should NOT be resizable with the browser's window though. So, I used this code:

[Code]...
in the HTML file I did set the margins to 0pix and the SWF's height and width to 100%. But when I type in the address in the browser to open the page the first time, I see the flash movie in the center with white background around it anyway, and when I resize the browser's window (even if just 1pix) everything is perfect. What's happening? check the problem in a JPG: the site (notice what changes when you resize the window, after opening)[URL]

View 4 Replies

ActionScript 2.0 :: Scaling Background & Fixed Size Foreground?

Feb 3, 2006

Is it possible to have a single jpg (1024x768) scale up & down with the browser window (no matter the aspect ratio, stretched to 100% browser width/height), while keeping the foreground content (most likely added via loadMovie) in a fixed scale and centered on the screen? An example can be seen on the Second Story home page.

View 9 Replies

True-to-aspect - Full-browser Scaling Image Background?

Apr 12, 2010

I have been trying to work out how the full-browser background was done here: [URL] It scales in a very elegant way: it never stretches the image, stays centered on the image and never causes ugly blank areas around the image. For me, it's become deceptively difficult to achieve! :-(

View 1 Replies

Actionscript 2.0 :: Centering And Scaling Background Movie Clip Fullscreen?

Mar 26, 2010

So I am working on a full screen website, and background_mc I want to be centered and scaled 100% to the stage. But I also do not want the image to loose it's proportions. Here is my code so far, it is only seeming to center the movieclip:

Code: Select allfscommand ("fullscreen", true);
Stage.scaleMode = "noScale";
Stage.align = "TL";

[code].....

View 1 Replies

ActionScript 2.0 :: Scaling Background Image To Size Of Browser Window

May 7, 2005

I am trying to scale a background image to the size of the browser window. For some reason it does not fill the entire stage?

Stage.scaleMode = "noScale";
Stage.align = "TL";
background_mc._width =Stage.width
background_mc._height =Stage.height
background_mc.onResize = function() {
background_mc._width = Stage.width
background_mc._height = Stage.height
} Stage.addListener(background_mc);

View 1 Replies

ActionScript 2.0 :: Tiling And Scaling Flash

Jul 1, 2005

I've seen a lot of posts on how to tile an image in a Flash movie that is being scaled to fit the browser. I found some code posted a while back to do it in MX 2004. (below) Can someone tell me what parts of this don't work in Flash MX? (I don't have 2004) Can this be adapted to work in Flash MX, or does someone know another way to achieve the desired result in MX?

[Code]...

View 3 Replies

Javascript :: Video With Transparent Background On Page Above Image Background?

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

Flex :: After Importing A PNG With Transparent Background It Shows Up With White Background

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

CS3 - Make Background Flash Background Transparent In Dreamweaver?

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

ActionScript 3.0 :: Printing A MC With White Background, Not Stage Background?

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

ActionScript 3.0 :: Background Caches And Flashes On New Uploaded SWF As Background

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

Professional :: Background Scrolling - Attach The Trees To The Background?

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

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

Background Controlled By Navigation (Dynamic Background)?

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

ActionScript 2.0 :: Corresponding Background MC Come To The Top Of The Pile Background?

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

IDE :: Transparent An Object Background?

Jan 26, 2010

Is there a way to transparent an object background which is imported into Flash? I have imported an object but it has with blue background color. I want to make its background to transparent.

View 1 Replies

Tutorial On SWF Object With Transparent Background

Oct 12, 2009

[URL] Comes in handy with jpg and gif elements in html.

View 1 Replies

Flex :: Set SWF Object To Background Of Application?

Jan 13, 2011

I am Creating one application in which I want to set one swf as my application background.

I am able to set background but it is only coming with some area only.

It is not coming in the whole application.

It is not scaled in the whole application background.

I am using 9-slice scaling with that background SWF.

View 2 Replies

ActionScript 2.0 :: Swf Object/alternative Content Background?

Jan 23, 2009

I am using the SWFObject and alternative content for a flash navigation. Unfortunately, if the viewer does have Flash installed, a white box appears before the nav appears. I am using a gif as a tiling background image for the nav, therefore the swf has a transparent background. Everything is good except for the second that the white box shows up.here's a bit of CSS and XHTML, but I have looked at this as well as the flash document, but I have been able to resolve the issue, and I'm out of ideas.

View 2 Replies

Flash :: IDE - CS4 - Can't See Any Object On Stage It Just Plane Background

May 26, 2009

don't know what trigger this on my Flash CS4, suddenly i cant see any object on my stage it just plane background and i can change its color, but when i start to draw i can see the initial drawing but when i release the mouse the object is gone, try to test the movie and the object is there. i try to close the program and open again but still the same until i discover that this behavior happen when my publish setting is set to action script 3.0 changing it to 2.0 and the problem goes away. i did not encounter this kind of behavior with as3 before.

View 3 Replies

Flash :: Ensure Background Of Object Matches Page?

Apr 14, 2010

Since there is no way that you can make the flash object transparent, there needs to be some other means by which you can match the background. I thought of maybe creating a ActionScript/Javascript bridge, but I wonder if this is the route to take.

View 3 Replies

Flex :: Image Object White Background Showing?

Aug 3, 2011

I have an Image object that gets resized to the containers size when the image loads.The images that it will load are dynamic in size so after resize I end up with a sliver of the image object's white background showing.How can I make the Image object not have a white background and be transparent.Parts of the PNG's have transparent parts but show up as white due to the white background of the object is it loaded into.

<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" headerHeight="20" >
<mx:Script>
<![CDATA[

[code].....

View 1 Replies

ActionScript 2.0 :: Remove When Object In Random Motion Hovers Over A Specific Area In Background

Jun 26, 2010

I have a random motion script that I need to remove when the object in random motion hovers over a specific area in the background. I need the object to just keep moving in the direction it was going in and not randomly switch directions or bounce.This is my script for the random motion which is on the object:[code]

View 1 Replies

ActionScript 3.0 :: Put In A Background Image And A Table It Automatically Creates 2 Pages Instead Of Just Layering The Object

Feb 20, 2012

Has anybody messed with PurePDF. I'm trying to set up a SWC library for it and I've gotten stuck on the layering part. If you just put in a background image and a table it automatically creates 2 pages instead of just layering the object. They have a function for layering object but the only tutorial out there is showing how to layer rectangle graphics. Here's my code.

if(layerContent[i] == PdfContentByte)
{
trace('Is PdfContentByte');

XTC_cb.add( layerContent[i] );
}

if works up untill that point but it doesn't recognize a table or an embedded image as a PdfContentByte and that's all it will let you add to the layering list.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved