Professional :: Maximum Height And Width For Bitmap Files In Flash?
Sep 21, 2010I'm trying to import a huge game race track 8000 x 7000, and I'm having problems.
View 7 RepliesI'm trying to import a huge game race track 8000 x 7000, and I'm having problems.
View 7 RepliesWhat is the maximum height and width of a sprite.
View 7 RepliesHow can I actionscript the maximum height (and width) of a movieclip??
View 2 RepliesUsing Flex 4 AIR, what is the maximum widtha and height I can set for line and the bordercontainer?
bc:borderContainer = new borderContainer();
bc.width = 80000;
bc.height = 80000;
I am trying to build my portfolio which is coming along fine.
I do however have a problem.. I want the site (SWF) to scale according to browser size.But, I want to implement a maximum and minimum width and height.
I dont want it to scale so that it is bigger than my stage size (1365px x 845px), and I dont want it to scale so that it can be smaller than for instance (800px x 600x). And I also want the SWF to be centered at all times.
If you need to see a working example you can see what I am trying to achieve on this site: [url]....Take a look at the slideshow when you enter the site, and try resizing your browser window. You'll notice that the pictures will shrink, but won't scale above their obvious 100% size. I tried looking at the page source, but I didnt understand much. Looks like they have used Actionscript for the resizing/aligning.
I am loading images of different size and then images are scaled and border is drawn for each image as shown in below link,[URL]... I want that border of images to be of the same width and height and for that I need to find out the max width and height size image before loading all the images. Is there any way that I can know the width and height of an image before loading it completely?
View 1 RepliesI have a 50x50 fixed rectangle in the center of the stage. I am using this rectangle as a "hit area" to copy pixels of a bitmap that is draged by the user to line up an area of the image he/she would like to crop.I have preview of the hit area displayed while the bm is being dragged which works well. However, once the bitmap is scaled using the slider component the preview area no longer reflects what is in the hit area.
Code below:
function mouseDownHandler(e:MouseEvent):void
{
// Contraint #8 - Define drag bounds[code].....
I'm doing an xml image gallery. The bitmaps are loaded using a loader and loadClip. What's the easiest way to read the bitmap width and height? Is it worth trying BitmapData? PS I'm tracing the _width and _height of the container mc on onLoadComplete, but it's giving me 0, 0.
View 3 RepliesI am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage.
My code is:
Code:
my_loader.x = (stage.stageWidth - my_loader.width)/2;
my_loader.y = (stage.stageHeight - my_loader.height)/2;
But this seems to just relate to the width/height of the mc that my_loader is nested in...
I have tried the following and had no luck:
stage.stage.stageWidth
root.stage.stageWidth
parent.stage.stageWidth
MovieClip(root).stage.stageWidth
I am trying to tile a 5x5 bitmap 160 times in height which will come to 800 and 120 in width which is 600.Here is the code that doesn't work:
gridx=5;
for (var i=0;i < 160;i++)
{
background.duplicateMovieClip("background"+i,i);
mc=this["background"+i];
[code]....
Project : Game in Flex builder 4 (Actionscript Project) Language : Actionscript 3
This code
trace ("--before-- "+sprite.width + "," + sprite.height);
this.sprite.rotation = obj.rotation;
trace ("--after-- "+sprite.width + "," + sprite.height);
[Code].....
Obviously there are 9 instances. So 18 lines output. note that the width and height getting swapped randomly for some only.
I am looking at the SimpleButton entirely wrong. Here's what I'm doing (inside of a MovieClip):
[Code]...
the close_btn.width and height remain 0. Am I supposed to just rely on the DisplayObject members of the SimpleButton completely and ignore width/height/x/y or what?
i want to load external images of different height and width into same height and width.
View 3 Repliesi want to load external images of different height and width into same height and width.
View 0 RepliesWhen I publish my FLV video using Flash CS3 and the "SkinUnderAll" option...the player controls are not visible unless I change the height & width in the html file Flash created.But, Flash shows the height & width 3-times in the html.
Question-1: Why 3-times? What does each of the 3 Height & Width references do?
Question-2: How should I modify the code to be able to see the entire video and the player controls?
It seems if I change all 3 everything just gets bigger and bigger.
1 - I import it into Flash CS3 on a PC w/XP Pro using... File | Import | Video take all the defaults and choose "Skin Under All" as the player option.
2 - In "Properties" panel at bottom of screen Flash shows the video as 640x480
3 - I then click File | Publish to publish the video. Flash creates all my files for me.
MyVideo.fla
MyVideo.flv
MyVideo.html
MyVideo.swf
SkinUnderAll.swf
AC_RunActiveContent.js
4 - I then put the folder with the files on my website.
5 - The video plays but the player controls are not visible.
6 - I see the Height & Width referenced 3 times in the html file Flash created for me (and none are 640x480, they are 550x400 !)
7 - I try changing the 550x400 to 640x480 in all three places... no good. Even at 1000x1000 the entire player is not visible. Everything just gets larger.
What are each of the 3 references to Height and Width in the html file Flash Creates and which should I change to simply show all the player controls?
I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?
View 1 RepliesWhat are the maximum dimensions of a bitmap allowed to be loaded and displayed in Flash?
View 1 RepliesI'm writing jsfl script where I'm setting an element width and height. When I go to run the script, my element's width and height are off by what I set it to. For example, I set the width and height to 800, the results I get for width and height are 799.4, 799.0 respectively. I'm not understanding why my element's width and height aren't exactly what I typed in?Btw, I can go into the "size and position" property UI and set them to 800 x 800 and those values stick. It's only when I set the width and height via the element.width and element.height that my values change on me.
View 4 RepliesI have a SWF that I would like to use in an XHTML 1.0 Strict document.My need is that the flash must:- Be 100% width- Grow / shrink proportionally in height (depending on width)- The flash may not be cropped or distorted- I must be able to to put a div just before the flash- I must be able to place a div right after the flash. The flash should behave just as if you pasted below image in an HTML file:[code].....
View 12 Repliesi have a mc which seize is height = 150 and width = 2 (like a line). i have a script which rotate this line and increases its length. this works, however i dont know how to keep the width so that it wil remain 2. this is the scrip in as3 :
function rotateMoveClip_u(e:Event)
{
var target=(center.x);
[Code].....
I am trying to increase a swf file height and width so it can fit better in my screen. I don't want to rework on everything again in my fla file because it's big hassle. (changing background size makes every symbol off). Are there anyway to do it?
View 3 RepliesI have a small issue in ActionScript 2.0. I want to know the stage width and height for external SWF file. I used the following code:
var loader:MovieClip = _root.createEmptyMovieClip('loader', 1);var obj:Object = new Object();var mcl:MovieClipLoader = new MovieClipLoader();mcl.loadClip("external.swf",loader);mcl.addListener(obj);
obj.onLoadInit = function(mc){ trace(mc._width); trace(mc._height);};
It's showing the whole animation's width and height but I want only stage width & height?
on Roll_over I am increasing uiLoader width and Height for Zoomed versionso when I roll Over first loader , it appears behind 2nd loader ,similarly when I rollover 2nd loader , it appears behind 3rd loader
[Code]...
How can i actionscript the maximum height (and width) of a movieclip?
View 2 RepliesI would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?
View 3 RepliesI am making my second game, and it's going to be a platformer. Unfortunately, I have no idea how to make the character (named hero) jump only to a certain height, and then fall back down. someone, please post a way to do this!
View 1 RepliesI have another math question. I think this is fairly basic stuff but I'm so bad at math I can't wrap my head around it. What I would like to have is a formula that allows me to create an upwards parabola, using a given X and a maximum height. The maximum height is always the same as the positive X (so 3 if X = 3 or -3). The parabola must always end or begin at 0. Am I making sense at all?
View 1 RepliesBasically I have this portfolio website with 6 tabs. I am trying to make the slides glide from left to right.each slide is a movie clip and i have put all six movie clips inside one long movie clip with the instants name of content_mc.The problem is my long move clip is way too long in width I have offset the last slide about 5180px of the 0 position.When I test it and click on the tabs nothing happens and I get this error in the output panel"TypeError: Error #1009: Cannot access a property or method of a null object reference."Here is my action script code.
stop();
//Animate in the profile_mc from bottom to top using the Tween class..//
import fl.transitions.Tween;
[code].....
I am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
View 4 RepliesI am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
View 1 Replies