[Flashjs] js to as communication not working in IE
karthick p
sivakarthick at gmail.com
Mon Apr 10 07:59:58 EDT 2006
Thanks Geoff.
ok. i willl try using flash movie.
On 4/6/06, Geoff Stearns <geoff at deconcept.com> wrote:
>
> why don't you just use flashpaper then?
>
> i'm not that familiar with it, other than reading a few documents created
> with it - are you just trying to make some sort of pagination mechanism?
>
>
> why do you need the javascript integration at all? you could do it all
> inside a flash movie.
>
>
>
>
>
> On Apr 6, 2006, at 12:50 AM, karthick p wrote:
>
> Thanks Geoff.
>
> what my specification is ,i want to do like what Flash paper does.
>
> The think is i am very new to flash.The only help i have is Google.
> i search and findout Flash/Javascript Intergration kit and begin to do
> like this.
>
> ok.is there anyother way to do .
>
> help me to solve the problem
>
>
> On 4/5/06, Geoff Stearns <geoff at deconcept.com> wrote:
> >
> > hmm, well you have a very strange setup...
> >
> > i've never thought of using flashobject like that - and in fact there
> > are probably many issues with the way you are using it.
> >
> > when you change the movie, and call fo.write() again, it will replace
> > the first movie with a new version, basically reloading your stuff.
> >
> > it would be much cleaner to just put a function in your flash movie
> > that did a loadMovie() on the new swf, and then did everything inside
> > the same movie.
> >
> > is there a reason why you have the specific setup you have now?
> >
> >
> >
> > On Apr 5, 2006, at 7:27 AM, karthick p wrote:
> >
> > > hi ALL ,
> > >
> > > i am new to this mailing list.
> > > i have a problem in js to actionscript communication only in IE.
> > > (Its works fine in mozilla and netscape).
> > >
> > > i am using IE 6.
> > >
> > > what i am trying to do is, loading a movieclip using
> > > fo.addVariable("filename", "page1.swf");
> > >
> > > and trying to search text in the movieclip "page1.swf" by calling
> > > actionscript function searchText( )
> > > and its works fine.
> > >
> > > what the problem is when i load the next page "page2.swf"
> > > by calling javascript:getnxtpge();
> > >
> > > its not working in IE.
> > > ie., the actionscript function searchText( ) is not getting called.
> > > But its works fine in mozilla and netscape.
> > >
> > > Here is the program.
> > >
> > >
> > > <html >
> > > <head>
> > >
> > > <title></title>
> > > <style type="text/css">
> > > #flashcontent {
> > >
> > > width: 630px;
> > > height: 500px;
> > > }
> > >
> > > </style>
> > > </head>
> > > <body>
> > >
> > > <div id="flashcontent" style="overflow:auto" >
> > > This is replaced by the Flash content.
> > >
> > > </div>
> > > <script type="text/javascript" src=" flashobject.js"></script>
> > > <script type="text/javascript" src="fo_JavaScriptFlashGateway.js"></
> > > script>
> > >
> > > <script type="text/javascript">
> > > // <![CDATA[
> > >
> > > var fo = new FlashObject("search.swf", "mapcontrols", "610",
> > > "912", "8", "#FFFFFF");
> > >
> > > fo.addVariable("filename", " page1.swf");
> > > fo.addParam("scale", "exactfit");
> > > fo.addProxy();
> > > fo.write("flashcontent");
> > > function doAlert()
> > > {
> > > alert("not found");
> > > }
> > >
> > >
> > >
> > > function loadnxtpage()
> > > {
> > >
> > > fo.addVariable("filename", "page2.swf");
> > > fo.addParam("scale", "exactfit");
> > > fo.addProxy();
> > > fo.write("flashcontent");
> > > }
> > >
> > > function getstring(searchstr)
> > > {
> > >
> > > fo.call('searchText',searchstr);
> > >
> > > }
> > >
> > > // ]]>
> > > </script>
> > > <form name="outForm" method="POST" action="">
> > >
> > > <input type="text" name="outField" value="" /><br />
> > > <input type="button" value="Send" onclick="javascript:getstring
> > > (document.outForm.outField.value );"/>
> > > <input type="button" value="next"
> > > onclick="javascript:loadnxtpage()"/>
> > >
> > > </form>
> > >
> > >
> > >
> > > </body>
> > > </html>
> > >
> > >
> > > help me to solve this problem.
> > >
> > > _______________________________________________
> > > Flashjs mailing list
> > > Flashjs at osflash.org
> > > http://osflash.org/mailman/listinfo/flashjs_osflash.org
> >
> >
> > _______________________________________________
> > Flashjs mailing list
> > Flashjs at osflash.org
> > http://osflash.org/mailman/listinfo/flashjs_osflash.org
> >
>
> _______________________________________________
> Flashjs mailing list
> Flashjs at osflash.org
> http://osflash.org/mailman/listinfo/flashjs_osflash.org
>
>
>
>
> _______________________________________________
> Flashjs mailing list
> Flashjs at osflash.org
> http://osflash.org/mailman/listinfo/flashjs_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashjs_osflash.org/attachments/20060410/6c39a8d9/attachment.htm
More information about the Flashjs
mailing list