ActionScript 3.0 :: Exported .swf Is Huge?

Oct 20, 2009

I'm freaking a bit here. I've committed to building this branded, simple quiz for a client, and I've got the basic functionality running now in an un-designed shell UI. The app is just a landing state, a string of 15 questions built dynamically using a single state, and a result state. Minimal Actionscript controls these rather sparse three layouts, and my 'release' exported .swf file is 308 KBytes. That's a bigger .swf than this giant, giant scrapbook application I was just working on strictly in Actionscript. And I haven't even added the design assets (including animations) to the project yet! I'd hate to see what size this file will be once the graphics assets are added.

Is this simply a drawback of using Flex? Is there some way to slim down the library of classes that are exported into the .swf or something? The amount of code I've written in this thing is ridiculously small, so I'm now wondering if simply using the Flex framework adds this much dead weight to the .swf file?

View 2 Replies


Similar Posts:


AS3 :: CopyPixels From A Huge BitmapData?

Sep 5, 2010

I need to load a very big image on AS3 (currently sized at 8192x8192). I am aware that it does not fit any of the limits imposed by Flash regarding drawing to screen or creating a BitmapData of that size. I just want to load the image so I can copyPixels() some parts of it here and there.The thing is, I'm loading the .jpg file of that size with no problems. The size is recognized correctly from my Loader object. I load it like this:[code]But I am greeted with the #2015 "Invalid BitmapData" error usually reserved for BitmapDatas that are too big. The error also happens if I try to do a copyPixels(), which is what I need to do.Is there any workaround I can use so I can get data from an image this big on AS3?

View 1 Replies

How To Create A Huge Interactive Map

Dec 16, 2009

I've started learning Flash two weeks ago and I have the challenge of creating an interactive political map with about 4000 cities. Some cities will have more than 600 lines defining their limits which will make this project very demanding on processing.People will be able to zoom in/out, select cities and see information about them.As a starting point, I've begun working with 500 cities. I've imported a vectorial drawing of these cities and converted each one of them to symbols using flash javascript, resulting of course in 500 symbols. I don't know if it was a good way of starting this project but worked for me. Then my problems begun.

First I tried to use the mouse roll over and roll out events to change the (fill) color of cities but the city limits (stroke) changed also.Second I want to add some properties to the cities such as city code, name, etc. but I wasn't able to do that using class inheritance. Would I have to create a different City class for every symbol I would like to extend? This approach looks like a lot of headache and redundant work.

View 4 Replies

ActionScript 3.0 :: Huge Swf In Browser?

Apr 14, 2009

I would like to show the top-left corner in my browser and allow user to use automatic browser scrollbars to navigate it.When I publish my swf file, this is well done in Safari, but not in Firefox.Which are the exact publish settings to make it ? I've tried several settings options, but I can't get what I want on Firefox.

View 1 Replies

ActionScript 3.0 :: Huge Discrepancies In Run Environments

Jun 24, 2009

I'm running the same flash file ([URL]) on my desktop and my laptop. The dekstop's specs are:

[Code]...

Using firefox and Flash Player 10.0.2.54 The weird thing is, the laptop runs much better than the desktop. The actual calculations (update) take about 1.1ms on the laptop, and more like 3.15ms on the desktop. Even the render time on the desktop seems to be longer. When I publish, I need to make sure that EVERYONE can play the game as it's meant to be played. So I need to know if I should be benchmarking off my desktop or my laptop. I'm guessing something is messed up on the desktop, as it really doesn't make sense atm.

View 2 Replies

Flex :: How To Print Huge Reports

Jan 13, 2010

I have a web app that prints reports, most are just one page, or two, so I just create a component that shows the data and print it.

But I have this one report that can have thousands of lines, with a custom format, Flash will slow down with this.

Is it posible to print it without showing the actual data on screen? or is there a component to print reports with custom format?

View 2 Replies

ActionScript 3.0 :: How To Run Huge Array In Computer

Sep 11, 2009

How can I run huge array in my computer.
Ex: array[0]....................................array[1000000000000]
Any theory to do that?

View 3 Replies

IDE :: Huge Flash - Can't Delete The Scenes

Feb 26, 2009

im making a Flash Project using adobe flash cs3 using action script 2, my problem is when i go to test moive flash closes straight away, when i click on certain scences flash again closes, i can't delete the scences because when i press shift + f2 and go to click on that scence flash again closes

View 3 Replies

ActionScript 2.0 :: Read XML Huge Linebreaks?

Apr 14, 2009

Well I was loading a xml file (using CDATA) into my flash app. I'm still using AS2 and everyting works perfectly with linebreaks and everything. The only thing I can't understand is why a linebreak is so huge? When I load the XML-file into PHP to edit, it looks good. But when I save it and load it again into flash one linebreak is like two linebreaks.

