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


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 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 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

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

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 :: How Large Can An Array Storing Only Single Numbers Be

May 9, 2004

How large can an array storing only single numbers be? Is the limit in the hundreds, thousands, or what?

View 2 Replies

ActionScript 2.0 :: How Large Can Array Storing Only Single Numbers Be

May 9, 2004

How large can an array storing only single numbers be? Is the limit in the hundreds, thousands, or what?

View 2 Replies

Php :: Make Some App In Flash - Receiving Some Data From User And Storing In Data Base?

Jan 18, 2012

i am looking for some kind of library which does CRUD easily using PHP and MYSQL.My goal is to make some app in flash AS3.0 , where i will be receiving some data from user and storing in data base , and perform CRUD opertaions. I dont want to be so much involved in writing php and sl query.My scenario is:

Data types : [ like user_profile data, etc]

add under data types 1 to many fields with various types..

Database tables and realtions etc should be done by my DREAM library, then user when select a Dtat Type, he is presented with related fields to fill up data.

I will be using Flash AS3.0 ( Builder or IDE ) to perform .If only i can find some php library i think AMFPHP can connect flash with php

View 2 Replies

Php :: Storing Data From Flash?

Feb 2, 2011

What is the best way to store data gathered from a flash file, and load it into another flash file? Would xml or php work? and could it be instantaneous? Here is a diagram of what i am trying to do...

[URL]

View 2 Replies

Actionscript 3.0 :: Storing XML Data?

May 6, 2009

I need some help with my code please. I have a for loop that creates sprites and loads images into the sprites theough XML. I have additional nodes for each image and sprite that get created that I want to store and call when I roll over the thumbs. What would be the best way to do this? I had to "improvise" and have the for loop create text fields to hold the data and then call it when I roll over throught "evt.target.

[Code]...

View 1 Replies

ActionScript 2.0 :: Keypress Storing Data More Than Once?

Sep 19, 2010

When a key is pressed, data is sent to PHP to be stored in a MySQL database. For each key press, only one entry should be posted. it re-posts exponentially (e.g., 1st key press = one post, 2nd key press = two posts, 3rd key press = three posts; thus, totaling six posts).Initially, the event listener for key press existed alone on a single frame. When that was the case. This issue did not occur. I added an additional frame so that I could set to clear out all variables and start fresh.

so frame 4 will have :

