ActionScript 2.0 :: Fullscreen Gallery & Bitmap Smoothing?
Dec 1, 2008
I need fullscreen gallery and the bitmap smoothing thing. I tried to combine the gallery code and the bitmap code I found in this thread. Well, it's a xml based fullscreen gallery and it works fine but without smoothing . okay, i hope anybody can help - here is an extract of the gallery code:
[Code]...
View 2 Replies
Similar Posts:
May 11, 2010
i have made a bitmap over a menu and the only problem is that I made a scale and a rotation over that bitmap and it gets distort and I don't know why, because I use this:
ActionScript Code:
attachBitmap(b, 2, "always", true);
when i attach the bitmap.
View 9 Replies
Oct 18, 2010
I'm doing a simple bkend admin using php for the client to upload images to be displayed on their flash website. ideally if they upload at the correct size, no problem, but sometimes they don't. So my problem comes in when the uploaded images are very big. When they are scaled down, the smoothing makes no difference at all.
I was wondering if there is a work around?
Code:
import flash.display.*;
loadMcListener.onLoadinit = function(){
var bitmap = new BitmapData(mc._width,mc._height,true,0x000000);
[Code].....
View 1 Replies
Aug 3, 2010
I would like to use the smoothing function for my code here below.This is just a slideshow gallery that resize the photos at 100% full page with scaling proportions.=
2 - Another problem issue: this has a little movement effect that moves the photo when the mouse moves. To do this i scaled the images at 110% but it looks a bit streched here.
Code:
// import tweener
import caurina.transitions.Tweener;
import flash.events.Event;[code]....
View 3 Replies
Nov 8, 2009
Trying to set the smoothing of a dynamically loaded, through XML, JPEG set to true using AS2. I've seen an example of that would do this with this code:
createEmptyMovieClip("myMC",getNextHighestDepth()) ;
loadBitmapSmoothed("mypic.jpg",myMC);
In my code I'm loading a series of products from an XML file. Each bit of information for each product gets loaded into a seprate array. I have a 'zoomy box' image, which loads an image, but at 200%, which I want to smooth...
The code:
nZoompic1[i] = (childs.childNodes[EEE].childNodes[i].childNodes[18].firstChild.nodeValue);
What the syntax would be for getting it to work?
View 4 Replies
Jan 1, 2011
Can I control bitmap smoothing levels, or is it strictly on and off (true, false)?
View 1 Replies
Nov 9, 2011
I'm using the regular 3D API of flash player 10 and i'm rotating on the Y axis a sprite which contains my bitmap. Although the bitmap.smoothing property is set to true, the bitmap is far from smooth.
View 8 Replies
Jun 16, 2011
I'm creating an aerial view style game with the flash player 10 built in 3D, but Some of my sprites are very small, like 32x32 pixels, and when they are placed into the 3D world they become very blurry.
Is there a way to prevent flash player from smoothing the objects?
View 0 Replies
Dec 2, 2009
I set up this sample movie clip in the hopes to figure out a problem I'm having:[code]In the above code, I can add the contents of myImageLoader to myMovieClip with no issues and it resizes as expected (and consequently artifacts appear). With the final two lines of code, apparently myBitmap is not being loaded with the contents of myImageLoader.content which will cause the final line to fail with the following error:Code:TypeError: Error #1009: Cannot access a property or method of a null object reference.at loadImageTest_fla::Main Timeline/frame1()I understand the error, I just don't get why the contents are not being loaded into the bitmap object.
View 1 Replies
Apr 20, 2010
I'm having a helluva time trying to figure out the syntax for smoothing of dynamically loaded png's. It's such an easy function for as3, but seems very complicated in as2.
Actionscript Code:
import mx.utils.Delegate;import mx.transitions.Tween;import mx.transitions.easing.*;var numOfItems:Number;var radiusX:Number = 100;var radiusY:Number = 40;var centerX:Number = Stage.width / 4;var centerY:Number = Stage.height / 2;var speed:Number = .001;var perspective:Number = 3;var home:MovieClip = this;theText._alpha = 0;var tooltip:MovieClip =
[code]....
View 5 Replies
Feb 7, 2012
What I am doing now is loading a .png image with a Loader object. After loading the file I cast the loaderInfo's content to a bitmap and set the smoothing value to true. This works without a problem until I reach a ScaleX and ScaleY value less than 0.5.
For example, if I have a 1000x1000 object, scaling it down to 200x200 causes the bitmap smoothing to no longer work.[code]...
View 1 Replies
Feb 19, 2009
I have searched several threads, and no answer has been found to apply a bitmap smoothing to an image already inserted inside a movie clip on stage (not dynamically loaded). Any suggestions on what to do to apply smoothing to an image inside a clip? Trying to come up with an answer as I am getting a funny fuzz around a logo that I'd like to see disappear. It appears clean and crisp within the png file, but not in the compiled swf.
View 4 Replies
Dec 9, 2003
getting a bitmap to apply smoothing properly after being scaled very small.What I am doing now is loading a .png image with a Loader object. After loading the file I cast the loaderInfo's content to a bitmap and set the smoothing value to true. This works without a problem until I reach a ScaleX and ScaleY value less than 0.5.
For example, if I have a 1000x1000 object, scaling it down to 200x200 causes the bitmap smoothing to no longer work.I can reproduce the problem using all of the following Sizing methods:
Change the scaleX and scaleY properties on the bitmap. Directly change the height and width properties of the bitmap. Add the bitmap as a child of another sprite and change the scaleX and scaleY properties of the sprite. Add the bitmap as a child of another sprite and change the height and width properties of the sprite. Creating a new BitmapData object with a matrix scale and then drawing the original BitmapData onto it.I've also tried some other workarounds that I found when searching, such as:setting the scaleX of the image to 1.001 or 0.999 forcing the height and width of the Bitmap object to be even numbers.
Below is some sample code for reproducing the problem. (I am running this locally so I have a copy of testimage.png in my bin-debug folder)
public class MainObj
{
public var comp:UIComponent;
public function MainObj()
[code]....
View 2 Replies
Nov 6, 2009
i have a question and a unfortunate problem to report. First my question is how do I apply smoothing to a rotating bitmap asset that is in the flash timeline, (i.e.: not dynamically loaded), I don't like it all jaggy like that. Is there a way I can apply bitmap smoothing to a movieclip with a bitmap in it without going through all the rigamarole of loading the asset eternally? Bonus points for something super simple like MovieClip.forceSmoothing (I need this in AS3).
And unfortunate issue: I have a problem in Papervision. I think it might be a bug, where a plane object with an externally loaded BitmapAssetMaterial makes the computer chug like mad when the plane is viewed edge on or very close to edge on (I am using transparent PNGs). They display fine otherwise.
[Code]...
View 0 Replies
Oct 1, 2007
I made a xml gallery using kirupa's xml gallery tutorial and then i added thumbnails.It all works fine.Although i managed to have the jpg's loaded fullscreen i dont know how to use smoothing for the resize of the movieclip container. I have a code that resizes the movieclip to the dimensions of the stage onresize function.I'm trying to put in the code an attachBitmap function so i can have it with smoothing to true. But i haven't managed how yet.[code]
View 2 Replies
Aug 5, 2010
I have just encountered a very strange problem regarding the bitmaps (.png files) used. When I view the swf movie - everything is fine until I make the browser much larger / fullscreen. Then a few of the bitmaps in the navigation menu move out of place.URL...
View 8 Replies
Jun 19, 2009
I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off. In the source files you will see a few of my attempts commented off.
View 6 Replies
Oct 30, 2009
Im working on a galleryviewer right now. I have a sprite that contains a thumbnail and has the exact size of the thumbnail. When you click on it the thumbnail fades away and the sprite grows to the size of the next image. Now the sprite grows to the right size of the bitmap. but when I add the bitmap it stretched way too big. Somehow when the sprite is resized the bitmap is too? even though it hasn't been added yet? I dont get it..
ActionScript Code:
internal function openGallery():void {
this.cacheAsBitmap=false;
var newWidth:int=500;
var newHeight:int=500;
var newXPos:int=_mainStage.stageWidth/2-newWidth/2;
[Code] .....
ImageTransformer.resizeImage() - returns a Bitmap that has been resized to fit within the dimensions.
View 3 Replies
Jan 3, 2011
i've got a main home page in flash coded in AS2 that first loads up 8 thumbnails when you click on one it goes into fullscreen mode and loads images dynamically side by side that you can pan through with your mouse.the problem is is that i am using the setBackground(); and it is not scaling the Loader components inside my movie clip correctly initially, it is scaling them down yet when i resize the window it scales them perfectly.Here is my AS to scale:
ActionScript Code:
// this tells Flash NOT to allow the assets to be scaled
Stage.scaleMode = "noScale";
[code].....
View 9 Replies
Apr 13, 2009
I like to make a fullscreen desktop application, with an FLV, using the FLV Playback component. However, I�d like there to be a Fullscreen button on the playback component, which will allow the user to toggle the video fullscreen.I cant, for the life of me, figure out how to do this with various settings�it should be easy! This is what I have--is there a better way to do things (without a custom movie player)? My inital settings are as follows:
Code:
stage.displayState = StageDisplayState.FULL_SCREEN;
theMovie.fullScreenTakeOver = false;
Then I have a function which should work--but my button won't appear in fullscreen--Can I apply this function to the built-in fullscreen button?:
Code:
function handleClick(event:MouseEvent):void
{
if ( !theMovie.fullScreenTakeOver )[code]....
View 9 Replies
Apr 19, 2009
I need a fullscreen scroll bar on my fullscreen flash site , i need it to function similar to this URL...
View 1 Replies
Jul 14, 2010
I have a swf inside a html page. If I open it with IE or FF and put it into full screen I can exit full screen with the ESC button.Now if i try this with my WinForms app and WebBrowser (or ShockWave Flash Object) it's not working??
View 3 Replies
Oct 19, 2006
What I've done is created a "fullscreen SWF" by using ActionScript to stretch a movie clip (yellow rectangle) in the background to fill the whole browser frame. The navigation is positioned in the upper left using ActionScript also; when the user resizes the window, positions are adjusted so the nav always stays in the upper left. (Adapting the technique from http:[url]....
External SWFs are loaded from an XML file into a blank movie clip on a layer that is between the yellow background and the navigation (adapting the kirupa XML Photo Gallery). Here's my problem: I want to be able to create full screen backgrounds for these external SWFs so when they are loaded into the main SWF they cover up all the of yellow background of the main clip. Also if the user resizes the window, I hope like the main SWF, the background on the external SWF can also resize to match.
If you press next twice to get to item three for example, I want to be able to stretch that orange box to fill the entire background. You'll notice if you resize the window on the third item, the orangle rectangle will adjust, it's just not correct.
View 2 Replies
Feb 3, 2009
I'm cutting my teeth in actionscript 3 on a game that has a character running through a world. So, I have set up my Hit Testing by using the bitmap data hit test method, since I figured my world is going to be destructible - it'd be nice to update the level and then redraw it and have the character interact with the new change. (That works beautifully) I am however; a bit confused as to how I have my hit Testing set up. I've been messing around with it, and it works for now - but I'm not sure why.. currently, I have a character set up by using a class I built and using a series of animations I created. So, this character has a walking and falling animation, etc. This is a movie clip.
Then there's a bitmap 'emptyBitmap' with bitmap data created - however; I never really added this as a child to the character. This is sized to the dimensions of my character. My level is created as a movielip, then it's drawn to a bitmap - when the level movieclip is changed, the bitmap redraws, and that's how this updates.
[Code]....
View 1 Replies
Aug 20, 2009
I know the topic of "duplicating" movieclips is a hot issue with the new virtual machine. Luckily, I understand the implications. I only am [currently] interested in duplicating a Bitmap. See, I load an image from an URL using 'flash.display.Loader.load', which is a non-blocking operation in Flash Player.However,I may use multiple copies of the loaded image (which is reported to be a Bitmap, naturally) in the display list at the same time.Hence, I naturally do not want to load the image from an URL every time, because I don't want to wait for a non-blocking call to complete. Nor do I need to - I mean one copy is already loaded, so it should be possible to just "duplicate" it, right?
My idea is to do use the bitmapData property of a Bitmap and pass it to the constructor of a new Bitmap object. I have not tried the following in action, but I want to hear whether any of you did and if the following would not work, what would:
Code:
var original_bitmap: Bitmap;
var copy_of_original_bitmap: Bitmap = new Bitmap(original_bitmap.bitmapData);
LiveDocs mention that the BitmapData being passed to a Bitmap constructor is "being referenced", which to me might suggest it cannot be used twice? There is also the BitmapData::clone() method, which I am not sure is applicable here or not.I know this is a lot of talk instead of just trying this out, but I test so much Flash Player code daily just to see "what works" (which should be documented instead by Adobe),
View 4 Replies
Feb 22, 2011
If I have a BitmapData that's already been drawn onto a Sprite. Is there a way to redraw the BitmapData onto a Sprites Graphics object without having to invoke beginBitmapFill and passing in the same BitmapData?
View 1 Replies
Dec 29, 2010
I'm working on a game, and to keep performance good, instead of addChild'ing 50 new sprites to the stage every second, I decided to have each player draw to their own bitmap, and then to the 'master' bitmap. This introduces an issue though: the second player would override all data the first player has put into to bitmap...My basic debugging proof of concept:
Code:
// bitmap test
import flash.display.Bitmap;
import flash.display.Bitmap;[code]......
View 1 Replies
May 9, 2011
I have a bitmap which has several frames (packed along the horizontal axis). In order to render them I copy it to the backbuffer (larger bitmap) as follows:
Actionscript Code:
public override function copyToBackBuffer(db:BitmapData):void{ if (active) var drawRect:Rectangle = new Rectangle((currentFrame-1) * frameWidth, 0, frameWidth,
[code].....
View 5 Replies
Feb 17, 2012
In pure AS3, I have a pixelbender and a large bitmap. The pixelbender is configurable with a distance parameter to affect only a small area of the bitmap. The problem is that the pixelbender is executing over the whole bitmap. What would be the best way to update only the effected region of the bitmap? Given this config:
[Code]...
View 1 Replies
Oct 8, 2006
Is there a way to write a bitmap font right into the bitmap being desplayed? Mabey better worded: myBitmap.draw(image, t) draws a picture is there a way to draw text? I'm stuck even if its just a work around in some way I would like to know... (the current work around i have in my head is writing it in a movieclip turning that into bitmap data and drawing it... esentially creating a prototype answering my question... but a built in way would be easier probably).
View 2 Replies