Thanks Venkat. I also have the same thoughts .Just confirming and you provided a clear cut answer to my confusion.
With Regards Anurag On Sep 29, 10:06 pm, "Venkat Viswanathan" <[EMAIL PROTECTED]> wrote: > Yeah, precisely. You answered your own question :) > > Well, if you are aware of the way Flash works, if you want to show anything > in the preloader, there are a few undocumented rules... > > 1. The image has to be of a very small file size > 2. It has to be a part of the SWF and should not be externally loaded at > runtime > 3. The image has to be present in the first frame of the SWF. > > Well... Flex handles the 3rd point on its own. All you should ensure is that > the image you are loading should be embedded in your Flex application. Its > because you are loading your application, you cannot load something else at > that time and show that image as the preloader of your application. Its > always better to embed the preloader image. > > Regards, > Venkatwww.venkatv.com > > On Mon, Sep 29, 2008 at 4:31 PM, Anurag <[EMAIL PROTECTED]> wrote: > > > Thanks for ur reply. > > > But my problem is during preloading U will not be able to access > > Application.application also ur init event will not be fired untill ur > > loading will be done.I am attaching my preloader like > > > preloader="preloader.Preloader" > > > in the application tag. > > > With regards > > Anurag > > > On Sep 29, 12:32 pm, Dips <[EMAIL PROTECTED]> wrote: > > > Hi Anurag, > > > > To access parameters passed by HTML wrapper you can use > > > Application.application.parameters property. See the example below: > > > > HTML > > > --------------------------------------- > > > <html> > > > <body> > > > <table width='100%' height='100%' cellspacing='0' cellpadding='0'> > > > <tr><td valign='top'> > > > > <object id='mySwf' classid='clsid:D27CDB6E- > > > AE6D-11cf-96B8-444553540000' codebase='http:// > > > fpdownload.macromedia.com/get/flashplayer/current/swflash.cab' > > > height='100%' width='100%'> > > > <param name='src' value='Size.swf'/> > > > <param name='flashVars' value='firstName=Nick&lastName=Danger'/ > > > > <embed name='mySwf' src='Size.swf' pluginspage=' > >http://www.adobe.com/go/getflashplayer'height='100%<http://www.adobe.com/go/getflashplayer%27height=%27100%>' > > width='100%' > > > flashVars='firstName=Nick&lastName=Danger'/> > > > </object> > > > > </td></tr></table> > > > </body> > > > </html> > > > > MXML > > > ------------------------------------------------ > > > <?xml version="1.0" encoding="utf-8"?> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > > layout="absolute" > > > creationComplete="init()" > > > > <mx:Script> > > > <![CDATA[ > > > > private function init():void > > > { > > > trace("First Name: > > > "+Application.application.parameters.firstName); > > > trace("Last Name: > > "+Application.application.parameters.lastName); > > > } > > > ]]> > > > </mx:Script> > > > </mx:Application> > > > > Hope this will help you. > > > > Cheers > > > Dipz > > > --------------------------------------www.webvariations.com > > > > On Sep 29, 11:41 am, Anurag <[EMAIL PROTECTED]> wrote: > > > > > Hello All, > > > > I am working on a application where I have to show an > > > > image in a custom preloader but the image path will be passed by HTML > > > > rather than loading it from assets .But I am unable to get > > > > App.app.param working.and unable to get way around.I know it may not > > > > be possible. > > > > > Please help me if anyone had a better idea on this. > > > > > With Regards > > > > Anurag --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