KeyListener = new Object();
KeyListener.onKeyDown = function(){
if (Key.isDown(69)){ // if key pressed is "E"

[code]....

View 1 Replies

Data Integration :: Storing Value From XML Into A Variable?

May 17, 2006

There is a combo-box by the name "cbJobs" and it gets its value from the XML file named "data.xml".. I want to store the value transferred from this XML file into a variable.. so basically someone told me to use the code

on (change) {
_root.subject = this.getValue();
}

the only problem with this code is that it gets activated only after I "change" the value in combobox by pulling it down.. I want to use this value obtained from _root.subject as a subject in the script

getURL("mailto:abc@abc.com?subject="+_root.subject);

View 1 Replies

Actionscript 3.0 :: Storing Lot's Of Data At Runtime?

Oct 11, 2010

I'm now writting a little drawing tool, that will allow users to save their drawings and the redraw them. Now I'm only concerning myself with diferent colored lines with diferent thickness. So now I only need to store the values, that will be used later on when calling the canvas object's graphics.lineTo(....); method. I'm planning to save all of my drawings in XML, but I still need to load them up when I want to use them.

Given my situation, what's the best way to load up my data (after loading it in chunks): Arrays, Dictionaries, anonymous objects. We're talking about loading up, let's say ~ 1000 Point instances for a very simple shape, since I want the drawing to be pixel-perfect, since I will be modifying it to a more sophisticated tool later.

View 4 Replies

ActionScript 2.0 :: Storing And Using Data From PHP In Movieclips?

May 5, 2007

I'm currently having abit of problem with splitting some data and inserting it correctly.On screen I am going to have 3 movieclips (with a dynTextfield already placed inside them).Using data imported from PHP I plan to put the project names of the returned results inside the movieclips. The problem with this is if the results are more than 3 then there aren't enough movieclips. To over come that I was thinking of using a 'more' button where the project names would get pushed out of the movieclips and the new set loaded in/along.

At the present moment I can split the data (received from PHP) and trace it accurately, although I'm not sure how to go about storing it now. I was going to use and Array and store to store the info and call it in the buttons, however I haven't used arrays before.

Code

Code:
function fetchInfo(){
//Query DB for existing projects:
fetchProjects = new LoadVars();
fetchProjects.userID = _global.UserID;

[code]....

At the moment in my test there are 2 results that are returned.

View 1 Replies

ActionScript 2.0 :: Storing Data On Server (in MX)

Jul 23, 2003

I was wondering what the easiest way to store a small amount of data on the server would be.

Basically I wanna keep a hiscore table for a flash game, and would need to store juz a couple of names and a couple of score in a little file, but i havent the faintest idea how to go about it.

View 1 Replies

ActionScript 3.0 :: Storing Game Data In A Movieclip?

Aug 1, 2009

i'm trying to make it easy for artists and level designers to implement game entities without writing a drop of code.

for instance, 5 different monsters are similar but with different attack speeds. i'd like to embed stats (for instance attack speed, health, etc.) in each of their movieclips.

the only way i can think is to embed textfields with instance names of "attack speed" and "health", and then delete the textfields at runtime. is there a more legitimate way of doing this?

View 3 Replies

ActionScript 2.0 :: Storing Data In A Database Instead Of Using XML Files?

Mar 10, 2010

I have a simple Flash slideshow that reads XML

The XML files contains a few settings and several data entries

I want to make it read from a database instead

I can't make my mind up how I should use the database and how many tables I need

IMPORTANT: I will have several instances of the same slideshow on several different places - how to best store the data

View 10 Replies

Professional :: Method Of Storing/receiving Data?

Jul 29, 2011

I'm goofing around with developing a Flash game that would be accessible via a Facebook application but am still trying to figure out how I want to organize the game itself. The game essentially is an educational game with competitive components - completing tests faster results in more points with which you can customize your avatar and other items in the game. Also, passing certain "lessons" open up new lessons. So the major components I see are:- Player data storage (scores, progress, etc.)- Social connections - transference of rewards, comparing high scores, etc.- Lesson data (what questions to ask, possible answers, etc.)How is this best controlled? PHP and SQL? XML? Should I use datagrids as an intermediary? I'm having a lot of problems finding good information, both on the internet and at the bookstore about how to manage this.

View 3 Replies

ActionScript 3.0 :: Storing RadioButtons Data In Other Frames?

Dec 26, 2011

i'm trying to find a solution to this problem: in the frist frame of the project i have 3 radiobuttons (Mambasradio, Amaronradio, Mastajbuonradio). In the second frame i have a ComboBox (Centers). I created 4 Arrays (mambascenters, amaroncenters, mastajcenters, nothing) and i tried to change the Array of the Centers.dataProvider with the RadioButtons selections. So if i selected Mambasradio, the dataProvider will beCenters.dataProvider = new DataProvider(mambascenters)I tried a lot of things but i didn't figured out of this. It gives me a Null Object Reference error in second frame. Here's my code.

Frame1
import flash.text.TextField;
import fl.events.DataChangeEvent;

[code].....

View 2 Replies

ActionScript 2.0 :: Storing/retrieving Color Data.. Php?

Nov 22, 2005

okay, so i have a basic drawing app based on

drawing = false;
data = '';
_global.linethickness = "2";

[code].....

View 2 Replies

ActionScript 3.0 :: Storing And Preserving Data Locally?

Feb 1, 2010

I am making app that works as stand alone, do some calculations and sting formating. Also it need to save data localy, and be able to reload it when needed. I have read that Shared Objects do that but also have limitation. For example the data can be deleted without user doing it. I need the data to somehow persistend and been able to delete only by the user of the app. As extra exporting data for other user will be usefull, but is not requared.

View 1 Replies

ActionScript 3.0 :: Storing And Preserving Data Localy?

Jan 26, 2008

I am making app that works as stand alone, do some calculations and sting formating. Also it need to save data localy, and be able to reload it when needed.I have read that Shared Objects do that but also have limitation. For example the data can be deleted without user doing it. I need the data to somehow persistend and been able to delete only by the user of the app. As extra exporting data for other user will be usefull, but is not requared

View 2 Replies

ActionScript 3.0 :: Storing Data Use An Array Or A String

Jun 12, 2009

I have a input text field on the first frame. I want to use the data from that text field in the next frame how do i do that using an array or a string.

View 1 Replies

Data Integration :: Storing And Changing An External Variable?

May 4, 2007

I need to hold a couple of variables in an outside file that can be incremented by user activity -- not just during one interaction with the swf, but with every one.I have no problems with using loadVars and I get the loadandsend process; it is just that I have
no background in cgi or asp for holding the variable and being able to update it.I know I cannot write to a txt file -- that is what I have been using thus far with loadVars for importing values, but this will not help me here. I know it should be a fairly simple script -- I also know I ought to pick up php, but for the moment -- until a greater amount of time comes my way -- I turn to you.

View 3 Replies

ActionScript 3.0 :: Storing Data Locally Not In Shared Object

Jul 9, 2010

I need to store data locally (not in shared obj), can I write xml file directly without dialog box or any other methods..?.

View 2 Replies

Flash :: Storing Several Gigs Of Data Using Its Filesystem / Cache?

May 13, 2011

Is there anything preventing a Flash website from storing several gigs of data using its filesystem / cache?What are the limitations?

View 1 Replies







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