Hi Ben,
You can try extending the Application class and override the get parameters method. public class MyApplication extends Application { private var test_params:Object; public function MyApplication() { test_params={foo:"bar"}; super(); } override public function get parameters():Object{ var super_params:Object=super.parameters; for (var i:String in test_params){ if (!super_params[i]) super_params[i]=test_params[i]; } return super_params; } } The above class will return the actual flashvar params recieved from html if any + any properties of your test_params object (if the same param is defined both as a flashvar and in your test_params object, the flashvar param value will be returned. You can use this as the entry point of your Flex application. <?xml version="1.0" encoding="utf-8"?> <ns:MyApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns="*"> </ns:MyApplication> Hope this helps, Tibor. www.tiborballai.com --- In flexcoders@yahoogroups.com, "Benjamin" <benjamine...@...> wrote: > > Thanks for quickly responding. Yes, this will work if I am using > using the html to launch the application in flexbuilder, but I am using the > swc to launch the application. The reason I am using the swc instead of html > is that I don't have debug version of flexbuilder in my browser. If I use swc > as run file, then it will launch in local fash player as a standalone > application with debugger. > > > --- In flexcoders@yahoogroups.com, David Pariente <xxmapachexx@> wrote: > > > > Maybe im completely wrong but when you save in flex builder, it should > > build the html and swf. > > > > You can have a special html with the params, just save the app in builder > > and load ur html from any browser. > > > > So u change ctrl+f11 into ctrl+s, alt+tab, f5. ;) > > > > ------------------------------ > > David Pariente > > RIA consultor > > ------------------------------ > > > > El 16/12/2009, a las 20:15, "Benjamin" <benjamine_df@> escribió: > > > > All, > > > > When I launch my flex application using browser, I am able to pass the > > parameters through html page/javascript etc. But during development, my run > > configuration in Flex builder refers to the .swc file, so flex application > > is launched directly using flash player. Is there any way to pass > > parameters while launching this way? > > > > Ben > > >