LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 709 users online 165805 members 1565 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 41 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Actionscript
Linking a button to a pop-up browser window
Replies: 1Last Post April 14, 2006 5:24pm by llamafarmer
Single page for this topic Email Print Favorite
( PiXiE )


24.24.1.1358

Patron
Support Leader
Tech Support Leader
Reply
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
Reply
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)


5:24 pm on April 14, 2006 | Joined April 2004 | 185 Days Active
Join to learn more about llamafarmer United Kingdom | Straight Male | 771 Posts | 3518 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic