Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fscommand to call to javascript (document.write)

Status
Not open for further replies.

fuzzmo

Technical User
Mar 5, 2001
2
US
Hello!

I'm trying to call a javascript function from within flash using the FS command code from the esteemed colin moock over at moock.org.

But I don't want to call up a new window.

Instead, I'm trying to write to a layer within the html page that the swf is already embedded into:

function layer()
{
document.layer1.write(&quot;<embed src='bowling.mpg'width=120 height=80></embed>&quot;);
document.layer1.document.close();

We're able to accomplish this in IE...

...but not in Navigator 4.x or NS6.

This function works when called from a plain ol' html button.

please please help!!

cheers,

Steve
 
Did you try stickin' parent.document.layer1...etc.

If it doesn't do it... Maybe you should post this on the Javascript forum:
forum216
pink3.gif

&quot;Blowin' for stars!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top