Xml :: Utilize Static Data In An AIR Application?

Feb 5, 2010

I'm building my first AIR application after two years of building Flex applications with a SQL Server database, using ColdFusion CFCs and .NET as WebService interfaces.I want to create an AIR application with static data and I'm trying to figure out the best way of doing this, and how to do this. I have several related pieces of data.Should I store all the data in XML files and read it directly from there? Or should I use the built-in SQLite database? If I use the SQLite Database, is there anyway to have the data pre-populated with the application, or does it have to be built each time the application is loaded?

View 1 Replies


Similar Posts:


Flex :: Reference A Control In An Application From A Static Function?

Feb 28, 2012

Is it possible to reference a control in an application from a static function?

What I have is a Viewstack containing VBoxes stored in separate controls. Ex:

<mx:ViewStack id="content" width="100%" height="100%" resizeToContent="true">
<controls:Login/>
<controls:Dash/>

[Code]....

Once I get logged in on my login control, I would like to change the selected index of my ViewStack. From my outside controls, I cannot reference my ViewStack by name. I can reference a public static function from an outside control however I cannot refer to the ViewStack from within that function.

View 3 Replies

Flex :: Delete Application Storage Directory Instance / Data When Uninstalling Any Air Application?

Dec 22, 2011

how can i delete storage directory instances or folder while uninstalling any air application. In my application when i first time run my application, application copy some data from application directory to application storage directory. now i want to delete all data and application directory folder also while uninstalling application.

I am doing that because when i launch any update then application is accessing old data which conflict with my application new features.

View 1 Replies

Actionscript 3 :: Using External Xml Data In A Flex Application Without Compiling The Source Into The Application?

Jul 15, 2011

I want to read xml data to a mxml application from a xml file on my filesystem. The example I found was for AIR,link2, link3. But I want to target the Flash Player runtime. If I use the the tag, I can do it; however the xml compiles into my swf. How can I retain the xml file in my release build?

View 2 Replies

Getting The Static Session Time After Quit The Application, Or Click A Button?

Sep 18, 2007

Below I have a counter program. the counter starts running once i open the swf file. Now I need to place a button where i can get the static session time like say 00:01:50 in a text box telling " You have been logged for+time+time. I dont have any idea how i can get the locked timer. The timer goes on running. I want the static time to be displayed when i click on the exit button too. Because exit button opens a page where this time will be displayed, so the user knows how long he has spent on my swf.

Code:
//initial variables
var timing:Boolean = false;

[code].....

View 1 Replies

Actionscript 3 :: Store Reused Static String Constants In Flex Application?

Jun 10, 2009

I have two Cairngorm MVC Flex applications (a full version and lite version of the same app) that share many Classes. I have put these Classes into a Flex Library Project that compiles as an SWC. Both applications use some static String constants. Right now, I am storing these in the ModelLocator:

