Groups | Blog | Home
all groups > flash (macromedia) > november 2006 >

flash (macromedia) : Help - Adding URL To Object


Steve Schone
11/7/2006 10:25:02 PM
I'm Trying to add a live support URL to a symbol in an all Flash site -
http://www.netpro-solutions.com/ar_80009.swf

I've have these instructions:

Step 1: Copy the following code to the HTML page containing the FLASH object:

<script language='JavaScript' type='text/javascript'> function
openNTRsupport() {
window.open('http://www.inquiero.com/inquiero/anonymous2.asp?login=1&lan
g=en','WebAnonym','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,
resizable=0,width=476,height=364,top=150,left=200');
}
</script>

NOTE: The ID of the FLASH object must be "NTR Support".

Step 2: Assign a button with the following event in the FLASH sequence:

on (press) {getURL("JavaScript:openNTRsupport()");}
[b]Text[/b]

Will this work if there is no HTML page? If so, where do I insert the first
code?

Thanks,
Steve
cmorrissey
11/8/2006 12:18:27 AM
Steve,

You should put your swf file with in an html page, its not a good practice to
just link to a .swf file and hope that your end user has Flash. With the html
page you can check Flash versions, and set some bounds for your swf so that it
doesn't stretch and degrade quality, and use the code you have above.

Because you are opening a "pop-up" with javascript, which sets its width,
height, and other features you can not accomplish this from with in your swf.
Steve Schone
11/8/2006 12:32:47 AM
AddThis Social Bookmark Button