LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 758 users online 223005 members 913 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
bluesky123
Interests: football,(manchester united),walkin...
Mood: Cheeky
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
4 online / 40 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
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( PiXiE )


24.24.1.1358

Patron
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 | Days Active: 1,663
Join to learn more about PiXiE Alberta, Canada | Straight Female | Posts: 4,837 | Points: 34,868
LiveWire Humor
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 | Days Active: 186
Join to learn more about llamafarmer United Kingdom | Straight Male | Posts: 768 | Points: 3,535
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