Hi,

Can someone tell me how can i do the following in Flash;

When i click on a button a movie clip is loaded but in a new pop up window.

Thanks

Member Avatar for GreenDay2001

Well, here's a quick and dirty code for this would be

getURL("URL", "_target");

however the real syntax is

getURL(url [, window [, "variables"]])

For furthur features you could use JavaScript

Well, here's a quick and dirty code for this would be

getURL("URL", "_target");

however the real syntax is

getURL(url [, window [, "variables"]])

For furthur features you could use JavaScript

It works but we cannot set the window size with it .

Member Avatar for GreenDay2001

Thats what i said use javascript. Add javascript to the page you want to open and set the width, height of the page. e.g.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <title></title>
  <script language="JavaScript" type="text/javascript">
  /*<![CDATA[*/
    function resize(w,h)
    {
        window.resizeTo(w,h);
    }
  /*]]>*/
  </script>
</head>

<body onload="resize(200,200)">

</body>

</html>

Why make it complicated? Keep it simple:

make a button, and link it to a page containing a movie.

<a href="mymoviepage.htm"><img src="pictureofmybutton.jpg" /></a>

I agree, why not just link it to another page simple and easy.

Note: Just be sure that the movie is optimized so the download time will be fast.

we can also do one more thing we may take different frames and use the GOTOAND STOP \PLAY function and control it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.