I want to access some flashvars in my preloader for a Flex application. How is this possible?
Regards Adlertz
Try the loaderInfo.parameterspreloader attribute .
loaderInfo.parameters
From the preloader, you can access flashvars indirectly through the SystemManager as follows:
var systemManager:SystemManager = parent.parent as SystemManager; var params:Object = LoaderInfo(systemManager.loaderInfo).parameters;
I accessed flashvars using loaderinfo from the root of my sprite directory.
var flashvars: Object = root.loaderInfo.parameters;
The hard part was knowing when the root was not zero. But I found a blogpost:
http://dndigital.net/blog/2008/08/accessing-flashvars-in-a-custom-flex-preloader/
Source: https://habr.com/ru/post/1705247/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705242/sharpsvndll-cnet-get-svn-repository-in-windows-application&usg=ALkJrhgqF0AocBKkJptvnJbva9jLTC2b3QHow to make CRUD code to work with WPF DataGrid? - wpfHow to call static class methods from msbuild? - msbuildRSS Browser Detection - xmlC # threads for file management - multithreadingHow can I guarantee that the "wait" is sent? - javaIntercepting attribute changes in classes inside a class - Python - pythonThe smart card client certificate is not registered in the personal store on the Win 2003 x64 server - certificateHaving an image lacking metadata when uploading to PHP - phpObject Relational Mappings in .NET and Using Stored Procedures - .netAll Articles