[Code]...

View 2 Replies

Sound Files Made .fla File HUGE?

Sep 28, 2009

I imported 26 .mp3 files into my library, and linked their classes via AS3 to 26 instances of buttons.
My file size went from about 2MB before  I imported them to about 1.6 GB after I imported them. Each of the files is only about 2-3 MB.

View 2 Replies

Flash :: Scroll A Huge Sprite Horizontally?

Apr 2, 2011

I need to scroll a sprite horizontally, that I attach movieclips to at run time. Once all the clips are attached, the width of Sprite is larger than Flash max width. It ends up being something like 18000 px wide.

Is there a smart way to simply update the clip's labels and create the ilusion of scrolling all the content? I wish the content was not so wide but it has to be.

View 1 Replies

ActionScript 3.0 :: Alternatives To Move Huge Movieclips?

Oct 12, 2010

I am making an rpg type game and the map is as big as flash will allow a movie clip. Around 6000 width or something.

To simulate movement, the player is stationary in the center of the screen and moves the map beneath them.

The problem: On computers with slower CPU's it lags very badly.

Is there a way to cache the map or somehow have it so it is less processor intensive?

View 3 Replies

ActionScript 3.0 :: Huge Slowdown Of Graphics Pipeline In Firefox

Oct 11, 2009

When I run my flash app in the default player it runs at 60 fps (the code is ~2ms a frame), but when I run it in firefox, the rendering phase is incredibly slow (~50ms).This is a relatively new symptom. I have not increased the amount of data to be rendered, but I have modified the type of data from MovieClips cached as Bitmaps, to straight Bitmap data... if that's relevant.[code]

View 3 Replies

Professional :: Doesnt Go Huge When Viewed On Larger Monitors?

Jul 14, 2010

Is there a way of setting a swf so that it doesnt go huge when viewed on larger monitors? I want my site to scale in size, but when i viewed it on a  27" monitor it just looked way too big really (text looks silly big), even scaling it down can then be too small on regular monitors, is there a happy medium ?

View 7 Replies

ActionScript 3.0 :: Flash - How Is The HD Support - And HUGE Image Resolution ?

Feb 28, 2011

I would love to get some information from some of the old pros on here as to best practices using flash for large scale environmental displays:

1. Flash supports High Definition correct? I did a google search, and see that it does - but unsure whether I need a plug-in or it's just a setting? My question is more along the lines of - can the flash animation be highDef, or only the videos it displays?

2. I am working on a very large (like 40ft tall) environmental graphic, and curious .how you deal with images at that size? I remember vaugely, that they don't need to be 300dpi, but do i still need to maintain a certain resolution?

View 2 Replies

Flex :: Displaying Huge, Scrollable Images In Image?

Jul 31, 2009

I'm trying to show image files (jpg, png, gif) that can be larger than the available display area. I've embedded an Image inside a cCanvas (to get scrolling), but the large images are not completely displayed.

Very large images (e.g. 2480 x 3507) have the top or the top and bottom of the image clipped withing the scrolling Image.

What is the largest graphic one can display using the mx.controls.Image ?

View 3 Replies

Actionscript 3 :: Sending A Huge Amount Of Data From Flash?

Sep 14, 2011

I'm having an issue sending a huge (~4MB) block of data from flash, to my java servlet, currently I'm transferring the data using URLVariables, however it seems there's a limit to this (because it seems to work, with smaller data blocks), how do I suppress this limit, or in any other way, get my data to my servlet.My flash code so far:

var variables:URLVariables = new URLVariables();
variables.name = name_string; //Plenty of these small attributes
variables.data = data_string; //And the huge BLOB

[code]....

View 3 Replies

ActionScript 3.0 :: Huge Memory Leak In Loader Class?

Sep 16, 2011

When properly loading and stopping .swfs imported via the loader class the .swf is loaded into the memory. When i have close to 25 vids beeing played and each of them is about 5mb, it goes without saying that it takes alot of memory. When playing a video, selecting a new video, then going back to the old one, it loads 3 videoes intoo the memory because i use 1 single loader variable.. how you can prevent the memory leak?

View 9 Replies

Actionscript 3.0 :: Optimization Of HUGE List Comparison: Dictionary?

Apr 8, 2010

I'm on the brink of finishing the first iteration of my first game ever o/ and of course the last item I need to complete is the hardest. I am making a simple word game, and all details aside, the task at hand is a conditional block to determine whether the word the user has entered is real, and in order to do this I need to somehow compare it to a dictionary list.

1 hour of research has quickly opened up an entire universe of data structures, open source xml documents, people willing to take my money for spell checkers, and of course RegExp which I have no experience using (but am willing, and wanting, to learn!). One of the main problems Google is giving me is the addition of the Dictionary class in AS3, which "lets you create a dynamic collection of properties, which uses strict equality (===) for key comparison on non-primitive object keys..." So finding previous literal dictionary uses is tough.

