Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Javascript help
From: Mitchell, Shawn
Date: Mon, 20 Mar 2000 20:12:52 GMT

Ben

ok ok i think i know what you're asking for, and i had to skool one of my
co-workers on this xact sub, last week.

on the .html page that has the flash file embedded, you need to add the
below script to the header:

<SCRIPT LANGUAGE="JavaScript">
function image1()
{
window1 = window.open("WEBPAGE.html","aWIN",

"status=no,toolbar=no,location=no,menu=no,width=250,height=250,scrollbars=no
,resizable=no,border=0");
window1.moveTo(400,450);
}
// window1.moveTo(400,150); is the X/Y cords where you want the window to
appear
</SCRIPT>


you can adjust it to your liking, x/y cords and the size and if you want
menu bars etc

WEBPAGE.html <------ type in the page you are calling


Next:
now in the flash movie you want to "Load Movie" and type this code:

JavaScript:image1();

Note that image1 () is the function you are calling, so if you change the
name of the funtion in the script and not in flash it will not work.

Good Luck

Plastik



-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Ben Park
Sent: Saturday, March 18, 2000 6:33 PM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Javascript help


Hi
I had a go at this myself, and couldn't get it to work.
I thought that you had to do it in Flash like this -

On (Release)
Get URL ("javascript:newWindow
(http://members.home.com/advantagewebsolutions/singles/thisisit.htm")
End On

- so as to tell it where to go (and no I've done almost no javascript at
all before...just minor modification of other people's scripts)
and then put the html bit in, like your example below....I even tried
changing the "windowname" part to something different - (temp1 I think I
called it) and it still doesn't work..

Although it opens the html page, it just opens like it does normally...it is
not a popup window with the address bar and refresh, forward/back..etc
buttons removed, like I wanted...

Anyone actually get this working?

Ben


-----Original Message-----
From: Cheri Harder <chericaathome [dot] com>
To: flasheratchinwag [dot] com <flasheratchinwag [dot] com>
Date: 14 March 2000 20:59
Subject: FLASH: Javascript help


>OK, it is time I learn Javascript. I used the bloodykisses tutorial to
open
>a new window. I put the
>
><script language="JavaScript">
><!-- function newWindow()
>
>window.open("http://members.home.com/advantagewebsolutions/singles/thisisit
.
>htm","windowname",toolbar=0,scrollbars=0,resizable=0,height=350,width=600")
;
> } // -->
>
></script>
>
>after </title> and before </head> in my HTML page with my main Flash movie.
>Within Flash, I put
>
>javascript:newWindow()
>
>in the URL window of the GetURL action and left the "window" box blank for
a
>resultant code of:
>
>On (Release)
> Get URL ("javascript:newWindow()")
>End On
>
>Can't check it in IE because I'm using the 5.5 beta & javascript isn't
>working with that. Netscape gives me javascript error
>
>"JavaScript Error: [unknown origin]:
>newWindow is not defined. "
>
>Now, I know that newWindow is the name of the function I just created in
the
>html document. What I don't understand is what is telling the Flash movie
>to look at the originating html page to find the function? Or, I guess,
>what is _supposed_ to be telling it to look there? Since it is not finding
>that function, I am assuming I've missed a major concept here.
>
>~~~~Cheri Harder~~~~~
>charderatawsolution [dot] com
>Advantage Web Solution
>www.awsolution.com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World's Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]