Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-08-2001, 12:31 PM   #1
webwalker
Registered User
 
Join Date: Mar 2001
Posts: 3
Default

I am having some problems with my Javascript sending a value to my flash movie. It's working great in IE but not at all in any version of netscape. You can see what's happening with it at http://www.cylabs.com/new_site
The javascript basicaly tells a text variable (labeled number1) in my movie what it should contain. the text variable then tells the movie to goto and stop on that frame. This keeps the movie synced up with the lower frame html page. I'm sure that the problem is that I'm sure that the issue is that I am not forming my javascript correctly for Netscape but I have tried 3 different methods, all of which work in IE and none work in Netscape. Thanks in advance for the help.

The code is as follows:

head=

<script language = "javascript">
<!--
function UpdateFlashNav(input)
{
parent.frames("top").document.movie.SetVariable("n umber1", input);
}
//-->
</script>

body=

<body onload="UpdateFlashNav('1')" bgcolor= "#FFFFFF" MARGINHEIGHT="0" TOPMARGIN="0" MARGINWIDTH="0" LEFTMARGIN="0" >

[Edited by webwalker on 03-08-2001 at 07:36 PM]
webwalker is offline   Reply With Quote
Old 03-11-2001, 03:07 AM   #2
drZoode
Registered User
 
Join Date: Feb 2001
Posts: 35
Default

The Flash method (SetVariable) shouldn't work with Netscape 6 (no support for LiveConnect plug-in, until they change their API). But the Flash method should work in Netscape 4.x (unless you're on a Unix box).
Please check if you have set the LiveConnect to TRUE and if the src attribute of your EMBED tag matches with the movie name.(in your case it should be movie)
drZoode is offline   Reply With Quote
Old 03-11-2001, 04:14 AM   #3
drZoode
Registered User
 
Join Date: Feb 2001
Posts: 35
Default

Oops! I've made a mistake. The last phrase should be "...the NAME attribute of your EMBED tag should match the ID attribute of the OBJECT tag."

I think the problem might be related to the name that you have chosen for your upperframe name ("top" is a JavaScript reserved word and refers to the topmost window)
Name your upper frame "myUpperFrame" and try this:

top.myUpperFrame.document.movie.SetVariable("x","y ");

instead of referring using parent property you can refer to the frame which contains the Flash movie by using the
"top.childFramesName" approach...

I hope it works...




drZoode is offline   Reply With Quote
Old 03-11-2001, 02:00 PM   #4
webwalker
Registered User
 
Join Date: Mar 2001
Posts: 3
Default still no good in Netscape

Thanks for responding.
I thought about the top thing too. I had already made that change locally and that didn't fix it. I tried the change that you suggested and again it works fine in IE and will not pass the value of the variable in Netscape. This site is residing on a Unix box but why would it be working with IE and not Netscape if the issue is unix? The whole thing is baffeling to me. Any help would be appreciated. At this point I am considering producing a second more generic movie for netscape users. Thanks again for the help
webwalker is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript form to Flash movie Help socaldivemaster Other Flash General Questions 4 02-24-2009 05:47 AM
Flash, JavaScript and the HTML DOM (dHTML) drZoode HTML and JavaScript 10 08-21-2008 07:59 PM
Javascript to Flash problem joost_db ActionScript 1.0 (and below) 3 12-09-2005 03:11 PM
Javascript to Flash communication matt poole ActionScript 1.0 (and below) 10 10-29-2003 03:01 PM
help with javascript interacting with flash webwalker ActionScript 1.0 (and below) 0 03-08-2001 12:32 PM


All times are GMT. The time now is 08:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.