I soon found taking a dictionary txt file (118619 lines) and converting it line by line into an array takes 3 minutes on my beast of a laptop gaming rig (Asus W90), and while I knew this was a bad idea, it was a nice learning experience (to give me a gauge of processing abilities).

I am wondering whether using XML is an appropriate alternative, or if there is a way to externally access a dictionary somewhere online. Looking at the XMLList Class available I see text() and toString() methods; yet I still see heavy iterations in accessing the dictionary.

Which brings up the next point: easiest way to find a String match. I understand that comparing each word one by one would be tedious for the program, so maybe splitting up the list by letter (or maybe string length, looking at the file), or first and last letter.

View 2 Replies

ActionScript 2.0 :: Ridiculous Load Time For A Huge String?

Mar 30, 2010

i need to upload a ridiculously huge text file into Flash MX 2004 and turn it into an array. The loading part is not a problem: the issue is splitting the array.

The original string is approximately 531,000 characters long and needs to be turned into a multi-dimensional array of 3500 elements split into another 20 elements (array[3500][20]). Unfortunately when I try to make the initial split into 3500 elements (which I would later need to split again into 20 using a for loop) the Flash takes a ridiculous amount of time to load.Most of the time Flash just crashes: I tried splitting the string into just 50 elements and it took me around 7 seconds. My computer usually has no problems with basic tasks like these.

So, what should I do? Is there a way to change memory allocation to Flash? Should I split the string? Should I create multiple text files, load them into separate loadVars objects and split those? Or am I just trying to do something too big for Flash?

View 4 Replies

ActionScript 3.0 :: Xml Based Dynamic Text Field With Huge Swf File

Mar 16, 2009

I'm trying to make an xml based tracklist for a music mix on a website. The code loads the info from the XML file, and displays it in the text field, and I have a UIScrollbar component as well. When I test movie, everything seems to be working fine. However, the swf file is 14.1 MB. The .FLA is only 690kb... so where the hell is the size coming from? I only have text in the xml file, and the code is pretty compact. Why is the swf so big?[code];If anyone knows how this could be done so I can create one shell swf file, and load the xml file in the html/php code.

View 5 Replies

Flash :: Align List Items Left On A Row With Huge Height

Apr 25, 2011

I have a list component filled with text of varying length.

I currently have this

But I'm trying to get this

And is it possible to manually wrap the row height depending on the size of the text inside the row?

View 1 Replies

Adobe :: Flash FLA File Size Becoming Huge For No Good Reason

Mar 31, 2012

