Have you tried setting your individual Flash Vars to null?

root.loaderInfo.parameters.someValue = null;

If you tried that and it didn't work, don't use FlashVars if you need that kind of security. There are many other options to FlashVars.


Ketan Anjaria wrote:
I am using FlashVars in an AS3 application.Is there a way to delete flash
vars once they are passed in?

What I would like to do is

// get the flash vars and set in application
var flashVars:Object = (root.loaderInfo as LoaderInfo).parameters;
for (var i:String in flashVars) {
     setValue(i, flashVars[i]);
}
// delete the flash vars to prevent other swfs from accessing
delete (root.loaderInfo as LoaderInfo).parameters;

but parameters is read only. Any ideas?
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to