Actionscript :: Rule Of Thumb For When To Re-download Data Versus Load It From Cache?

Jan 22, 2012

I'm new to Flex. Let's say we have a web application that needs to download several series of data (several thousand numbers) used by one screen.When the user leaves that screen and later returns to it (in the same session; that is, the user hasn't logged out then logged back in), should the application fetch the original downloaded data from cache or simply download it again? What are pros and cons of each and are there any general rules of thumb to follow when it comes to re-downloading data (e.g. again) versus simply getting it from cache? The goal would be to minimize user's wait time as long as there's no drawback.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Download And Cache In AIR

Oct 26, 2011

I've made a program using AS3, AIR and php to look up a remote dir, and download mp3 file to a folder on my local machine.It works fine.However, even if I delete the downloaded mp3s from the folder on my local machine, and run a test, the program seems to 'instantly' populate the folder with the mp3s again, as if it's getting them from some windows temp folder, and not bothering to re-download them.I was wondering if the above is the case, and if so, if there's a way to force it to download the file even if it resides in a temp folder somewhere?[code]

View 2 Replies

ActionScript 2.0 :: XML Loop Thumb Loader - Stuck On Current (Last) Thumb?

Nov 24, 2009

Using a bunch of the tutorials on this great site, I've been teaching myself AS, and inparticular the XML parse, etc. with the loop commands to load an ideterminate number of images, etc. attributed in an XML file.I've got the attached code to work before - and it works well here too, loading all the thumbnails in their correct location, and as per the XML file. BUT now it's part of this page, the 'current_thumb' seems stuck on the last thumbnail, and a rollOver of any thumbnail will cause only the last one to action. In addition, when I put the trace command in on the onRollOut function (trace(current_thumb_mc) I get "_level0.menu_mc.item3_mc" no matter which of the four tumbnails I rollOver.

//Initial P Value
p = 0;
//Project Information
//Assigning Information[code]..........

View 1 Replies

Data Integration :: Code That Was Written To Create A Thumb Galleryof Sorts?

Sep 29, 2006

I have some code that was written to create a thumb galleryof sorts...an image scroller that, when the thumbnail was clicked,another data area was populated with the xml data. I have removedthe image scroller part, making the main data area itself scroll. Ineed it to display the xml data when the image loads, instead ofmaking me click on the image to load it, which is what is currentlyhappening.

View 7 Replies

ActionScript 2.0 :: [FL8] XML Thumb Gallery Loaded In Another Swf Doesn't Seem To Load

Jul 19, 2006

I have completed the xml thumbnail gallery and it works standalone. I want to load it into another swf which is part of my main movie. The only problem is that when i do this the XML doesnt seem to load. If anyone could shed some light on this, that would be great. U can dl the FLA's below. Completed Gal here. Loaded into another clip here.

View 2 Replies

Php :: Flash - Flex - Connect To Data Service Via PHP Versus SOAP?

Aug 26, 2011

I am writing an application in Flash Builder 4.5. I am also writing a PHP Web service to access data from our MySQL database. This Web service will be made available to third party clients for them to develop applications to access our database as well, via SOAP.

Is there a big performance difference between connecting to the service in Flash Builder via connecting directly to the PHP file vs. connecting to a Web Service via SOAP?I would kind of like to connect to this service the same way that our clients will, to make sure things stay as uncomplicated as possible for future development, but performance is my main priority.

View 1 Replies

ActionScript 2.0 :: Load Captions From Array To Dynamic Text When Thumb Is Clicked?

Aug 6, 2009

how to create a image gallery that uses arrays from a text file rather than xml (this is because the project I have now generates alot of html coding and stores it within a DB, it doesn't have any set html pages so using flash and xml is out of the question as it needs to be relative to the html page).

I have got as far as including my own way to get captions to be displayed as well....but here comes the problem, no matter what loop i have tried the captions seem to stay on the 1st caption and not change as the different thumbnails are clicked..

here is my code

Code:
var locVar = new Array();
locVar = imgLoc.split(",");
var tmbVar = new Array();

[Code].....

View 2 Replies

ActionScript 1/2 :: Load Captions From Array To Dynamic Text When Thumb Is Clicked

Aug 4, 2009

i have this code below that i made using a tutorial....it loads vars from txt file splits it then puts it into an array....once in an array it the brings the pics in from the array to create thumbnails and a larger image. my problem is i have captions to go with it and when i try to load the captions nothing happens or can be seen to be happening. i dont know where i am going wrong as i have no output or compiled errors
 
[Code]...

View 14 Replies

Serialization - What Are The Pros/cons Of Using AMF Versus Serializing Data Between Flash And A Web Script/service

Nov 24, 2009

I was using the serializing approach between Flash and PHP for the longest time before AMFPHP had its 1.0 release (wow...that was a long time ago...in 2006)!Serializing using a sepiroth's AS library paired with PHP's built in serializing functions worked and I didn't change it because it did the job.

Should I switch over to the AMF format and technology? One pro is that the data exchange is probably more efficient for AMF because it's a binary format.I've also see other scripting languages/frameworks such as Python/Django, Ruby/Rails supporting AMF. I guess AMF is also a standard format. Does each language serialize data differently?

View 2 Replies

ActionScript 2.0 :: Variables In Cache - Refreshing Data

Feb 29, 2004

PHP Code:
<?
$dbHost= "localhost";
$dbUser= "sarin";
$dbPass="pingpong
$dbName= "sarin-_db";
$table = "calender";
[Code] .....

And I have a textfield with variable set to jor.. Which is the variable from the php file which holds data from the database. When I change text in the database it doesn't change in the swf unless I go to internet properties and empty the cache.... even when I hit refresh it doesn't update. How do I make it so each time u load the swf it refreshes data from the database?

View 7 Replies

ActionScript 3.0 :: Does Flash Cache Data By Default

Jul 17, 2011

does flash cache images and text loaded in AS3 by default? The code does not have any LSO's or any other read write senarios in it Just supposed to load the flash app when the page is loaded, and re-load again clean when reloaded.ut I noticed today that the images were not completely loading in FF5/Win Chrome/Win but did in IE8. I cleaned out the cache on these web browsers and everything seemed to be OK again. But I need to trust the user wont find an issue.

View 3 Replies

ActionScript 3.0 :: Flash And Cache - Where Does The Temporary Data Gets Stored

May 6, 2009

I am new to Flash and ActionScript platform. Presently, I am using ActionScript 3.0.I know only basics of Flash but not in depth. My issue starts here: For example, In Windows Operating System, Paint-brush uses Clipboard for temporary storage. My question is: Does Flash have Cache(i.e., buffer for temporary storage)? If Flash has Cache, then where does the temporary data gets stored, in what form, is the data accessible or atleast viewable?

[Code]...

View 1 Replies

Flash :: IDE Internal Cache When Loading External Data?

Aug 12, 2010

When retrieving external variables from the server URLVariables my Flash get stuck on first compilation values. Whenever I update server values flash compiles the first old values. Only after i restart CS4 IDE values are updated. Is there an internal cache?

There is nothing wrong with my code, because it works fine on my mac, but not on pc.

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

Actionscript 3 :: Manage Complex Models - Cache Data From Database?

Oct 24, 2010

My app has windows that are components. In my case, now I have 2 components that have a drop down list that show the current logged user lists. So when I use one component for the first time it make a request to database, save data in model, and load data from model, but when the second component opens, it will just load data from model. Easy for now: ListModel: this contains the current user lists.

Now I have another component but this needs the lists of another user. Where do I save these lists? I can't put in the ListModel as then will mix up with current user. Just a remind: there is not just 2 users. It might have more users, so it should be scalable.

View 1 Replies

Load A Movie To The Cache Without Playing It?

Aug 8, 2009

one question, can I load a movie in any giving time of the main swf without playing it and play it when I choose to? Or, can I load to the cache a movie so I can play it later?

View 12 Replies

ActionScript 2.0 :: Load Swf In Browser Cache?

Oct 20, 2008

i have around 50 swf files , example. main.swf,about.swf, services.swf, products.swf...... etc

main.swf is my 1st file which i embedded in index.html by using actionscript 2.0 dynamically i am loading the external files ( which is about.swf, sevices.swf.. ) whenever i click a specific button it loads a specific swf file. which works perfectly fine with me. but it gets really annoying each time i have to load the files and wait for the files to get loaded. i wanted a javascript or actionscript code which will load all my external swf files invisibly in the cache of the browser while browsing the website. So that whenever i click a button its load instantly without waiting to load again.

for further reference i have seen this kind of work in [URL]

View 2 Replies

ActionScript 3.0 :: Create Bitmap Data Cache For Each Frame Of A Movie Clip?

Jan 15, 2012

I found something when I create bitmap data cache for each frame of a movie clip:I got a movie clip, instead of presenting it immediatly on stage, I created a bitmap data array to store each frame of it, so I'm doing:
 
var body:MovieClip;     // some mc for body
var suit:MovieClip;     // some mc for suit, frame count is the same as body mc
body["part"].addChild(suit);     // it's a avatar, there's a sprite named "part" on body mc to contain suit mc

[Code]....
 
if i present the original body moive clip, everything is ok, but when I use cache, it begins to tremble, this is because the getBounds() method of movieclip returns different rectangle when mc is cached and mc is presented on stage. I tried trace out every getBounds() when caching and when Event.FRAME_CONSTRUCTED fire, they're different, making my cache crash!
 
I assum MovieClip class do not refresh until it's present to stage or some time in on frame, how can I get the real boundary of it if I need to cache it?

View 2 Replies

Flex :: Load The Image From Browser Cache?

Jun 17, 2009

I am trying to load an image in Flex from different places, and the image always loads from server again and again.Is there any way to load the image from browser cache?

View 1 Replies

ActionScript 2.0 :: Clean Cache When Load A Movie

Feb 22, 2006

I have read this tutorial but Im new to flash so I would be nice if someone could explain it a little bit more. Here is the AS:

myIdentifier=Math.round(Math.random()*10000);
loadMovie("myAnim.swf?uniq="+myIdentifier,1);

How do I use it? Lets say I have a movie with the name "movie1" and another movie with the name "movie2". Now I want to load "movie2" into "movie1" in an empty MC with the name "content" when I press a button.

View 7 Replies

Media Server :: Do FMS Cores Share The Same FLV Cache Or Does Each Core Have It's Own Cache

Jul 28, 2009

Do FMS cores share the same FLV cache or does each core have it's own cache?

View 1 Replies

Flash :: Flex - Adobe Player Cache: Does Data Persist Across Different Users Of A System

Sep 16, 2009

Does anyone know if adobe flash player cache data is available to other users on a system? For example: A user logs onto Windows XP, then uses my adobe flex application... and in the process of doing so downloads the signed flex lib... He then decides to mow the lawn and log off. At about 3pm the same day, his Mum can't hear the TV over the sound of the mower, so she decides to log in using a different XP user account. She proceeds to use the very same flex application. Does she also need to download the flex lib again, or would the data already be cached in the flash player?

View 2 Replies

ActionScript 2.0 :: Loaded XML Stays In Cache Load Another XML With LoadMovie SWF?

Jun 18, 2009

The whole problem is in the title. I have a gallery which looks a lot like coverflow. Each button in it loads a new gallery which is a swf with a new XML. The Problem is it only works on the first time i click on a button. The XML does not renew when i click on another button. It does load the new XML.

[Code]...

View 8 Replies

ActionScript 2.0 :: Script To Load Swf Files In Browser Cache?

Apr 13, 2011

I am trying to making a scroller, which is with 9 surgeons(all are doing there animations). Now they all are loading from outside to the scroller movieclip.

ANd its take time while loading..

Meanwhile I also want the other surgeons which having voice converstaion load in browser cahce..So when user clcik on the surgeon link the swf loaded in browser run fast or load fast.

View 2 Replies

ActionScript 3.0 :: Dynamically Load An Image Onto The Stage By Pressing A Thumb Of The Image In A Menu Item

Mar 20, 2012

I'm creating a moodboard application where the user can dynamically load an image onto the stage by pressing a thumb of the image in a menu item. I have most of that working but what I would like to know is that, if there is a way the user can interactively scale/transform the image when it is on the stage in the swf file?

View 2 Replies

Flash :: Layers In A Swf Refuse To Load (occasionally, After A Cache Clear)?

Jul 14, 2009

I have a swf with four frames. The first frame loads an external class that acts as traffic controller - looks at the root flashvars being passed in and redirects to frame 2, 3, or 4.

Frame 2 is a basic login screen. There's 5 layers - 2 background layers, the login screen, and a dummy text field. I also have trace statements on every layer, which I have speaking with javascript and writing out to the Firebug console. Since the swf requires database access to know what to do, it only works on a server.

The issue I'm having is that, occasionally, not all the layers on frame 2 load. All the actionscript on every layer fires successfully. What I'll do is clear my cache, and roughly 1 out of every 3 times, the only layer that's loaded is the bottom layer, or the bottom two layers.

I've removed the login movie clip and replaced it with dummy text - nothing. I put a preloader on the first frame - nothing. I created a loader swf to, in turn, load this problematic swf - nothing. I thought it might have something to do with order of rendering so I made those bottom layers semi-transparent - nothing.

Does anyone have any ideas of how to further diagnose this problem? While it's intermittent, it happens often enough to demand a fix.

View 2 Replies

Flex :: Load The Swfs Through Http So That The Client Browser Can Cache Them?

Dec 25, 2009

The client-side application is a Flex application and communicate with server-side java application using blazeds.As you know,most browsers don't cache SWFs loaded over https,but i want load the swfs through http so that the client brower can cache them and communicate with the server-side over https ?

View 2 Replies

Flash - Locally Cache Audio When Streaming With Sound.load() In Adobe AIR?

Sep 30, 2010

I'm building a mobile MP3 player with AIR, which streams audio using the Sound class's .load() function. I'd like to cache this audio as it's downloaded, to the the user's SD card. Is this possible without having to download the file twice??

View 2 Replies

ActionScript 2.0 :: One Button To Rule Them All

May 3, 2006

I want to have a _btn or _mc on stage that, when continuously clicked, loads sequential JPEGs from the library via attachMovie and tween fade it in. I can comfortably do that with a _btn per JPEG but do not know how to code for one _btn for, say, 20 JPEGs.

View 4 Replies

Flex :: Unrecognized Rule Error While Using Lex

Dec 7, 2010

[code]...

when i'm trying to compile this "lex comment.lex" i'm getting unrecognized rule error in lines 12 ,14 ,15.

View 1 Replies







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