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%' 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
-~----------~----~----~----~------~----~------~--~---