ActionScript 3.0 :: Flash Updating Code Libraries During Runtime Using RSLs?
Sep 6, 2010
I thought this was possible, but I seem to have trouble making it work.I want to have my code/class library stored in an RSL (as a SWF online) which is then loaded during runtime by the host SWF. I learned about this technique from Colin Moock in his book Essential Actionscript 3.0 (Chapter 31: Distributing a Class Library).Now, I know that if you share graphics between SWFs via RSLs, you can update the graphic in the RSL and have all SWFs that access that RSL use that updated graphic.But I want to store code in an online RSL, that is shared by multiple SWFs, and then when the code needs to be updated, I simply recompile the SWF (do I even need to worry about the SWC anymore?) containing the class library and upload and overwrite the existing RSL on the web. Voila! The code is now updated in all SWFs that share that RSL Class Library.
The problem is, I can't get it to work right. CS3 and CS4 aren't updating and CS5 just crashes on export!The code I'm testing with simply outputs some chosen text to screen.I want to change the string that's output by changing the code. Nothing fancy now, but it'll obviously be used for far more indepth stuff when (if?) I get this going properly.
View 1 Replies
Similar Posts:
Sep 6, 2010
I want to have my code/class library stored in an RSL (as a SWF online) which is then loaded during runtime by the host SWF. I learned about this technique from Colin Moock in his book Essential Actionscript 3.0 (Chapter 31: Distributing a Class Library).Now, I know that if you share graphics between SWFs via RSLs, you can update the graphic in the RSL and have all SWFs that access that RSL use that updated graphic.
But I want to store code in an online RSL, that is shared by multiple SWFs, and then when the code needs to be updated, I simply recompile the SWF (do I even need to worry about the SWC anymore?) containing the class library and upload and overwrite the existing RSL on the web. Voila! The code is now updated in all SWFs that share that RSL Class Library.The problem is, I can't get it to work right. CS3 and CS4 aren't updating and CS5 just crashes on export!
The code I'm testing with simply outputs some chosen text to screen.I want to change the string that's output by changing the code. Nothing fancy now, but it'll obviously be used for far more indepth stuff when (if?) I get this going properly.
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
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 21, 2011
What is the URL that Flex 4 uses to download RSLs at runtime? I want to check if I have access to this URL and that it is not blocked by the proxy that I am behind and would like to be able to put the URL into a browser to do this.Obviously there are many URLs (one for each swz file), but does anyone know what the basic URL pattern is, or can anyone give me a sample URL?
View 2 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
Feb 3, 2011
Is it possible to get auto completion for flash libraries in flash builder 4.0?
View 2 Replies
Nov 10, 2009
I have developed a flex application using the data visualization components. I am now trying to optimize the application and one of approaches I am trying is to use Runtime Shared Libraries.I have configured Flex Builder to deploy with Runtime Shared Libraries and have added the .swz file for the framework, datavisualization and rpc share libraries. After deploying, my application loads, however my axis values within each of my charts are missing. The axes themselves are shown, however they do not have their label units displayed. The series themselves are displayed too.I have tried this using the 3.4 SDK and also the 3.2 SDK within Flex Builder. I also tried compiling flex using the mxmlc ANT tasks and got the same results.I made sure that the framework RSL is getting loaded first and I also made sure that the global flash cache has been cleared before I tested.I can see from my access logs that the .swz files are getting loaded the first time I make a request for my application, so I am confident that I properly cleared the flash player global cache.
Does anyone know why my axis values would be missing only when I deploy with RSL??? Switching back to Merged mode, my application works fine and it is only when I deploy with RSLs that I get the issue.I have also tried to compile using only the framework RSL and not the datavisualization or rpc RSLs (keeping them in merged mode) and I get the same results, no axis values.
View 1 Replies
Feb 23, 2010
I've seen the Loom project, but are there any alternatives that are more mature (and actively developed)? I am looking for something that would allow load-time weaving of pointcuts into existing binary code at runtime with the AVM2 runtime.
Has any work been done in this area?
View 3 Replies
Aug 11, 2009
I am wondering if someone were able to do what I am trying to achieve using MC Tween 2. I need to be able to update X, Y coordinates while the tweening is running. I don�t want to restart it but update X, Y values. For example, I want to modify the distance to travel on an object in given time. It means that if tweening started with distance to travel 100px on Y coordinate and time to ravel is set to 10 seconds and if I change Y coordinate within 1 second of 10 to 200 px the the rest 9 seconds will tween the object to the 200 px point.
View 4 Replies
Aug 11, 2009
what I am trying to achieve using MC Tween 2. I need to be able to update X, Y coordinates while the tweening is running. I don't want to restart it but update X, Y values. For example, I want to modify the distance to travel on an object in given time. It means that if tweening started with distance to travel 100px on Y coordinate and time to ravel is set to 10 seconds and if I change Y coordinate within 1 second of 10 to 200 px the the rest 9 seconds will tween the object to the 200 px point. I hope I described clear.
View 4 Replies
Aug 11, 2009
what I am trying to achieve using MC Tween 2. I need to be able to update X, Y coordinates while the tweening is running. I don't want to restart it but update X, Y values. For example, I want to modify the distance to travel on an object in given time. It means that if tweening started with distance to travel 100px on Y coordinate and time to ravel is set to 10 seconds and if I change Y coordinate within 1 second of 10 to 200 px the the rest 9 seconds will tween the object to the 200 px point.
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
Nov 14, 2007
I'm trying to update the Flash 5 actionscript on an old Deconcept file to at least Player 7 and AS 2.0. Here's my updated code -The snow flake movie clip:
Code:
onClipEvent(load) {
// mostly just initializing some vars[code]....
When I trace the different variables I don't see any problems but the snow just isn't visible.
View 3 Replies
Mar 17, 2012
I am a learning programmer who is trying to do some simple experiments. However, when I go to change my code, the exported SWF never updates; it simply tests an older version of whatever I am testing. The only way for me to fix this is by restarting Flash, which is not ideal in any way.BTW I am using Flash CS5.5, if that means anything.
View 8 Replies
Jul 26, 2006
I would like to update this "Rollover Depth" script to work in Flash Player 7 (works in 6):url...The functionality works much better than the standard rollOver/rollOff scripts.I assume there's a problem with how the variables are declared, but haven't been able to fix it yet.[code]
View 4 Replies
Jul 11, 2010
Does anyone know how to recompile Adobe Flex 4 framework RSLs?
I'm using the compiler directive -dump-config to get the build config file that the FlashBuilder IDE is using for compiling my application. I then pass that config file into the mxmlc compiler so I can build from the command-line. The results of the command-line build are output to a folder other than bin-debug. bin-debug is a localtrust path, and it will an application will run from there without error. A Flash application in any other path requires configuring the Flash Player to trust that path OR that the compile be done with the -use-network=false directive. I prefer latter since I'll be distributing the results to lay users for evaluation, and I don't want to request that they modify Flash Player security settings.
The build config file doesn't specify that framework RSLs be rebuilt using the -use-network false directive. FlashBuilder itself doesn't even compile framework RSLs. It merely copies RSL swfs from the framework directory into the bin-debug. Those swfs apparently were compiled by Adobe with the default -use-network=true.
View 2 Replies
Sep 21, 2011
I've been working on a SWF that will be converted into a Projector file, no particular great shakes but some fun logic driving some aspects. Written Flex 4.5 it has been a doddle until I test the projector on a new / clean machine and without (v important this) a network connection. What happens is the movie fails with an... Error #2032: Stream Error: URL: file:///C:|/mydirectory/framework_4.5.0.20967.swz
after some research I realise this is an RSL (Runtime Shared Library) that is cached on the local machine (WIN7) under the 'C:Users\AppDataRoamingAdobeFlash PlayerAssetCache<8 Char Path>' along with a host of other RSLs. But in my disconnected state it doesn't work, however, if the machine is connected it does work (by downloading and caching the appropriate libraries from Adobe). Unfortunately I need to deploy this Projector file as a single entity and often into disconnected scenarios. Reviewing Flex's build options I've selected 'Merged into code' for the Framework Linkage that I assumed would create my single, deployable object but alas no.
View 2 Replies
Aug 18, 2009
I'm working on a project that uses a lot of "widgets" that are displayed in the main application. Many of these standalone swfs where the same code is incorporated several times ( for instance TweenLite ). I want to optimize this by removing this added code from each widget to reduce load time. I'm working on Flex Builder, but this is an actionscript/flash project. I'm not sure how I should do this
View 2 Replies
Feb 25, 2010
I am trying to figure out how to execute code once a button_btn is hit on stage at runtime.
View 3 Replies
Oct 20, 2010
I have a flash project that requires a swf file with over 300 textfields i.e a datasheet like in excel.i use actionscript 3 to dynamically add them at runtime.However I have a function calculate() that references them at compile time.So i think the problem is the caluclate() cannot find the textfields because they are still not added to the stage.How can i create them dynamically and after that add a function caluclate that will surely find the textfields?
Here is a code example of my work:
//add 50 textInput components
for (var intr:Number=1; intr<=50; intr++) {
var intTextField:TextInput=new TextInput();
[code]....
View 9 Replies
Jul 22, 2010
I used to write programs in the android sdk for google phone. One of the android developers guide that I read says that it is more efficient to declare a const public static const NO:String = "no";
var1 == NO;
var2 = NO;
than to do this
[code].....
View 1 Replies
Nov 16, 2009
I've been into coding for about 5 years now, but I'm a recent convert to Flash development. One of the questions I have at the moment is, considering that SWF files can be run by either Adobe Flash Player OR Adobe AIR, what's the real difference between the two runtime environments? What API's and Objects exist in one environment, but not the other?
Basically what I'm more or less trying to establish is, when would I want to develop an SWF for AIR, and when would I want to develop for Flash Player, considering that Flash Player can also execute locally (providing support for creating "desktop applications")
View 1 Replies
Feb 23, 2010
We are building a fairly complex application that we need to be able to release different parts of at different times. To help us solve this problem we are using RSLs and Modules.so let me describe the projects (names have been changed to protect the innocent)[code]We have one application client that loads the areas of the application as modules. We have a core RSL that does things like login and holds entitlements and provides an API for the modules to access this sort of state and also to communicate with each other.
When we load client we only want the core rsl to be loaded as that is that is currently required. When the groceries module is loaded we want the groceries rsl to load and likewise when the bakery module is loaded we want the bakeryCore rsl to load.In reality this isn't what happens. If we set the projects up like that at run time the core rsl loads at application startup but the module RSLs do not load when the module is loaded. If we run an application from the project that houses the groceries module then he rsl loads when the application loads but not when the module does. We need a way of loading the rsl when the module loads.At the moment we specify groceriesCore and bakeryCore in the client application so they all load when the client loads. This is obviously not a good idea as when we add another 30 departments we don't want all these departments being downloaded at application startup - we only want them to be downloaded when they are required - when the application loads.
View 1 Replies
Apr 1, 2009
how exactly RSLs work with AIR? I have a terminal server that runs several instances of a very large AIR application, which unfortunately has 100M RAM on startup and 200 after a bit of use. This is obviously not really workable, and I'm thinking that RSLs may be a solution if they're cached on the machine. However I haven't been able to find much of anything on this, and I'd really like to know if anyone has.
On a second note, what are some good ways to reduce the initial memory size of an AIR applicaiton?
View 3 Replies
Nov 24, 2011
I have a pure AS3 project. I use Ant to build it. Here is a part of my ant script:
<target name="mxmlc">
<exec executable="${flex.home}/${mxmlc}" failonerror="true">
<arg line="-compiler.include-libraries=${lib}"/>
<arg line="-compiler.incremental=false"/>
<arg line="-compiler.optimize=true"/>
[Code] .....
The problem is that my resulting SWF is really big. When I checked what is inside I saw that it has mx.* libs from Flex. Why it is like this? How to kick mx.* from my SWF? In my code I don't use anything from mx.* library.
View 1 Replies
Feb 12, 2010
Are there any custom libraries available that allow me to code/publish in CS3 using some of the features of CS4?
EDIT: I say "some", because I understand that it is obviously nearly impossible to reimplememnt CS4 in CS3.
View 2 Replies
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
Oct 21, 2010
The following embed code works fine when I load swfobject.js locally. However, when I try to load the swfobject.js from Google Library APIs, the Flash movie fails to load. I know I'm using a valid key, and the swfobject.js file is definetely being loaded, but I get an "Uncaught ReferenceError: SWFObject is not defined (anonymous function)"
[Code]...
View 1 Replies
Feb 5, 2011
What are the best unit testing frameworks or libraries for AS3 programming? Specifically for projects that do not involve Flex, only Flash.
View 1 Replies