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?
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.
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.
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!
I'm building an XML driven video player that will allow users to customize a wide variety of layout/visual features for the player, and one of the important features is letting them switch between a regular background image, and a tiled background. I've been playing around with various methods for tiling using the Bitmap class, and its been working fine, as long as I load the image from the library. However, when I try to load the image dynamically (i.e. through XML), it doesn't jibe. Here's the code for the tile:
function tile() { var tile:BitmapData = BitmapData.loadBitmap("linkageIDForBitmap"); this.beginBitmapFill(tile); this.lineTo(Stage.width, 0);
[code]....
Again, if I write a variable which references the xml node, and use that variable in the loadBitmap function, it doesn't work. I'm assuming this is because the dynamically loaded tile doesn't have a linkage ID attached? Not sure how to do that... My other thought is to simply load the tile into a movieclip (as I do with all the other content), and then convert the movieclip to a bitmap, then proceed as normal with the code above. I've searched the boards for a method to do this, but have come up empty.
I've seen the Full Browser Flash video which has tiling in the background. Can somebody supply code, and possibly an example of how to have one scalable image as the background without distortion whilst the foreground flash remains the same size. the site below is exactly what i'm after with the menu fixed to the left.
[URL]
Is it also possible to have the menu bar a fixed percentage from the top of the browser?e.
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?
I was trying to work into my 100% width and height backgrounds i have been putting into flash (code at bottom).The question I have is, the duplicate background tutorial only works for the defined space of the flash stage, ie: if the stage is 900x600 - the background will duplicate for that, but anything beyond is just the stage color.How can I make the background duplicate across the entire browser window.
Here is the code being used for my 100% w/h backgrounds (not tiled):
Code: // Control stage size without content resize. Stage.scaleMode = "noScale"; _root.bgFull_mc._width = Stage.width; _root.bgFull_mc._height = Stage.height;
I have a weird issue that only seems to show itself on IE 8 so far. I have a semi transparent png tiling accross some divs on my site. All works ok. However as soon as i put any flash content on any div on the page, doesn't matter where, IE stops tiling the png and stretches it instead. It only occurs with flash and on ie8.
So I need to tile a number of images to simulate a wall full of framed pictures. The images will be sized randomly onLoad and need to be spaced evenly. Here's is the effect I'm wanting to achieve:
how to pull this off? They'll load one at a time and probably starting in the center of the stage a building outward.
I am working on an as3 slideshow class and I came across a blog post that gave me the idea to use better transitions than the sliding out and fading I originally intended to use. [URL]The source for that class is available and it is a good starting point but I wanted to check and see if anyone know of similar projects that had more effects. Right now I just have the random explode effect from the above link and before I start working on effects I wanted to see what was out there.
So I'm creating a classic side-scroller using the Pushbutton Engine [url] and I want the 'world' bits to be any given size, of course, and the repeat/tile my art assets. I've got the following render setup code as a start:
[Code]...
However, that just takes brick.png and stretches/shrinks it to fill the size of the object. Lame. :) I've spent a bunch of time trying to google how to do this, but I'm perhaps not getting the right terms or some such as I haven't come up with anything. Mostly articles on building tile-based games with PBE. While I'm sure I can hack together something that'll do the trick, I want to make sure I'm doing it the right way such that I get the best performance and what not. where I should be looking to pull of this standard effect?
I've attempting to create a tiling image that fills the stage using AS3. Its all well and good until the stage is resized - once this happens things being to look very poor. At first I thought it was a smoothing issue but now I realise that the same image is being drawn over itself again and again. As I want to eventually have this over video, I need the transparency. If I use an opaque image, obviously you cant see the problem.
I've tried adding a condition to remove the child that is being drawn to in several ways but this dosen't seem to work. You can see these commented out in the code below.
[URL]
Code: import flash.display.Bitmap; import flash.display.BitmapData; var _stageHeight = (stage.stageHeight);
i have to sanp images into tile or grid form. but my images are in 4 different sizes in height/width. i have to place all images in side by side like tiling.
am using bitmapdata to make me a nice lil' background image, and it works great...until it's resized. Whats happening is it's creating a new bgHolder clip on the resize, NOT resizing the current empty clip "bgHolder"Here's the code(taken from various posts)
I was hoping to get a little guidance from the AS pro's. I have a movieClip that is 500x500 in one of my movies that I would like to add a tiled background to. This tile will be very simple something like 4x4. I have been reading up on the BitmapData class and figured this would be the best way to get this done and use up the smallest file size.But I am not 100% understand if that is the best solution. Anyone have any thoughts? After reading up on full page flash movies I figured that method should be able to be applied to individual movieClips as well.
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)?
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]
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.
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
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]
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.
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.
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
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].....
I'm making a Flash Trivia Game in AS2 for my school US History project, and I need to make 50 or 100 questions, 2 options each, one correct answer, one incorrect answer.I made 100 blank keyframes, is there anyway to add a background to all of these? And what's the easiest way to make two options, one correct, moving you on to the next question and giving you one point, one incorrect, taking away a point, playing a noise, and not moving on to the next question?
I received an swf movie of a rotating brick with a blue background. I converted to fla but the blue bg and the brick are considered a single object. Is there a way to mask the bg without having to export it as single frames and masking in ps?
Im looking to add a bit of nice movement to a simple black background.has anyone ever since or used a PS3 style looping menu background or something similar, it has to be something subtle....
i embedded a swf into a page recently. I got it outsourced as i dont know my flash but the guy sent it to me like this.[code]however, the logo was then black in the background. which was really annoying, cause i'd asked for a transparent background and now i had a black one which didnt match the gradient of the header of the page.so i went back to the logo designer and i asked, he didnt know how to make the background transparent with this new code i've used. So, i asked him to make a new one with the gradient in the background. he did, and there are still black bits to the side of the logo..so i thought best to come to a knowledgeable place and ask - how do i set the background for this embedded swf as transparent?URL...