Actionscript 3 :: Flex - Embed Large Amounts Of Structured Array Data

Feb 18, 2010

how much memory (and swf size) the various built-in data types take up in actionscript 3? I'm specifically interested in int, Number, and (dense) Arrays or Vectors. I'm working on a project where I need to embed large amounts of structured array data, which is already in C++ format, so porting is just a matter of copy-paste, search-replace. I've already had a look at Adobe's lowdown on datatypes but it's not specific enough, and doesn't mention Arrays, etc.

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Keep Large Amounts Of Data?

Apr 25, 2011

Im not sure whats the best way is to make large amounts of data available to my android app on the local device.

For example records of food ingredients, in the 100's?

I have read and successfully created .db's using this tutorial.[url]...

However to populate the database I use flash? So this kind of defeats the purpose of it. No point in me shifting a massive array of data from flash to a sql database, when I could access the data direct from the as3 array?

So maybe I could create the .db with an external program? but then how would I include that .db in the apk file and then deploy it to users android device.

Or maybe I create a as3 class with an xml object init and use that as a means of data storage?

View 1 Replies

ActionScript 3.0 :: Storing Large Amounts Of Data?

Aug 20, 2009

how "you" would do it and then deciding my strategy from there.What I'm setting out to do is as follows:I have a UI with about 10 sliders and 10 buttons.I'm using Senoculars Virtual Mouse class to record all of the users interactions into arrays (basically [x,y, action, time, value]) and then after a decided time (say 3 minutes) I play the users interaction back to them.All of that works fine but now the data is not persistent.I would like to be able to store the interaction data somewhere and then a user can log out, log in and view their previously saved interaction.how would you go about saving this data? I was thinking about storing it in a XML file but I'm concerned that the file would wind up being ridiculously huge. If a user drags a slider from left to right just once thats saving [x ,y action, time,value] 42 times.

View 3 Replies

ActionScript 2.0 :: Importing Large Amounts Of Data?

Sep 12, 2006

I'm currently using XML to import geo-location data to my flash application.Even though my XML scheme is about as small as can be, I still feel i would do better downloading the variables as text and exploding them. If i manage to change the xml to raw text I can compress the data to about 35% of the original size.I want to load the data in the form a_b_c_d-e_f_g_h.So, to the question; how do I explode a datastring in flash?

View 2 Replies

Actionscript 3 :: Streaming Large Amounts Of Data From Flash?

Nov 2, 2010

I'm currently working on a project where I generate a large amount of audio data to be stored on a users machine.

It works fine for small amounts of data but as the memory usage grows the flash application begins to struggle and eventually dies.

I've been thinking about possible ways to overcome this problem and I was thinking instead of storing all the data in memory (sometimes up to 100mb) a possible solution may be to stream the data to a server (44100 float numbers per second) as it is is being generated then once the accumulation of data has ended sending it back to the client.

1) can you see any problem with this idea and if so could you offer a better alternative?
2) could you reccommend a good server technology to achieve this?

Edit 1

To add more detail.

I am generating audio on the client using the sound.extract method. As the audio is being sent to the speaker I also send it to a byte array.

Once the user has hit a stop button I prepend a wav header to the audio data in the bytearray and allow the user to download a wav of the audio they have just being listening to.

Ideally I didnt want to impose a limit of how much data the user could save. This may not be possible.Storing all this audio data in memory was causing severe performance problems in flash. I don't know of any way to incrementally store this data on the client machines so I was thinking a solution may be to incrementally stream the data to a server somewhere to reduce the memory load.

View 2 Replies

ActionScript 2.0 :: Loading External Data (large Amounts)?

Dec 12, 2007

What is the best way to work large amounts of external data in Flash? XML, remoting,something else??I'm looking into a project that has a lot and I'm not sure what the best way to handle it would be

View 1 Replies

Web Development :: Page Through Large Amounts Of Historical Data Via A Web Application?

Jun 29, 2009

I have a web application that functions as a dashboard, allowing a user to see summaries of historical data to view trends, etc. As an extension to this, I want to allow the user to drill-down into the historical data if they so wish.What this will amount to is a table of time-value pairs, showing the time a particular data point was recorded as well as its associated value. The issue is that there could be a very large amount of data on record (millions of points is entirely possible), which means it wouldn't work to load all the data up front and display it to the user.

