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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to have Get URL open a new window and size it?????

Status
Not open for further replies.

7869336

Programmer
Aug 11, 2000
1
US
I would like to have a button created in flash (.swf) get url in a new window sized and without toolbars.<br><br>I know the javasript to do these things, but can I use that same scripting in flash.&nbsp;&nbsp;<br><br>If you can help that would be great.<br><br>thanks<br>jason
 
well jason, i had the same problem that you have a week ago.<br>the solution to your answer lies in the tutorial section of the great help for flash :virtual-fx. the address is:<br><A HREF=" TARGET="_new"> to the intermidiate section of the tutorial's and you'll see a tutorial just for you.<br>if you like to see the result you can visit my web site (although its in hebrew i think youll find it interesting) at:<br><A HREF=" TARGET="_new"> that helped...<br> <p>nivosh<br><a href=mailto:nivosh@usa.net>nivosh@usa.net</a><br><a href=
 
On your page:

[tt]<script LANGUAGE=&quot;Javascript&quot;>
<!--//
function yourfunc() {
// put your javascript code here
}
// -->
</script>[/tt]


On your flash:

[tt]On Click
Get Url (&quot;Javascript:yourfunc()&quot;)
End[/tt]
 
In the Get Url add this to the URL box:

javascript:window.open('YOURURL.html&quot;,'NAME','width=###,height=###,left=###,top=###,scrollbars=??,resizable=??,status=??,menubar=??,location=??,toolbar=??');

Change YOURURL.html with your own. NAME is anything you want. The ### must be a numerical value in pixels.

The ?? must be 1 (yes) or 0 (no)

NOTE= You don't need to write all the options but if you don't write the resizable, location and toolbar options, their value will be 0 by default. So you won't see them. The default for scrollbars, status and menubar is 1

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top