package model
{
[Bindable]
public class ModelLocator

[Code]....

View 1 Replies

Data Integration :: Static Vs. Dynamic XML?

Sep 28, 2006

I have created a Flash Map that functions properly with a static XML file but when I try to load a dynamic XML generated my ColdFusion I get no results. The example can be found at: http:[url]...The one that does not work is at http:[url]....

This map should load the different states that are in the XML file but instead it does not load any of them. The two different XML files can be found at: http:[url]....and http:[url].....An interesting note: Firefox does not recognize the cfm file as a XML file but IE does. This may be based on the file extension.

The Action Script is exactly the same except that it references adifferent file. The Flash works when published for Flash Player 6 but when I try to publish for Player 8 even the
static XML does not work.

View 40 Replies

Xml :: Getting Static Data For Flash App With JSON?

Jul 9, 2010

I've flash app and i've static data (like ~18.0KB) for it which aren't changed often so I was wondering how to better get them. The static data may be in XML or JSON. One of my ideas was to put the static data in .js file within a function which would return them in JSON list and the other one was to return them in XML (as I like to work with XML more in Flash) somehow. But I'm not sure if it possible to put XML stuff in JS file to return them when function is called.. Or is XML pages also cached in browser and I will get the same performance result which I would get with cached JS files?

View 1 Replies

ActionScript 3.0 :: Parent SWF To Load All Of The Static Data?

Jun 23, 2011

I've got an application parent.swf that is loading a bunch of child swfs into it. Ideally, I want the parent SWF to load all of the static data that's needed for all of the child SWFs to function, and them pass that typed data to the children. I've achieved this to a certain extent with something like:

[Code].....

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

Actionscript :: How To Utilize The Fullscreen

Feb 6, 2010

how to make your website fill the entire screen in ActionScript?

View 1 Replies

ActionScript 2.0 :: Utilize It Within Flash?

Nov 18, 2004

Where can a person go to get a good understanding of how to utilize actionscript within Flash?

question is coming from a person new to Flash, and a non-programmer upto this point. I realize there are several books and tutorials, however I am looking for something directed at person very new to Flash and unexposed to programming, and Actionscripting.

View 3 Replies

How To Utilize Actionscript Within Flash

Nov 18, 2004

Where can a person go to get a good understanding of how to utilize actionscript within Flash?Keep in mind this question is coming from a person new to Flash, and a non-programmer upto this point. I realize there are several books and tutorials, however I am looking for something directed at person very new to Flash and unexposed to programming, and Actionscripting.

View 3 Replies

Actionscript 3 :: Return An Object With An Update Data, That Is Pass In To A Public Static Function?

Dec 23, 2011

How can I return an object with an update data, that is pass in to a public static function?

GetDate.dayName(MyDate.setDate(1984,3))
//MyDate with new info (year, month) will be pass into GetDate.dayName
package hwang.time

[code].....

View 3 Replies

ActionScript 3.0 :: Make A GetURL() That Doesn't Utilize A Button?

Dec 13, 2008

I am trying to make a getURL() that doesn't utilize a button, at a certain frame in the timeline (after a movieclip). I understand that getURL() no longer exists in Actionscript 3 but if anyone can explain to me how to write an action that will allow me to open a URL in its _parent frame after a certain amount of time
without clicking.

View 3 Replies

Flex :: Osx - Utilize The Mac Laptops' Touchpad Pinch Gestures?

Jun 24, 2009

I have written a Google Maps-based application in Flex. Currently you can use the mouse wheel to zoom in and out the map. Is it possible on Mac laptops to use the pinch gesture to zoom?

View 1 Replies

Flash - What Is The Maximum Amount Memory Adobe AIR Can Utilize

Jul 1, 2011

I've been doing some rapid prototyping for a game I'm thinking of building. one of the main things i want to do is map generation for a tile type map. While generating the map i end up using large amounts of ram. I'm building the map as an array of random integers for my test. When i try to generate maps of a large scale flash gives me the out of memory error:

Error: Error #1000: The system is out of memory.

I've already figured i could write to a file instead, to solve that problem. but does anybody know the actual maximum size? I've tried searching around to no avail.Activity monitor reports that ADL is using around 500MB "real memory" and around 700MB "virtual memory". The System.privateMemory property seems to match the "real memory" value.as a side note i'm developing in OSX Snow Leopard (64) with 8gb ram

EDIT:

Here the example test i am running

var ba:ByteArray = new ByteArray();
for(var i:uint = 0; i<100000000; i++)
{
ba.writeInt(int(Math.random()*100));

[code]....

When i run this script from a browser, stand-alone debugger or AIR i get roughly the same memory usage readouts (which i know vary anyway). What is constant however is the final length of the byte array:

Browser (Firefox): TM: 540413952 FM: 19116032 PM: 562573312 BALENGTH: 13421778
Stand-alone: TM: 540577792 FM: 1810432 PM: 545361920 BALENGTH: 134217728
AIR (2.6): TM: 5410816 FM: 1159168 PM: 551464960 BALENGTH: 134217728

My testing methods might not be perfect, though i dont know how to do deeper profiling.

View 2 Replies

ActionScript 2.0 :: Utilize The Right Mouse Click To Activate A Button?

Nov 2, 2010

I need to utilize the right mouse click to activate a button. Is there a script that will activate the right click?

View 3 Replies

ActionScript 2.0 :: Utilize A Presentation Clicker To Advance To The Next Slide

Mar 27, 2007

I'm developing a presentation based on flash and would like to utilize a presentation clicker to advance to the next slide. The presentation is a bunch of SWF files loaded from an XML file. My question is; is there a way to use a presentation clicker to access a snippet of code to advance to the next SWF file? If so, what do I have to use to make this work.

View 3 Replies

ActionScript 3.0 :: Make Application Variable Or Static Variable?

Oct 16, 2010

The Idea is i want to make avariable that stores his value after i close the swf and open ti again,

an example:

i make acounter

var i:int = 0;
var timer:Timer = new Timer(1000);
timer.start();

[Code]....

the value of i will increase but after i close the application and open it again the value will return to 0 , keep the variable stores his value after closing the application ?

View 3 Replies

ActionScript 3.0 :: Any Way To Utilize Video Gallery Found On Adobe Site?

Aug 8, 2008

I am a designer, and I am very new to coding and I just began using flash CS3. I am currently working on a project and I wanted to utilize a video gallery that I found on the adobe site. The link is [URL]. And he breaks down the application on the link below and the source code is well written and commented but I just can't seem to understand coding. [URL]. So I was wondering to modify the code so that the thumbnails are images instead of swf files and the thumbnails are placed in columns which represent its own category. In return I can be your contact if you need a favor as far as designing something.

View 3 Replies

ActionScript 3.0 :: Fetch The Maximum Size That The SharedObject Class Can Utilize?

Jul 28, 2009

how to fetch the maximum size that the SharedObject class can utilize?

Something like

SharedObject.getLimit()?

I am aware, that by default, its 100kb. In the event that the user has modified their settings, and increased the SharedObject quota, then I have no idea of how to fetch the info.Is there a way to find out in AS3? Or should I just stick to the possibility that 99% of users will NOT change their settings.

View 1 Replies

ActionScript 3.0 :: Utilize XML Playlists That Include A Full Playable List Of Tracks?

May 11, 2011

I am attempting to create a music site with multiple cd pages using frame labels.  I am seeking the best means to utilize XML playlists that include a full playable list of tracks from each CD at multiple label "stop"'s.  I am struggling with whether I can create one long set of code that accesses the entire multi- cd playlist or whether I need to create unique code at each CD section at it's label "stop" that includes a 'local' xml playlist.  Both options are giving me trouble.  I am trying to extrapolate on actionScript 3.0 Classroom in a book "controlling Sound with ActionScript" example to multiple webpages - slowly and frustratingly thus far.Does actionScript 3.0 consider the actions within each label set of frames as unique code - meaning when a button takes you to another label new code is required that is fully unique to that new label section? I either get duplicate function or when I atttempt to re-define each function to a unique function in the new label I run into other errors. 

View 2 Replies

ActionScript 3.0 :: Private Static Properties With Public Static Getters/setters

Oct 22, 2009

how bad is this practice? I am having trouble getting to some stuff so i am taking the easy way out

Code:
private static var _interrupted:Boolean;
public static function setInterrupted(value:Boolean):void{
_interrupted = value;
}

View 1 Replies

ActionScript 3.0 :: Altering A Reference To A Static Var Alters The Static Var Itself?

Aug 25, 2009

Let's say you have the following situation:

1. Static var(an Array) stored in a class.
2. You create a variable reference to the static class in a separate class.
3. Splice some items from the reference variable in the separate class.
4. Trace the static class and the items have been removed from that too.
5. Verify several times.
6. Get confused.
7. Post on Kirupa.

View 3 Replies

ActionScript 3.0 :: Static Function Can't Find Non-static Functions

Jan 6, 2010

Ok, so I have a bit of a mess here (Which I'm probably not doing right anyway, which could be my problem...). I have a document class, I'll call it as Body.as, that creates an object from another class known as Headgear.as. There are also other objects created from other classes, or will be in the future. Now, amoung all this, Headgear.as and all of the other classes Body.as will use to make objects require the use of dragging functions (starting and stopping dragging). On stopping drags, position checks are then made to compare a particular hidden movieclip with the dragged MC.

To try and save myself some hassle (from making the same functions over and over to ensuring that when the objects are created I don't need to send a complete crapload of variables just to ensure the position checking function would work), I had the functions for the event listeners (Which are set-up on the draggable MCs in Headgear.as) just direct to functions in Body.as

[Code]...

View 6 Replies

Actionscript 3 :: Does Static Methods Need To Use Static Properties?

Dec 28, 2009

If I created a static method. say I decide to call on other methods within that static method. Do those methods I call on need to be static as well? what If I used some of the properties. Not to store data permanently, but just within that process. Do those properties need to be static ??

View 3 Replies

ActionScript 3.0 :: Static Classes And Static Methods?

Feb 21, 2007

Yesterday I found myself wondering, what is the difference between either having a class with methods that are all static, or simply giving your class the static attribute?

View 9 Replies

ActionScript 3.0 :: Static Class Needs A Non-static Function

Nov 22, 2009

Alright, so I have a class that is linked (via the linkage panel) to a scrollbox class. I'll paste the class here:[code]Ignoring the formatting, the commented out functions are the ones causing the issue. Adobe says that it's a static class and I can't use non-static functions. The way I wanted to use it was:

1. Call the page button generating function above.

2. In the main code in my program is this line:scrollbox.setClickFunction(historyContent.generate Page);So when the buttons that are supposed to be generated are clicked, the scrollbox class can call the History pages generatePage function and pass it which page to show. (I did this because there was a lot of text and a limit on how much would display, so small chunks sounded logical).

3. In the onClick function (which I haven't finished yet because the rest wont work), when you click one of the buttons it calls the set function. Its that simple.

View 4 Replies

ActionScript 3.0 :: Save Data Through .exe And .app Application?

Dec 27, 2011

I am working on a flash applicaton and the final required output is of .exe and .app format.In this application. I need to save some text data on the system but as the file operation are not allowed in the .exe and .app files.I am unable to save this data.Is there any othere way to save the data on the system through exe application.

View 8 Replies







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