Re: [Flashcoders] Deleting Flash Vars
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
Re: [Flashcoders] Deleting Flash Vars
Don't pass your variables in with FlashVars??? Maybe load your data from a server-side script or similar. 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Deleting Flash Vars
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
Re: [Flashcoders] Deleting Flash Vars
- Original Message - From: Ketan Anjaria [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, April 21, 2008 5:59 PM Subject: [Flashcoders] Deleting Flash Vars // delete the flash vars to prevent other swfs from accessing delete (root.loaderInfo as LoaderInfo).parameters; but parameters is read only. Any ideas? It seems to me that you have a dangerous strategy. If there are other swfs that will try and load the parameters, you are trying to make the behaviour of the application dependent on the load order of the swfs. Not good. Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Deleting Flash Vars
No this is more for the case of a shell swf loading external content. I want to prevent the external content from accessing any FlashVars. The shell is the only thing that will need the FlashVars. On Mon, Apr 21, 2008 at 11:24 AM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Ketan Anjaria [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, April 21, 2008 5:59 PM Subject: [Flashcoders] Deleting Flash Vars // delete the flash vars to prevent other swfs from accessing delete (root.loaderInfo as LoaderInfo).parameters; but parameters is read only. Any ideas? It seems to me that you have a dangerous strategy. If there are other swfs that will try and load the parameters, you are trying to make the behaviour of the application dependent on the load order of the swfs. Not good. Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ketan Anjaria 415.260.8742 f. 415-358-4278 [EMAIL PROTECTED] www.kidbombay.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders