@Trinad - Your code works with minor alterations for me (I use a local copy
of Philips Ext Interface Example)

I have changed the swf to that; I also changed the version number

also "You must specify the ID of the SWF."
       attributes.id = "mainStage";

if after that your still having difficulties review your swf

http://learnswfobject.com/advanced-topics/external-interface/

--

@philbuilt - no your example is mixing the 2 methods for creating objects to
be used as params

both the following are valid.


var params = {};

params.ParamName = ParamValue;
params.AnotherParamName = AnotherParamValue;

or

var params = {
  ParamName: ParamValue,
  AnotherParamName: AnotherParamValue
};


- S



On 2 March 2010 18:32, philbuilt <[email protected]> wrote:

> dude,
> All your params, flashvars are closed.
> For instance your parm should look like this.
> var params = {
>        params.play = "true";
>        params.loop = "true";
>        params.menu = "true";
>        params.quality = "high";
>        params.scale = "exactfit";
>        params.wmode = "window";
>        params.bgcolor = "#000000";
>        params.devicefont = "false";
>        params.swliveconnect = "true";
>        params.allowfullscreen = "true";
>         params.allowscriptaccess = "sameDomain"; };
>
> On Mar 2, 11:09 am, sw <[email protected]> wrote:
> > Hi,
> >
> > I am trying to send some inputs from java script to Swf file.
> > I am ale to load the swf file but not able to send the inputs.
> >
> > Here is my jsp code.
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > <html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
> >         <head>
> >                 <title>SWFObject 2 dynamic publishing example
> page</title>
> >                 <meta http-equiv="Content-Type" content="text/html;
> > charset=iso-8859-1" />
> >                 <script type="text/javascript"
> src="swfobject.js"></script>
> >                 <script type="text/javascript">
> >         var ranString = Math.random().toString();
> >         ranString = ranString.substr(ranString.length -10, 10);
> >         var flashvars = {};
> >         flashvars.rs = ranString;
> >         var params = {};
> >         params.play = "true";
> >         params.loop = "true";
> >         params.menu = "true";
> >         params.quality = "high";
> >         params.scale = "exactfit";
> >         params.wmode = "window";
> >         params.bgcolor = "#000000";
> >         params.devicefont = "false";
> >         params.swliveconnect = "true";
> >         params.allowfullscreen = "true";
> >         params.allowscriptaccess = "sameDomain";
> >         var attributes = {};
> >         attributes.name = "mainStage";
> >         attributes.align = "middle";
> >
> >         swfobject.embedSWF("Sample.swf", "myContent", "500", "300",
> > "10.0.45.2", "expressInstall.swf" , flashvars, params, attributes);
> > </script>
> >         </head>
> >         <body>
> >         <div id="myContent">
> >                 <h1>Alternative content</h1>
> >                 <p><a href="http://www.adobe.com/go/getflashplayer";>
> > <img src="http://www.adobe.com/images/shared/download_buttons/
> > get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
> >         </div>
> >         </body>
> > </html>
> >
> > Here is my AS code:
> >
> >                         Alert.show("Start");
> >                         if (root.loaderInfo.parameters.rs == null) {
> >                                 Alert.show("Value"+
> root.loaderInfo.parameters.rs);
> >             }
> >                                 Alert.show("End");
> >
> > I can able to see the first alert message.I am not able to see the
> > other alert messages.
> >
> > Appreciate your help.
> >
> > Thanks,
> > Trinad.
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" 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/swfobject?hl=en.

Reply via email to