So far, my best idea is to implement the table of time-value pairs with "infinite scrolling" - i.e. the first x points are loaded and then as the user scrolls down the next x points are fetched and so on until the user reaches the end of the data (with a fixed-size cache of points, so that I don't run out of memory). The issue with this approach, though, is that there's no way to get to the end of the data without first fetching every point in between.

Another option would be to have a navigation interface with forward and back buttons, as well as some sort of date chooser so the user can quickly navigate to any data point they wish. This solves the problem of the first idea, but this navigation interface is far more clunky and less intuitive.My question is: is there some happy medium? A UI where it's clean and easy to navigate through the data but at the same time provide some method of jumping to a specific point in time?

Edits based on comments below:The development environment is flex and the database is SQL Anywhere, though the back-end logistics are less important to me than a clean, functional UI.

View 1 Replies

Actionscript :: Smooth Sliding Animation In Flex With Large Amounts Of Components

Nov 19, 2010

I have a component I created that works like a Viewstack but the next index component slides in from one of the four sides. I've got it working well enough that it's acceptable to use, but I want to make it more efficient.

Right now I'm using a Canvas as the base component, I create a snapshot of the current view using an ImageSnapshot (new Bitmap( ImageSnapshot.captureBitmapData( this ) )), and I slide the new index on top of that image on index change.

I'm basically looking for suggestions on how to do this a better way. By taking the Image after the component loads, and after the slide happens, I've gotten the initial jaded moves down to a minimum, but we normally use this for transitioning grids so it's almost always slow on the first or first couple slides.

[Code]...

View 4 Replies

ActionScript 2.0 :: Managing Large Amounts Of Text / Type

Nov 8, 2006

i'm building a site for a pharmacutical company. it's a resource guide. it's essentially a 300 page document, and turning it into a flash site, with links to external pdfs/ppt/doc files. when dealing with so much copy, what is the best way to manage/display it? in the first round of this project, i was simply putting it in flash type, with thumbnail images scattered throughout. it worked, but seemed a little bit archaic. often, with such heavy copy (3 full page scrolls), the thumbnails wouldn't align where i wanted them, and would end up overlapping with text.

View 3 Replies

C# :: Programmatically Extract Structured Data From A Bunch Of Web Pages?

Dec 18, 2009

What is the easiest way to programmatically extract structured data from a bunch of web pages? I am currently using an Adobe AIR program I have written to follow the links on one page and grab a section of data off of the subsequent pages. This actually works fine, and for programmers I think this(or other languages) provides a reasonable approach, to be written on a case by case basis. Maybe there is a specific language or library that allows a programmer to do this very quickly, and if so I would be interested in knowing what they are.

Also do any tools exist which would allow a non-programmer, like a customer support rep or someone in charge of data acquisition, to extract structured data from web pages without the need to do a bunch of copy and paste?

View 6 Replies

Flex :: Flex Causes Browser Unresponsive When Processing Large Amount Of Data?

Jun 29, 2011

I have an actionscript function which is supposed to launch a panel and then fill in Networktopology data inside it.As, network data is too large that it consumes much time and makes browser hang!Even I tried to display busy cursor which also stopped spinning when data was being processed.How can I ensure processing large amount of data does not hang the browser.

View 3 Replies

Flex :: Different Flex Swf's To Send Large Blocks Of Data Between Each Other Without Localconnection?

May 25, 2011

Is there a way for different flex swf's to send large blocks of data between each other without using localconnection which is size limited or using sharedobjects. This needs to happen on the client without server communication.

View 2 Replies

Flex :: Gradually Create Childs For Displaying Large Data?

Jan 13, 2012

I have a large ArrayCollection that need to be displayed in series of Datagrid.After testing, the loading time is around 30secs-1minute.My question here, is there a way to gradually add each datagrid and display it instead of waiting until all datagrids to fully created?Existing :

AddChild 1
AddChild 2
AddChild 3

[code].....

View 1 Replies

Actionscript 3 :: Flex Embed Png, Meta Data Required?

Jul 19, 2010

this is a part of my code

[Embed(source='dmr/images/icones/icnPresenceInline.png')];
[Bindable]
private var presentAuBureau:Class;

View 3 Replies

Xml :: (Flex 3) Get Data From A File Using HTTPservice And Save The Return Data As An Array?

Oct 15, 2009

I have an xml file (externally saved) that is similar to the following:

[root]
[main]
[title]...[/title]

[Code]....

What I like to do is to get what's in [title] tag using HTTPservice, import it into Flex, and save it as array objects, and do the same thing for [content]. This way I can later refer the array object saying title[0] or content[2].

View 1 Replies

Flex :: Data Grid Not Displaying Data In Array Collection?

Oct 7, 2010

My data grid is displaying stale data, rather than the real time data available in it's data provider (array collection). I've tried refeshing the data in the collection, but that has no effect. Below is my code, does anyone see what could be the problem?

<mx:Accordion/>
<fx:Script>
<![CDATA[[code].....

View 4 Replies

Html :: Flex - Export Array (array Collection) Data Into A Table Or Text File?

Oct 9, 2010

I have an array collection of strings and integers (which I have displayed in a data grid) and I am wondering if it is possible to export the array collection into an html table? or even a text file for the user to download

I found some pages that had an export to .xls files but I want to stray away from that for now.

View 1 Replies

ActionScript 3.0 :: Split A Large Text File Into An Array At Line Breaks So One Array Element = One Line?

Jan 8, 2010

i need to split a large text file into an array at line breaks so one array element = one line.i have tried the using "" in both match() and in RegExp but it doesnt work.i had the g and m flags on. tried the $ sign too.

View 8 Replies

How Are Flash Based Site Structured

Sep 30, 2010

As opposed to building a site from scratch I pointed him to Template Monster so in the essence of time we could just gut one. Once there of course the shiny ball that is Flash seduced him. He is hell bent that he wants one of those fully Flash animated sites, where every click or hover of your mouse will produce some effect. I've worked with Flash intro's in the past and didn't foresee this being a problem. However right after unzipping the source files from TM I could see right away I am out of my element.When I opened it up I saw there was not only a "site" file but at "site_flash" file. Upon further inspection it looks like in the "site" file there's what the site would look like with no Fash animation. In the "site_flash" file I run the SWF file and it looks like the whole site done up in Flash. This is where I'm confused, is the "site" file just the non-Flash version of the site in case we want to run that instead or for non-Flash browsers? Or does it work like layers, you put the HTML non-Flash site down and all the Flash animation, in a sense, lays on top of it?I was thinking I'd just go in edit this template with my friends information and I'd be done in a week. I'm hoping someone can help me make sense of what I'm looking at. If it helps here's the link from TM's site explaining what's in the source file:URL...

View 3 Replies

ActionScript 2.0 :: XML Structured Flash Site

Nov 17, 2006

Anybody know of any simple Flash examples of nav and content structured with XML?

View 2 Replies

Flex :: How Much Data Is Too Much For An Array

Jan 25, 2011

I have a flex webapp that retrieves some names & addresses from a database. Project works fine but I'd like to make it faster. Instead of making a call to the database for each name request, I could pre-load all names into an array & filter the array when the user makes a request. Before I go down this route though I wanted to check if it is even feasible to have an application w/ 50,000 or 1 million elements in an array? What is the limit b/f it slows down the app? (I anticipate that it will have a lot to do w/ what else is going on in my app but for this sake lets just assume the app ONLY consists of this huge array).

View 3 Replies

ActionScript 3.0 :: Turn A String Into A Properly Structured Object?

Mar 3, 2010

I'm using an online service (heyzap.com if anyone wanted to know) for storing small amounts of data from my Flash app. The data is sent to the server as an object, which can contain any kind of structure including arrays, numbers, strings etc. However, when the object is returned back to the app, for some reason, it has been turned into a string representation of the object. I don't think it should be like that - but it is. So if I create a textbox on screen and write the code:

myTextbox.text = receivedObject;
it shows this:
{"myArray":[{"myInteger":0,"myString":"string0","myData":[1,2,3]},

[code]....

View 2 Replies

Actionscript 2.0 :: Get And Use Large Size Array?

Sep 10, 2009

how to get and use large size array? like

array[0]=1;
array[1]=2;
array[2]=3;
array[3]=1;
array[n]=10000000000;

View 1 Replies

Flex :: Add Array Data To Variable?

Oct 11, 2011

I have a app that currently gets event data from facebook and displays this into a list[code]...

View 1 Replies

Css :: Flex 3 Embed Throws "Invalid Embed Directive In Stylesheet' Error On Linux

Mar 9, 2010

We have a flex application which compiles fine on windows box using mxmlc ant task but when we try to run the same build scripts on linux, it throws the 'Invalid Embed directive in stylesheet' error indicating it is not able to resolve the path to the image files.

Can someone pls. educate me on if there is a difference in the way the image files are looked up, in a CSS file, on windows vs linux.

Flex sdk version is 3.3. The same sdk is used on both windows and linux. Not sure if this has been fixed by any future 3.x sdks.

View 2 Replies

Performance :: Database Vs XML For Large Static Data?

Apr 7, 2012

I'm developing an application using Flas Builder / Flex for Adobe Air. This application will be processing a large set of static text (100 - 200 MB) using a variable set of processing instructions.The target platforms will be iOS, Android and Desktop.The data set can be either one large XML file or broken into a bunch of XML files about 3MB each.This will be decided at design time.From your experience would it be better to store the text in an Adode Air database or a set of XML files for best performance (including speed and battery life)?What other considerations should I take into account?

View 1 Replies

Javascript :: Libraries For Large Data Visualization?

Feb 16, 2011

Are there javascript libraries that can handle large data visualization? I've seen Protovis, but not sure how much data it can handle. Also, how do Actionscript libraries compare to Javascript in terms of performance?More:I've tried Flare, but seems to be slow for my applictaion. Now I'm yet to figure out if it is the rendering or if it is the shaping of data for rendering. I am looking at interactive graphs like the JobVoyager.

View 1 Replies

ActionScript 3.0 :: Input About Large Data Handling?

Jan 28, 2009

I'm building a sidescrolling world where you can move around.The idea is that you should be able to move to any point in the world, as well as travelling really fast.I'm pregenerating a long list of data about objects to place, their positions etc.

Now. When moving to a point far away from current position I don't want to loop through the whole list of objects to find what objects should be seen and not, so I'm thinking I should divide the position list into sections, each covering an area equal to the visible area. That way I would only have to roll through the lists closets to the new position.This would however result in an array of thousands of elements each consisting of about 20 objects and I'm figuring that might not be very healthy.One solution would be to split everything up further so that in the end I would have a handable nr of arrays containing a handable nr of elements.

You're probably thinking I should generate positions on the fly, but since one place in the world can be revisited I need to store all positions.

View 4 Replies

ActionScript 2.0 :: Sending Large Data With Loadvars?

Mar 20, 2009

I've got a small problem with loadvars. I want to send data from Flash to PHP, which usually works well. But right now I need to send "larger" amounts of data around 10-20kb and loadvars doesn't work anymore.

Using loadvars to open browser-windows seems to work fine, but I want everything to happen inside of flash.

The code is:

Code:
datastring = "1, 2, 3 (...) 4998, 4999, 5000"; // long text
loadstring = 'save.php?data='+datastring;
db = new LoadVars();

[Code].....

Works fine with small text, with big text nothing happens. How to do this the right way?

Edit: Loadvars seems to work up until 4050 characters, 4051 and it doesn't send anymore. But I can't really split the query..

View 1 Replies

ActionScript 3.0 :: Get The 255 Smallest Numbers From Large Array?

Oct 8, 2009

I'm trying to get the 255 smallest numbers from an array made up of all the alpha values in a given BitmapData, and storing these numbers in the Alpha array for paletteMap().We all know how to get the smallest/highest number from an array, or to delete repeating numbers or even to average numbers inside an array. I've been tweaking for 2 days with these possibilities but unfortunately I can't find anything satisfactory.

View 1 Replies







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