ActionScript 3.0 :: Shared Libraries - Cached BUT If Add Another Element?
Jan 22, 2011
using shared libraries at the moment for a scalable e-learning course. All the elements are to be used over multiple screens. BUT if I have to add a new element to that published shared swf - then next time I access my learning program it will have to download the WHOLE NEW shared library - is that right? ie: defeating the purpose in the first place. So if that is true then the best idea would be to use separate shared libraries. ie: sharedLibraryMusic1.swf sharedLibraryMusic2.swf for newer mp3s etc...
Or is this nonsense. ie: A new updated shared library with a "little" new element would not cause the whole swf to be downloaded again??? This is so important as it can make or break the download speeds.
View 4 Replies
Similar Posts:
Jun 30, 2010
I've started using Shared Libraries and this subject peaked my interest... does Flash still have load timing issues with Shared Libraries? I found a few site online that mention that your Flash project will load but if it didn't have time to load your Shared Library, it simply won't load it and you are out of luck. Is this still true with the latest version of Flash? If so, how do I preload the library to make sure it doesn't happen?
View 1 Replies
Jan 28, 2012
How can I do the following in Flex 4.5 or later: Compile an swc library file containing packages of simple functions Compile an swf application referencing the swc file as RSL Publish the swf application Send the source code of the swc file to another developer Allow the developer to modify the code of some functions while keeping their interfaces Allow the developer to compile the source code into a new swc file using only compc Allow the developer to replace my original swc file with his new swc file, then execute my swf application having the new swc file in the same directory.
View 1 Replies
Jun 7, 2011
Suppose that I have two applications running on the same page. I have the Libraries compiled into the SWF file: [code]Is RSL intended to just improve the download time (via caching) or does it also lower the memory foot print of an applicaiton?
View 1 Replies
Oct 1, 2009
1. I have a main app. It has a TweenLite project added as library. The linkage type is "Merged into code". All the classes including "TweenPlugin" are checked. If I check somewhere in code
ActionScript Code:
var obj:Object = getDefinitionByName("gs.plugins::TweenPlugin");
and then watch the object, it gives me: obj = gs.plugins.TweenPlugin$(@2edfbc1), which is pretty logical and is how it should be.
2. I have a module project, which has TweenLite project added as a library with linkage type checked to "External". I simply make a release build of this module.
3. In main app I load to released module manually (not through Flex module mechanisms), just with Loader class. Not really more complex than this:
ActionScript Code:
_loader = new Loader();
_loader.addEventListener(IOErrorEvent.IO_ERROR,onLoadingError);
_loader.addEventListener(ProgressEvent.PROGRESS,onLoadingProgress);
_loader.addEventListener(Event.COMPLETE,onLoadingComplete);
try
{
_loader.load(new URLRequest("some.swf"));
4. In the module there is TweenPlugin class used somehow in the code. Pretty natural thing is that class definitions are inherited from the application domain of a loader to an application domain of a loaded content. So the TweenPlugin class should be available.
However I get the error:
Quote:
ReferenceError: Error #1065: Variable gs.plugins::TweenPlugin is not defined.
View 6 Replies
Jan 26, 2011
I'm using AS 2.0 and experimenting. I've got one main movie, with buttons at the top, each button loading a movie into a common movie clip...there are nine buttons/movies in all.Here's my problem. The nine movies have some common elements which seem perfect to put in a shared library. The sharing works, but when I plug the shared elements (either backgrounds or buttons) into the movies:1. Any text typed in Flash disappears (the text is Classic and Static), and;2. The buttons lose their "button" properties. Hyperlinks/AS coding will not work on them. I've made sure the buttons have an instance name. I even tried creating invisible buttons on a layer above the library-linked buttons (having the latter just for show), but strangely, the invisible button, when placed directly above the library-linked button, doesn't work either.
View 1 Replies
Sep 10, 2010
Preface: I'm using Flash CS4 Professional for the Mac, AS3 and Flash Player 10.
I have an RSL (runtime shared library) SWF that contains bundled classes which I store in an online location. I also have another SWF that access that runtime shared library in order to instantiate it's classes and use their methods/functions.
Here's the code of the RSL:
Code: Select allpackage {
import com.thisCompany.customClassOne;
import com.thisCompany.customClassTwo;
import flash.display.Sprite;
[Code]......
I've also tried putting the code Security.allowDomain('*') (from import flash.system.Security) in the RSL SWF and it doesn't work.
what to do to let my my host SWF properly access the objects and methods/functions of my RSL in another domain?
View 1 Replies
Dec 3, 2009
I'm creating a small size Flex movies which contains two line charts, at the moment the size of the release build swf is 343KB, which is too large for our needs.
I've tried changing the loading of the SWC file to Runtime Shared Libraries, but I found that this removed the text of the charts (the text for the x and y axis). Why would the text be removed when the Framework linkage is set as a Runtime shared library?
View 1 Replies
Mar 13, 2009
I created a very simple experiment to attempt to access the same shared object in Flash Player and AIR.
A Flash SWF creates a local shared object.
A AIR application (being tested from CS3 or installed) opens the same shared object.
The data does not persist. Is this theoretically possible?
View 1 Replies
Mar 18, 2012
I know that there is no such function as getElementByName in Flex but I also now that you can do this["object_id"] to get the element of the application u're in.What about getting an element inside another element?I've tried making element["id"] ? But in my try-catch it always runs the "catch" part..how do I get an element inside another element just having it's id in dynamically created string form?
View 2 Replies
May 10, 2010
I have flash where there is a link for song download. And, at the bottom of the flash I've a count, loaded thorugh flash vars which should increment everytime donload button is hit. Please let me know what approach should i take to do that. can i call a Java method on donload button which will insert a row in the table and and then get the count and render it to the count variable in my flash?
May be this extremely confusing. Here is a very similar example on how it is done. This is actually very similar to what i want to do. [URL] on this link there is count below which increments you hit the download button.
View 1 Replies
Aug 18, 2010
I am building a shared whiteboard and I cannot get the shared whiteboard to be shared. I have successfully created a shared method and I see the shared object in the Admin Console that it is there and connected but can't see the drawing on a different browser. I am posting the entire actionscript code.
package
{
import flash.display.Sprite;[code]......
View 3 Replies
Oct 25, 2010
I've built a rather robust tooltip class recently that attaches and draws a single tooltip sprite to the root, then uses MOUSE_OVER to detect when it is over a tooltippable object, and shows the appropriate tooltip text. At the moment, I'm ensuring that any elements in my application which wants to take advantage of showing tooltips implement the ITooltippable interface, and expose a public getter, get tooltip().
[Code]...
View 0 Replies
Apr 13, 2006
Basically I have 14 text boxes, each box draws its content from an external txt file. Next to each text box is a button. I want the button to be either visible=true or visible=false depending on weather or not the text box has content or is "undefined" Here is what I have so far, and it's not working:[code] I would like a FOR loop to just run through the variables and check to see if any of them are undefined. if it is, then make the correct send button invisible.
View 8 Replies
Jun 28, 2009
There is the following bug in the gallery:Once you open up the gallery you see a container with all small thumbnails.If you start mouse over the main container you can see the following happen:
- shadow filter change
- quality of the thumbs change
There is a rotationY and rotationX on the main container. As soon as i remove that there is no bug and the shadow and quality of images is perfect.So what does flash do to children and their filters inside a container when using transform propertys before a MouseEvent happen to that maincontainer.You should use F5 a few times before you excaly can see it.
View 9 Replies
Dec 7, 2009
How do you know if the browser is actually using the cached swf RSL/library for Flex projects? I would like to be able to do different things from the preloader based on whether or not the user has never downloaded the library vs. they have it already cached by their browser.
View 1 Replies
Mar 17, 2010
My question is about XML loading. I need to avoid xml caching. On a web server, the technique is adding a random param to reload each time the XML file. But on local testing (in Flash CS4 IDE, CTRL + Enter), the following lines are not possible :
var my_date : Date; path = "toto.xml?time="+my_date.getSeconds()+my_date.getMilliseconds();
Is there any trick to bypass this issue ? I've read on different forum about the "delete" method, we delete the xml object and then recreate one new.
[Code]...
View 2 Replies
Mar 9, 2012
I'm coding an audio player using swfsound for non html5 compliant browsers. I've three sample files, sound1, sound2 and sound3.
After doing some tests, I've changed sound1, with other file, but surprisingly the original remains cached in the browser. I've deleted the original file, moved to other folder, no way.
The only way to reproduce successfully the new file is to active the "disable cache" feature. I'm looking for a way or method to unload the previous file (if there's one) before loading a new one. The audio player will be playing different mp3 files, and in the way that is working now, it won't succeed.
View 1 Replies
Mar 30, 2012
When we reference a SWF file from our ASP.NET page we append the version number to the SWF url, like App.swf?1.1.0.0. In a recent update, Firefox has continued to use a cached swf even when the version number changed, App.swf?1.2.0.0. We haven't noticed this behavior in other browsers.
Has anyone else seen this behavior? We don't want to disable caching completely. At this point we're probably going to change the name of the swf for each version, like App.1.2.0.0.swf, which seems a bit excessive.
View 1 Replies
Dec 30, 2009
i had manny mp3 and wave files in library and my fla file was aprox 700MB,now i have deleted all mp3 and wave files, but the fla file is still 700MB.how is this possible?in start i have loaded wave files but at some point flash told me no memmory awailable.so i tought.ok i'll delete this waves and load mp3s insted..
View 4 Replies
Feb 21, 2007
I guess my question is pretty simple for some of the guru's here, but i gave up with this already Im writing an photo gallery application for a website, everything works just perfect, but i have the following problem: Im using the events onLoadComplete and onLoadStart to display an small popup alerting the user while the picture is downloading... so how could i check if the picture is already cached ?, so i could use an IF statment to only show the popup if the picture has not been downloaded before? This is the relevant part of the code that im using right now, it works perfect, but it shows the "loading clip" EVEN if the picture is already there
[Code]....
View 5 Replies
Aug 31, 2009
My problem is that once flash reads an XML, it then wont read the XML again but rather uses a cached copy. This causes problems as I want it to update a record number in the XML.
My flow of data is like this:
1)Flash reads (and presumably caches) an xml file.
2)User enters data into flash (including update data for xml).
3)Flash sends data to PHP.
4)PHP edits XML file (adds a line and updates a record #).
5)Repeat above.
In practice what happens:
I have a recorded number recorded in the XML. (say 10)
Flash reads the recorded number from the XML. (still 10)
Flash updates the recorded number (now 11)
Flash sends the number to PHP which updates the XML (so XML is now 11)
When process is repeated: Flash uses cached XML so reads record number as 10!!
View 3 Replies
May 28, 2009
I need to load a range of images and make them crossfade over time in a never ending loop (rotating gallery).
Using the Loader I display a preloader everytime I load an image.
The problem is that the next time I load the image the damn preloader shows up in a split second (because I'm using the Loader to load the image again).
How do I write the routine of loading an image and reuse it again WITHOUT calling the loader a second time?
I read online to read a the bitmapData into a variable. Well, that's all fine. But HOW do I reuse that Bitmap in a never ending carrousel?
View 9 Replies
Jan 5, 2012
I have tried various codes (probably wrongly) and read different posts and failed to achieve what I am after. So to cut going round in circles I have just made a simple test folder. There are 3 things I am trying to achieve so that latest files are loaded instead of browser cached versions.
Everything is linked properly in the TEST folder (apart from the code to get latest non cached version)
You can download the TEST.zip folder (73KB) here- [URL] It's completely safe to download and please ignore the annoying pop up ads. I signed up for free service hence the ads.
The three things I want to achieve-
In the TEST.zip folder start with index.html.
1- There you will see >Enter Button< and >portfolio.pdf< button. Nothing will change on index.html page but the portfolio pdf will be regularly updated. So I want the >portfolio.pdf< to fetch the latest pdf always. I assume the code will go on the >portfolir.pdf< button?
2- >Enter Button< will take us to master.html page which contains master.swf. Master.html is only a container but master.swf will be regularly updated and needs to always load the latest master.swf version.
3- Load image.swf button will load image.swf. I want the button to load the latest image.swf file always.
View 1 Replies
Dec 7, 2009
We have a Flex application which doesn't currently use the Flex framework as an RSL. We're considering switching, but we're not sure what proportion of users will already have the framework cached.There's an added complication in that we're using the data visualisation components too, and we may have a choice as to which version of the framework we use.
View 2 Replies
Apr 5, 2011
In my application, I make numerous calls to preload images to brower cache in the background using Loader instances and ignore the complete event. I don't store the results in the application, but rather want to store them in the browser cache. The images have long Expires header dates.
When I want to use a particular image(s), I again use a Loader instance and call the same url and listen for the complete event to load the file to an Image.
The problem is that when I re-request the url for the "cached" image, it is making an http request with response 200 status, which I presume means it is hitting the server. How do I make sure that a request for a cached image never hits the server from Flex? I am finding that any request to a url for a cached image (with a long expires header) is making another request to the server, or at least that is my interpretation of it in Firebug.
View 1 Replies
Sep 29, 2008
We have a flash app (AS3) that reads some data from a local XML file and displays it in a cool way. The problem is that the browser(s) seem to cache this XML data, i.e. when we revisit the page containing the flash, it is rendered using out of date data (the XML file is updated regularly). We find we must visit the URL of the actual XML file and hit refresh (CTRL+F5) to get the new XML to load, and then go back to the page with the flash to see it rendered with the up-to-date data. Is there a way to remedy this? Perhaps the solution is like the one used to prevent caching of Javascript, i.e. appending a random GET param to the URL?
View 5 Replies
Apr 7, 2006
Look at the example: Left sqaure mc1 is cachedAsBitmap right square mc2 is usual MC.
Go mouse over the edge for scaling for both mc's. Cached movieclip goes crazy
How I can bypass this thing easily?
View 1 Replies
Jun 30, 2007
1. How long is an XML.load response typically cached for in Firefox/IE?
2. How long is an swf typically cached for in Firefox/IE?
I'm asking because I have an XML file that changes every few hours, and an swf that changes every few weeks. I'm noticing that the changes don't get picked up in Firefox, even after restarting my browser.
View 6 Replies
May 23, 2011
<root>
<function name="lala">
<metadata name="foo" />
[code].....
View 1 Replies