What is the reason for the enormass bloating of FLA file size, when many edits and saves are made to a FLA file, yet assets are not being added to the library? What is the best technique to keep FLA files smaller in size? (with the problem described below. I am not talking about published SWF files or asset management)Over many edits and many saves of my FLA files, they become 30 times the size on disk from where they start out. Example 750k can get as high as 34mb. In the past "save and compact" used to fill the role of reducing FLA file sizes but now that feature is gone.When I save as a CS4 file then back to CS5 the file becomes much smaller after it has become bloated, BUT I take a risk every time I do this that the file will become corrupted (I've had corruptions happen).I have read that files which were created in CS5 and are never in the format of CS4 don't have this problem, but I find that theory unlikely since I have tried to follow this rule to no success.

I have also read that every FLA file tracks its "history" of assets. So adding and removing assets to the library will sometimes cause bloating because old assets that are removed from the library remain in the FLA file. This seems bogus because there is no purpose to this, but could be an indication of a bug in Adobe Flash Professional CS5, and CS5.5.Personal details: the files I am editing contain personally created flash components, images, audio, many symbols (20+) but no embedded video.For me personally, this bloating is a problem because I'm dealing with hundreds of flash FLA files that should be about 1-4mb in size but are instead much larger. The overall effect is that I end up with gigabytes of files instead of hundreds of mbs.

View 1 Replies

ActionScript 3.0 :: CPU Intensive Animation - Get These Huge Animations To Run In The Background Smoothly?

Jan 24, 2009

So I'm building a music site for a client, he's got a record theme so I thought it would be cool to build the site to look like a big turn table with all the content on the record.the record is designed to spin (not as disorienting as you'd think, just the grooves spin)...but the record image, which I did in Photoshop, is huge.

It was just slowing things down to a near crawl in browser. So I split the record image into four pieces and then mirrored them to get the full piece of the pie. It worked, but it's still running slightly slow. I do have a couple of blending options set to act as lights over the record...I tried deleting them to see if it would run faster, it's still jumpy. When the record is not moving(there's a button to turn it off) everything runs smoothly. The entire move is about 300k in file size and the record is being animated via actionscript.How do some of these bigger sites get these HUGE animations to run in the background so smoothly?

View 7 Replies

ActionScript 2.0 :: Possible That Contents (huge) In The First Frame Will Detect Preloaders Scripts?

Dec 11, 2003

Is it possible that contents (huge) in the first frame will detect preloaders scripts?when the contents are being exported to the first frame? I know one solution that the instance of the image or a movie clip can be used. But when I am using dynamic content I cant use instances anyway.

View 4 Replies

ActionScript 2.0 :: Huge Lagging - Loading An External .swf File Onto Stage

Jul 24, 2006

I am loading an external .swf file onto my stage. This is the script I am using:

[Code]...

It loads everything great, but it lags so bad when it plays!!! Am I loading everything prperly? The external .swf file is just under 200 kb, but that should be ok, right? there is a way to prevent lagging. maybe a way to ask for more ram from the computer?

View 7 Replies

ActionScript 3.0 :: Creating A Huge PLAY Button (YouTube Style) For An FLV Component?

Feb 3, 2012

I have an FLV component and I wanted to create a huge PLAY button in the middle of the screen so if the video doesn't start automatically a user can click on it and it fades out. If the video stalls a user can click on it again and start the video.I would like it to be arranged as follows:1.play_btn fades in on the startMY PROBLEM: I did it it works, but not sure if it is an optimal solution. I did not assign any function as this way tween starts automatically. Or it is better to assign something like ON_START or ON_LOAD and not sure what is the proper function.

2.If the video starts to play on its own without a user clicking a play button it should dissapear and if the video stops it should appear.MY PROBLEM: Presently I achieved it to fade out on the click, but it stays on the screen unless I am to click on it. If I make background of the button to the size of the video then when a video stops and a user just clicks somewhere around on the screen he hits an invisible play button and video resumes. The button does not come up if the video stops..Extra special desire. If a user clicks on the video then it is paused and a button changes to a pause symbolMY PROBLEM: This third option may be too complicated for me with all "if" statements, but if not too much to ask would like to see how it can be done.here is the code I was able to come up with:

var  play_btn_Tween:TweenMax = TweenMax.from(play_btn, .5, {alpha:0});
play_btn.addEventListener(MouseEvent.CLICK, onClick_Play);
function onClick_Play(event:MouseEvent) :void {

[code]......

View 1 Replies

Flex :: Printing - Printed Data Grid Makes Huge Files?

Oct 29, 2010

I've an AIR app which prints a couple of DataGrids with approximately 3 pages worth of data each. I get great-looking printouts, but the printing is slow - I noticed that printing these 6 pages + a title page and a page of lightweight images was sent to the printer in a file of almost 50 MB (on Windows). Is this a normal size for a printed DataGrid? Is there anything I can do to make it smaller and faster?

View 1 Replies

Actionscript 3 :: Huge Framerate Difference Between Test And Publish Movie In Flash?

Dec 24, 2010

Simply put, I am making a flash midi player. I am using ENTER_FRAME for my timings. I set the framerate to 100 to ensure that the timing of each note in milliseconds is accurate. When I test the movie with CTRL + ENTER it works fine. When I publish it and open it in a browser (tested both IE and Chrome), it suddenly plays back a lot slower. I don't think it's a performance issue, since the code is very simple. If this slowdown is consistent then I can perhaps work with it so that the playback speed will be correct. Do browsers make the framerate slower or do they implement a framerate cap of some sort? What is going on?

View 2 Replies

ActionScript 2.0 :: Main Animations Slow Down A Huge Bit When Using Internal Movie (several Frames)

Jan 16, 2006

To try to avoid lag in the main animations (few ones, 5 I think), instead of having all the contents load as external movie clips in a movie clip called contentsMC (for instance), I used that contentsMC clip to contain them all, in several frames. There's no great problem in having all in one, since the contents are mainly text. The contentsMC shows up in a masked area inside the main movie clip.

I also have a transition effect, under that masked area.

When I press a button, it uses the command loadContent = #; And sets the transition effect movieclip play ( transitionMC.gotoAndPlay(1); ).

At the mid point of that transition effect (when it covers the actual content), it has the if conditions required to display what was asked.

if (loadContent == 1) {
_parent.contentsMC.gotoAndStop(1);
if (loadContent == 2) {
_parent.conteudos.gotoAndStop(2);

and so on.

However, when the transition effect is ocurring, all the animations in the main page become really slow, until it ends. Also, if I use anything inside the contentsMC, such as a scroll bar, the same lag occurs. That lag happens both with the always running animations (they are 5, I think) and with any other animation triggered during that, for instance by the onRollover effect of a movieclip.

To try to reduce that, I had set the framerate to higher values. First I set it to 50, then 60, and now it's currently at 90 (I only set it to 90 as it displays quite slower on the browser)

View 2 Replies







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