Actionscript :: Flex - Source Size Vs. Compile Size?
Oct 15, 2011
Could you explain why a Flash Builder source folder - no larger than 2 MB - compiles into a SWF exceeding 15 MB with debugging turned off (exported release build)?
There is only 1 embedded image at about 93k - no other images. The application is not that complicated, basically calls are made to a MySQL db to display information, as well as store information. I have used drop shadows and borders, but all standard to Flash Builder. Some custom classes and one custom skin.
[Code]...
View 3 Replies
Similar Posts:
Apr 30, 2010
Is it possible in Flex 4's VideoPlayer control (spark.components.VideoPlayer) to detect some attributes of the source video?
In my case, it's a local file. I would need to detect the original width and height of the input source video (an h264 f4v).
View 2 Replies
Mar 3, 2011
I want to create a panel (or any other component) inside a component that has a 5 pixel border on all sides, but scales fully when the window is resized. I know I can set width to "100%" to make it resize, but that gives me no borders. If I put it to "95%",I have borders, but they scale annoyingly. Also, that only works for borders on the right or lower bounds, and not to the left or upper sides.Is there a convenient way to do this without having to write tons of resize-code (in which case I will not bother and just accept bad rescale behaviour, as it is for a private pet project).
EDIT: I know that I can just overwrite the display handling and set the positions manually every frame. I wondered if there is a cheap way to do it in the mxml-structure, along these lines:
<mx:Panel>
width="100%" height="100%"
</mx:Panel>
Coming from C++ and Java, I am intrigued by the option of setting something to "95%" and let the library work out the details, instead of having to write many lines of code, just so my text-area always keeps a 5 pixel distance from the border, but scales with window width.If there is no easier way to do it than figuring out pixel sizes by hand and setting the coordinates.
View 1 Replies
Aug 10, 2010
I am trying to change my radiobutton size and label size in pure as3...
searchRB = new RadioButton();
searchRB.name = "search";
searchRB.group = rbg;
[Code]....
View 1 Replies
Apr 6, 2011
I have three images and I want change the images size based on the scene size (default size is 1024x768). After each image has completely loaded I call bindableUtils.setter to set width/height when scene size changes but I don't know how to make a pointer or something like that. I'm using a public var img, but it only works with the last complete image.
Here is my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
[code].......
View 2 Replies
Dec 5, 2010
I have code that allows users to upload images, which are of any dimension and file size, and have applied that data to a bytearray and a loader class, which is then displayed and saved to the server. The server has a memory size limit per file of 256k. Everything works well unless the image is too big. How to change the size of that source image so the server will accept it. I've been trying to assign the loader data, or the bytearray, to a Matrix, or a Bitmap, or a BitmapData, figuring one of these can scale the dimensions of the image which will bring down the file size. (To be completely clear: this isn't movieclip.scaleX -- that doesn't affect the size of the source image)
Code:
var _clickMe:ClickMe = new ClickMe();
var _imageLoader:Loader=new Loader();
var bytes:ByteArray=new ByteArray();
var fileRef:FileReference = new FileReference();
var _faceBitmap:Bitmap = new Bitmap();
[Code] .....
View 3 Replies
Nov 22, 2011
Why the same fla source code publish different size of swf file in different computer with same version of adobe flash which is cs4?1 is about 3mb only and the other is about 20mb.The different is too big!What can i do?
View 1 Replies
Feb 9, 2011
According to the answers to this question here, the reason why I'm not seeing errors as I work in Flash Builder is that FB is "optimizing" them out because they aren't referenced at any point in the code execution. Is there an option to force Flash Builder to compile all files regardless of whether they're used in the software?
View 2 Replies
Apr 28, 2010
So ive been asked to build a page for a real state company and the guy told me it should be similar to these [URL] Ive been trying a couple of weeks so far, but i dont seem to find a way to do somthing similar, i mean, i want to have the welcome screen as those two:
- the gradient background
- flash occupies whole screen no matter what size it is
- gradient expands sideways infinately
- no matter what height my explorer window is, gradient is always in the same position relative to top, and if i keep expanding downwards the background keeps last colour of the gradient.
- the brand logo looks as if it had top, left and right anchors, and it also limitates the minimum width of the explorer window
i though of addind a 3000 x 3000px square with the gradient and centering it, but i know there has to be a professional way of achieving that.
View 1 Replies
Jun 8, 2010
I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.I have found this solution [URL].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip.
[Code]...
View 9 Replies
Jun 8, 2010
I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.
I have found this solution [url].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip...
I need it to stay exactly at the same position whatever the size of the movie-clip. [code]...
View 0 Replies
Jun 24, 2011
I made a preloader for my single scene movie and although the preloader is about 16k, when placed into frame 1 of the movie and tested, the frame is shown to have about 256k, which is larger than the movie it's loading. I've gone through all the files and made sure that export in frame 1 is not checked and made sure the publish settings also are set to export in frame 1.
View 5 Replies
Sep 15, 2011
I would like to know how to make flash size (width and height) full size in the browser? the real size of flash is w:955px h:600px I tried to make w:100% and h:100%, it makes pictures pixelate.
View 6 Replies
Aug 22, 2009
I have a list of fonts obtained via Font.enumerateFonts() and I want to display them all as 12 pixels tall. The problem is that I cannot simply set the point size because this can vary in actual pixel size for each font. So basically I want to determine what the correct point size is for a font in order to make it exactly 12 pixels tall. Because I'm doing this with a potentially large list I'm looking for an efficient method to do this.
View 1 Replies
Mar 1, 2010
I have following problem:
Code:
title_txt = new TextInput( );
title_txt.setSize( 100, 20 );
[code]....
View 4 Replies
May 10, 2009
I need to make a button animate from its normal size to a larger size but in a fluid scaled motion. I'm using a png image I cant seem to get it to scale from small to big when animating, and I have inserted a motion tween.
View 3 Replies
Sep 28, 2011
var tfNum_mc:MovieClip = tl.attachMovie("tfID","tfNum_mc_",tl.getNextHighestDepth());
If I'm to assign the above code to a dragDrop action. Is there a way to change the font size of tfNum_mc_.tf? I've tried;
tfNum_mc_.tf.size = 12;//did not work
var format1:TextFormat( = new TextFormat();
format1_fmt.size = 12;
tfNum_mc_.tf.setNewTextFormat(format1);//did not work
View 9 Replies
Oct 19, 2011
I am developing an AS3 application (not a Flex one) using Flash Builder 4.5. My application can set its graphical components automatically according to stageWidth/stageHeight. My problem is with the actual application size. If I do not specify width/height in the SWF meta tag, my application is compiled according to the default (550x400?). If I do specify (for example 800x480), I won't be able to support other resolutions correctly.
Is there a way to tell the compiler to see the application size according to the device's/stage's sizes?
View 1 Replies
Jun 27, 2009
I'm trying to print a movieclip from flash. I'm using the PrintJob pageWidth and pageHeight properties to scale the clip to be as large as possible. Also, I'm trying to center the movieclip on the page.Now, in the standalone player, this works. In a browser however, the margins appear to be zero:[code]But when printing, the margins are there, and mess up the page layout (not centered + cropping).
View 0 Replies
Nov 3, 2009
I want to reduce the size of Swf using the size mentioned in the object tag of html. Same swf file size can be different for different request.
The problem is this if we reduce the size all control in swf reduced according to the change in swf size. But we want the buttons and one more graphics remain same size for any change in size of swf file. How can we make it ..
View 1 Replies
Mar 30, 2010
I'm working on a slideshow where I'm calling in photos from an xml file. How do I tell AS to resize the stage according to photo dimensions? Would I need to list the dimensions in the xml file? If so, how would I pull that into the fla file with AS?
View 6 Replies
May 18, 2011
i try to low my flash project size,make it as low as possible.okise here it the my file size before, 50kb and export file size is 8kb
so i know i need to covert some of my pictures and mp3 size,i have covert 2 mp3 file size ,one is 6mb and droped 3.7 ,other one is 7mb and droped to 4.2. so i save my file again, and my flash project file size droped to 18kb and export file is 10kb ??i dont really understand how flash calculate the size.
View 1 Replies
Aug 7, 2008
Im looking to make the flash file dynamic so that when someone changes the window size the flash file expands with it and some of the items contained move also.
View 3 Replies
Mar 6, 2009
I arrange all my panels side by side by using the design view in flex builder. But when I actually run it. One panel will actually be slightly taller than what I see in flex builder and overlap aother panel. I tried to refresh in design function, but still no change. What should I do?
View 2 Replies
May 9, 2009
No matter WHAT I have tried.... a sniffer, no sniffer, stand alone on a webpage by itself.This slash file which is in a popup window 600x400 will not display 600x400 in firefox. It always is 20-40 px larger in both directions. I can't take it anymore!! What the hell is the matter with firefox his file is 6 years old for gosh sakes. It works and has worked online for years... so whats the Firefox problem all the sudden I am begging !If I can find a good flash designer who knows php, js, and html well, I am going to have future projects. But this little gem is a good promotional tool.... but the problem is......... FIREFOX wont display it right ! And why does firefox INSIST on putting the location bar in html popup windows! The window is the right size 600x400.... the flash is not... even with dimension definitions
View 1 Replies
Feb 11, 2010
I have a MovieClip that is just a 100x100 circle with a stroke but no fill. When I change this to 200x200 using as3 the stroke size doubles. How can I increase the diameter of the circle without changing the stroke size?
View 7 Replies
Jun 15, 2004
I wasn't sure where to put this post. I hope this is the right place.
This is what I want to do:
On screen resolutions up to 800x600, I want my Flash movie to resize to 100% width and height of the browser window. On screen resolutions higher than 800x600, I want the Flash movie to be a fixed size (say 800px x 600px exactly).
View 2 Replies
Jun 15, 2004
I wasn't sure where to put this post. I hope this is the right place.
This is what I want to do: On screen resolutions up to 800x600, I want my Flash movie to resize to 100% width and height of the browser window. On screen resolutions higher than 800x600, I want the Flash movie to be a fixed size (say 800px x 600px exactly).
Is this possible, and if so, how?
View 2 Replies
Sep 2, 2010
Does anyone know how much the size of a swf is impacted by the number of lines of code you associate with it? Obviously the graphical assets take up the most space but how much is added by 100 lines of code?
View 3 Replies
Jun 28, 2009
is possible to dynamically change the dimensions of my flash stage depending on the size of the browser window ?
Very important, I don't want to stretch any element. Just make the background bigger.
View 6 Replies