ActionScript 3.0 :: Splitting A Large Project Into Pieces Easily?
May 26, 2010
Let me first say that the project I am working with was my first foray into AS3 as well as OOP. I wanted to be a grown up so I wanted to use classes and not rely on individual swfs.Unfortunately, I didnt quite understand the spirit of OOP, or at least I dont think I did, and I made each section of the site into a separate class. I then integrated the classes and their library materials into one large project. The thing works great - but unfortunately the file has gotten too big.What is the most straightforward way to now break this project back up? Do I need to load in external swfs
View 0 Replies
Similar Posts:
Nov 4, 2009
I'm currently working on a little project of mine, where I have a character and a number of different items like clothing,hairstyles etc, which over time.. hopefully will grow into a tremendous amount.The thing is, if I have eveything in one fla file, there'll come a time where it becomes too bloated/large and Flash will eventually lag.So, is there anything way I can keep for example.. all the clothing in a separate fla/swf and the main character in another fla.But when I publish.. They all combine back together?I customise the character dynamically with references to linkage identifiers.. So I need a way which allows them to be split into different swfs, but still be able to call to the right clip.
View 6 Replies
Mar 31, 2012
I'm making a simple drag and drop game, but the strangest thing is happening on IE with FP10: the sub-assets of the draggables shift their positions when the parent is dragged quickly.The mouseChildren of the draggables is set to false, and the cacheAsBitmap is set to true. And it functions beautifully on Safari and Chrome. This is client work, so I can't really post a link here without their permission.
View 1 Replies
Apr 11, 2007
I have recently designed a children's educational game that is completed, however; it is a puzzle and the puzzle pieces can be dropped on top of each other and they hide behind eachother which I do not want to happen. I would like the game pieces to automatically get pushed off to the side of the other puzzle pieces that are in use...not stacked on top of each other. The game is complete except for this one problem.
View 1 Replies
Mar 9, 2011
I've build a fairly large system in as3 and now I need to introduce some other programmers in the different parts, and hopfully they will eventually grasp the entire system. I need to describe relations between classes and maybe some kind of flow, but the relations are the most important.
I've checked UML but I find it a bit strict and would like to be able to write comments about specific classes or relations and maybe be able to draw curved lines/arrows etc. In UML I also find it hard to know which kind of lines/arrows to use when and where.
So I am looking for a method/software/tutorial on this topic, either on some extended/simplified UML or a completely different method.
View 2 Replies
Jan 9, 2012
my Flex project has grown to over 1 Mb in size in release mode and now I am trying to cut it up into modules.
One of my SWC libraries is fairly large and I want to use it in multiple modules, so I think I can turn it into a RSL? how can I go about turning the SWC library into a RSL? I am building with Flash Builder (Flex).
View 1 Replies
Apr 11, 2009
I really want to start work on a game idea I have using PaperVision.The largest/most complex thing in Flash I have ever made is probably my last project which is an interactive school map for my A Level [URL] . Check it out, its a little laggy in the browser but it is designed to run in the flash projector from the desktop.I used around 10 .as files and dumped all my graphics in 1 .fla as sprites and stuff.This is ok (...ish) as I had a large 'main' file and a massive 'main3d' file which (324 lines which is big for me :S lol).
Im planning on making it a big, 3D adventure style game with lots of elements and AI things. But how do I organise my code? If I continue like this, I'm going to have a few mahasssive files and lots of small ones.How to the 'pros' organise their stuff? All the time I see source codes for small experiments which are great, but I have never seen any layout overviews of what files they used and what kinds of things they put in them. I also have no idea how complex environments, where objects need to update to add/remove elements without having to check the position of the player every frame.
View 5 Replies
Aug 17, 2010
My company is working on a casual game which is entirely made in Flash. To speed up development/compile time we split some of it up into SWC files, for example dialog controls, cutscenes, particle effects are all controlled via SWC files. This was working great up until a few days ago, we have been working on this project for about 8 months with no major problems. However, now all of a sudden, when we compile the game, none of the SWC files work. The game compiles and runs ok, but nothing from the SWC files are working.
The strange thing is that if we remove one of the SWC files from the folder (the game reads all the SWC files from one folder) then the game will work. Even if you remove a SWC which isnt immediately used by the game it will still work. It's almost as if there is some limit to how many SWC files you can have loaded. (There are only 10 SWC files in the folder we are loading from).
View 2 Replies
Jan 22, 2011
I understand that, in order get an anti-aliased font in a dynamic text field, the most given advice is to embed the font. But that doesn't work for my project since we want to make it available in multiple languages, and there are too many fields that must be embedded, and it greatly increases the file size of just one scene.
The other option I have seen people use is to custom anti-alias, but for some reason, this option just is not working for me. I fiddle and fiddle with the sliders, and no change is ever made. We are only using Arial, so I am at a complete loss as to why I seem to get no changes in the text from this option.
shed light on what might be blocking me from using custom anti-alias in my flash files?
View 3 Replies
Feb 8, 2010
I am planning on a Flex project that involves incorporation of a lot of features.
Each 'feature' can be a component / module.
Which is preferred and what is the difference between a module and a component?
View 2 Replies
Sep 29, 2011
We build prototypes and demo applications in Flex 4.5.1 and AIR 2.7 for mobile and desktop use. These tend to involve a large number of full-screen .PNG files. Lately we have been looking at ways to segment our code for flexibility and multi-screen re-use. What suggestions do people have for segmenting the project and libraries such that compile times are minimal and images are easy to replace?
View 1 Replies
Jun 21, 2010
I cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).
At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png
View 2 Replies
Mar 10, 2011
Recently I share some videos in my blog: keyfun.wordpress, clarify how to convert ppt to flash easily with effect samples. Or you can visit [URL].
View 2 Replies
Dec 14, 2010
I really want to attempt in making my own game kind of like Farmville. I know most of the actionscript, but I do not understand how they make the artwork. I try to make those isometric art in photoshop and stuff, but it's almost impossible for me. I use a tablet.So I'm wondering how do so many people make that art work so easily?
View 1 Replies
Jun 15, 2011
i have a basic xml file which im able to load externally easily using :
Code:
private function loadXMLFile():void
{
[code]........
View 3 Replies
Aug 14, 2007
As the title, is there a class method in Flash to limit and round of a number's decimals ?Like :roundToTwoDecimals(1.2362 ) = 1.24
View 8 Replies
Nov 24, 2011
Is there a good tool can asily download SWF files from internet?
View 2 Replies
Apr 23, 2010
I am using FlashDevelop and Flex SDK, I use this to embed things on the swf:[code]Now, I would like to embed more than 100 files (or maybe more!), and doing this one bye one will take long and will be very exhausting Is there any easy way to that easily?
View 1 Replies
Apr 2, 2003
If I have a variable
a = 456
how can I get the numbers from it like
a1 = 4
a2 = 5
a3 = 6
View 4 Replies
Sep 15, 2004
i have a var lets say 'x' x="i like cheese and want to eat it everyday" i want to split the var x by every 10'th character, assuming the 10 chracter is not in the middle of a word , then i want it to split it before that so that no words are not cut out...
ex:
x="i like cheese and want to eat it everyday"
arr[1]="i like " 7chars causs 10th char was inside 'cheese' and spliting of words is not allowed
arr[2]="cheese and " 10 chars exactly , splits at space
arr[3]="want to " 8 chars 10th char inside eat .. u get the idea by now i hope
arr[4]="eat it "
arr[5]="everyday"
so its splitting the variable every 10th character.. if the 10th chracter is a space, if it is not it backs up to the previous space and for the next array slot starts from there
View 5 Replies
Oct 19, 2009
so I'd like to get some input on how exactly to go about coding this thing in the most efficient manner..i have 4 portfolio galleries im trying to display (web design branding motion)and the thumbnails for each of my projects are going to be displayed on a grid of 50x50px squares.id like to dynamically populate these 50x50 squares with thumbnails pulled from a folder and then populated into the grid sequentially then when an individual square is clicked have a full size version of the image (also pulled from the folder) populated in the same manner.
View 1 Replies
Mar 29, 2011
Just about all the screens require the text to be set to dynamic text and have character embedding set to basic latin(95 glyph) The problem is that because the project is so big and has so many dynamic text boxs the publishing time is really starting to slow down.
I dont mind if it doesnt embed that fonts while im publishing for debugging. I just need it to publish with the glyphs when im showing it to the client.
Can embedding be set by code?
If it is i could just take some time out to set my dynamic text boxs to look at a specific class or somthing?
Or Am i missing a propertys overright button somewhere that will switch embeding off through out the project when I need to?
View 1 Replies
May 11, 2009
Lets say I have an array which has n dimensions. Now in order to access a slot you typically use: array [1][0]What if the number of dimensions are not known at compile-time, is there an easy access like:
slot = "1,0"
array [slot] // accessing 1,0
Which means I can also easily navigate back and forth
[code]....
View 1 Replies
Feb 22, 2012
I have a massive json object that I return from my php script. The object holds strings as well as variables that are of type php associative array. When i trace my json object it's totally not formatted and not readable by human. However If I use a free online json formatter, it looks good. My question is if there is an easy way to trace out all properties and their contents in an easily readable way using as3?
View 2 Replies
Feb 5, 2009
I'm currently working on side scroller that has an isometric-type perspective (think Double Dragon) and the only thing I could think of to use to easily manage the depths of the MCs was a bubbleSorting algorithm. (It seemed to lend itself well to the swapChildren command).
[Code]...
View 2 Replies
Dec 22, 2009
I do a lot of work with GWT but don't have experience of Flex. I was talking to a guy today who was looking at moving some large Flex based applications to GWT due to the Flex application getting too big and using too much memory in the browser. This is a problem I have had before with GWT - browser apps using lots of memory as all the code gets loaded when it starts.
However, in GWT 2.0 there is now a code splitting feature to overcome the problem of the client code getting too big. This allows all the code (javascript) not to be loaded as one big file on start up but instead code split into different files that can be loaded when required.
I was thinking as to if there is anything similar in Flex. I assume the Flex application code all lives in one single SWF file which loads at start-up so this approach is not possible but thought there might be other solutions.
View 1 Replies
Nov 4, 2010
On a webpage, is it possible to split large files into chunks before the file is uploaded to the server? For example, split a 10MB file into 1MB chunks, and upload one chunk at a time while showing a progress bar?
It sounds like JavaScript doesn't have any file manipulation abilities, but what about Flash and Java applets?
This would need to work in IE6+, Firefox and Chrome. Update: forgot to mention that (a) we are using Grails and (b) this needs to run over https.
View 4 Replies
Oct 8, 2007
I am always using LoadVars to load in data from PHP or whatever and it normally always works. But some times my result data is split into multiple variables when there is only meant to be one var. I think it always splits on ampersands ("&") which makes sense, as they are used to tell Flash when a new var is starting.
I was wondering if anyone knows more about this, and if there is a way around it. Usually I get around it escaping the characters on server-side, but I recently have a project where I cant change the data that is sent to me.
View 1 Replies
Feb 23, 2010
Is there a way to have a flash control scroll through a number of images with descriptions without knowing Flash?Perhaps like LightBox but with nice scrolling.
View 1 Replies
Sep 26, 2006
For some "mysterious" reason I cant surf on my text fields. And when I choose a combo box, the focus insist to not move to the next field unless I double click the next field...
I removed the code, and everything worked. Since the file is quite big, i uploaded here:
here: [URL]
View 4 Replies