|
Until you sign up you can't do much. Yes, it's free.
|
|
|
|
|
|
|
 | / / / Viewing Topic
|  |
|
|
Actionscript |
| Linking a button to a pop-up browser window |
|
|
|
|
Replies: 1 Last Post April 14, 2006 5:24pm by llamafarmer
|
|
|
|
|
( PiXiE )
24.24.1.1358
Patron
Support Leader
Tech Support Leader
|
I need to make this: [url]http://www.justinematsalla.com/intro4.html[/url] link to a pop-up website. Yeah, not the way I would have made the website, but not my choice. Anyway, this is my current actionscript that links to a URL. | Code: | click_btn.onPress=function(){ getURL("index.html"); } | The current code on the page I am replacing with this flash animation looks like this: | Code: | <html> <head> <title>BrokenDollClothing</title> <script language="JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> </head> <body bgcolor="#000000" text="#ffffff"> <center> <p><img src="design/entersite.gif" width="360" height="400" usemap="#Map" border="0"> <map name="Map"> <area shape="rect" coords="31,142,343,265" href="#" onClick="MM_openBrWindow('mainframe.html','','width=800,height=600')"> </map> </p> </center> </body> </html> | I don't know Javascript (although it looks suspiciously a lot like actionscript). I don't know how I am supposed to make this 800*600 pop-up window open through actionscript. Does anyone know the actionscript required to do this? Or is there a way to make the entire swf a link through the html itself? Help!
|
12:56 am on Mar. 29, 2006 | Joined July 2002 | 1620 Days Active Join to learn more about PiXiE Alberta, Canada | Straight Female | 4819 Posts | 34009 Points
|
|
| |
|
|
llamafarmer
Dairy Product Addict
Patron
|
So basically you need JavaScript integration. | Code: | click_btn.onPress = function(){ getURL("NewWindow=window.open('index.html','newWin','width=400, height=470, left=0, top=0, toolbar=No, location=No, scrollbars=No, status=No, resizable=No, fullscreen=No'); NewWindow.focus(); void(0);"); }; | That should work. If that's what you want, of course! Nice intro by the way. Good luck. Flash and Actionscript are the most fun web development tools in my experience.(Edited by llamafarmer at 1:26 am on April 15, 2006)
------- [url]http://www1.myspace.com/atlusmusic[/url] "Money is clean if you scrub it good, guns and gasoline are gonna save the world" (Boys and Girls welcome to this Joyride)
|
|
|
|
| Looking for something else?
|
|
|
|
|
|
 | / / / Viewing Topic |  |
|