944,031 Members | Top Members by Rank

Ad:
Nov 15th, 2006
0

Display a movie clip on a button click

Expand Post »
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
Last edited by anti_genius; Nov 15th, 2006 at 4:36 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
anti_genius is offline Offline
27 posts
since Nov 2006
Nov 16th, 2006
0

Re: Display a movie clip on a button click

Well, here's a quick and dirty code for this would be
Graphics and Multimedia Syntax (Toggle Plain Text)
  1. getURL("URL", "_target");
however the real syntax is
Graphics and Multimedia Syntax (Toggle Plain Text)
  1. getURL(url [, window [, "variables"]])
For furthur features you could use JavaScript
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Nov 18th, 2006
0

Re: Display a movie clip on a button click

Click to Expand / Collapse  Quote originally posted by vishesh ...
Well, here's a quick and dirty code for this would be
Graphics and Multimedia Syntax (Toggle Plain Text)
  1. getURL("URL", "_target");
however the real syntax is
Graphics and Multimedia Syntax (Toggle Plain Text)
  1. getURL(url [, window [, "variables"]])
For furthur features you could use JavaScript
It works but we cannot set the window size with it .
Reputation Points: 10
Solved Threads: 0
Light Poster
anti_genius is offline Offline
27 posts
since Nov 2006
Nov 18th, 2006
0

Re: Display a movie clip on a button click

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.
[html]
<!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>
[/html]
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Mar 21st, 2007
0

Re: Display a movie clip on a button click

Why make it complicated? Keep it simple:

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

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. <a href="mymoviepage.htm"><img src="pictureofmybutton.jpg" /></a>
Last edited by MidiMagic; Mar 21st, 2007 at 12:08 am.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Mar 21st, 2007
0

Re: Display a movie clip on a button click

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
philregalo is offline Offline
7 posts
since Mar 2007
Mar 23rd, 2007
0

Re: Display a movie clip on a button click

we can also do one more thing we may take different frames and use the GOTOAND STOP \PLAY function and control it
Reputation Points: 10
Solved Threads: 1
Light Poster
satish.ambition is offline Offline
26 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Graphics and Multimedia Forum Timeline: How to run A script
Next Thread in Graphics and Multimedia Forum Timeline: Can I place an image into the Flash movie box so appears when Flash blocked by browse





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC