Here there s a brief explanation of how we can "simulate" the RSL system used in Flex with pure AS3: loading an RSL without using flex?
但是,与已签署的RSLs有什么关系? 我们能够利用这一技术来装载SWZ的档案? 他们是否会被参与者 ca弄? 参与者在一个纯粹的SAP3项目中如何“重新使用”SWZ?
Thanks! Enrique.
Here there s a brief explanation of how we can "simulate" the RSL system used in Flex with pure AS3: loading an RSL without using flex?
但是,与已签署的RSLs有什么关系? 我们能够利用这一技术来装载SWZ的档案? 他们是否会被参与者 ca弄? 参与者在一个纯粹的SAP3项目中如何“重新使用”SWZ?
Thanks! Enrique.
OK, This is the solution (not tested yet but I m pretty sure it works)
Example from the Adobe s AS3 Reference:
//URLRequest, digest property:
var myURLReq:URLRequest = new URLRequest();
myURLReq.url = "http://yourdomain/users/jdoe/test01/_rsc/Automated/AssetCaching_rsc/test01/rsl.swz";
myURLReq.digest = "3B0AA28C7A990385E044D80F5637FB036317BB41E044D80F5637FB036317BB41";
var myURLLoader:URLLoader = new URLLoader();
myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
myURLLoader.addEventListener("complete", onC);
myURLLoad.load(myURLReq);
function onC(e) {
var someLoader:Loader = new Loader();
addChild(someLoader);
someLoader.loadBytes((ByteArray)(myURLLoad.data));
}
So, we can load a signed RSL (.SWZ) like any other SWF, BUT! we must use URLLoader, not Loader, and provide the digest property. Then we use Loader to load the byteArray from URLLoader. The signed SWZ is checked internally by the Player, and if it detects is signed by adobe, then it will be cached by the Player, we don t need to do anything. I think Flash Player checks automatically, and before loading any SWZ, if that SWZ is already cached by the player.
这是我所想的。
if you want to see more details, check my reply in FlexCoders:
http://tech.groups.yahoo.com/group/flexcoders/message/159010
SWC(ESWZ)签名被装入闪电器,而不是浏览器。 因此,目前只有Adobe才允许有可信赖的总督法。
预载量? 仅知道一种方式实际上并不是一种方式,而是说,在您之前,你就有一个信息页或标志页。 软体,当用户可能读物时,装上RSLs,列入使用与主用相同的RSLs的轻度SWF。 它是一种che,但当带宽是最低限度时,它就看到了它的使用,并且想在头一次装货时就把 ban放在 ban上。
在参与者之外卸载任何其他方式,我可以看到安全关切。
I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?
How can I delete the element with a certain index in a Flex XMLList?
I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...
I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...
I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...
When I make a new Flex application in Flex 4 beta 2 (Flash Builder), then it creates a border around the outside of the Panel in this example of a thick width. It places a border with a shadow on the ...
I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...
I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...